Home
last modified time | relevance | path

Searched refs:absl (Results 1 – 25 of 1693) sorted by relevance

12345678910>>...68

/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dduration_test.cc40 absl::Duration ApproxYears(int64_t n) { return absl::Hours(n) * 365 * 24; } in ApproxYears()
65 constexpr absl::Duration d0 = absl::ZeroDuration(); in TEST()
66 static_assert(d0 == absl::ZeroDuration(), "ZeroDuration()"); in TEST()
67 constexpr absl::Duration d1 = absl::Seconds(1); in TEST()
68 static_assert(d1 == absl::Seconds(1), "Seconds(1)"); in TEST()
69 static_assert(d1 != absl::ZeroDuration(), "Seconds(1)"); in TEST()
70 constexpr absl::Duration d2 = absl::InfiniteDuration(); in TEST()
71 static_assert(d2 == absl::InfiniteDuration(), "InfiniteDuration()"); in TEST()
72 static_assert(d2 != absl::ZeroDuration(), "InfiniteDuration()"); in TEST()
77 constexpr absl::Duration a; // Default construction in TEST()
[all …]
Dcivil_time_test.cc27 absl::CivilSecond ss; in TEST()
28 EXPECT_EQ("1970-01-01T00:00:00", absl::FormatCivilTime(ss)); in TEST()
30 absl::CivilMinute mm; in TEST()
31 EXPECT_EQ("1970-01-01T00:00", absl::FormatCivilTime(mm)); in TEST()
33 absl::CivilHour hh; in TEST()
34 EXPECT_EQ("1970-01-01T00", absl::FormatCivilTime(hh)); in TEST()
36 absl::CivilDay d; in TEST()
37 EXPECT_EQ("1970-01-01", absl::FormatCivilTime(d)); in TEST()
39 absl::CivilMonth m; in TEST()
40 EXPECT_EQ("1970-01", absl::FormatCivilTime(m)); in TEST()
[all …]
Dtime_test.cc78 constexpr absl::Time t0 = absl::UnixEpoch(); in TEST()
79 static_assert(t0 == absl::Time(), "UnixEpoch"); in TEST()
80 constexpr absl::Time t1 = absl::InfiniteFuture(); in TEST()
81 static_assert(t1 != absl::Time(), "InfiniteFuture"); in TEST()
82 constexpr absl::Time t2 = absl::InfinitePast(); in TEST()
83 static_assert(t2 != absl::Time(), "InfinitePast"); in TEST()
84 constexpr absl::Time t3 = absl::FromUnixNanos(0); in TEST()
85 static_assert(t3 == absl::Time(), "FromUnixNanos"); in TEST()
86 constexpr absl::Time t4 = absl::FromUnixMicros(0); in TEST()
87 static_assert(t4 == absl::Time(), "FromUnixMicros"); in TEST()
[all …]
Dformat_test.cc30 void TestFormatSpecifier(absl::Time t, absl::TimeZone tz, in TestFormatSpecifier()
32 EXPECT_EQ(ans, absl::FormatTime(fmt, t, tz)); in TestFormatSpecifier()
33 EXPECT_EQ("xxx " + ans, absl::FormatTime("xxx " + fmt, t, tz)); in TestFormatSpecifier()
34 EXPECT_EQ(ans + " yyy", absl::FormatTime(fmt + " yyy", t, tz)); in TestFormatSpecifier()
36 absl::FormatTime("xxx " + fmt + " yyy", t, tz)); in TestFormatSpecifier()
44 absl::TimeZone tz = absl::UTCTimeZone(); in TEST()
45 absl::Time t = absl::FromTimeT(0); in TEST()
48 EXPECT_EQ("", absl::FormatTime("", t, tz)); in TEST()
49 EXPECT_EQ(" ", absl::FormatTime(" ", t, tz)); in TEST()
50 EXPECT_EQ(" ", absl::FormatTime(" ", t, tz)); in TEST()
[all …]
/third_party/abseil-cpp/absl/time/
Dduration_test.cc39 absl::Duration ApproxYears(int64_t n) { return absl::Hours(n) * 365 * 24; } in ApproxYears()
64 constexpr absl::Duration d0 = absl::ZeroDuration(); in TEST()
65 static_assert(d0 == absl::ZeroDuration(), "ZeroDuration()"); in TEST()
66 constexpr absl::Duration d1 = absl::Seconds(1); in TEST()
67 static_assert(d1 == absl::Seconds(1), "Seconds(1)"); in TEST()
68 static_assert(d1 != absl::ZeroDuration(), "Seconds(1)"); in TEST()
69 constexpr absl::Duration d2 = absl::InfiniteDuration(); in TEST()
70 static_assert(d2 == absl::InfiniteDuration(), "InfiniteDuration()"); in TEST()
71 static_assert(d2 != absl::ZeroDuration(), "InfiniteDuration()"); in TEST()
76 constexpr absl::Duration a; // Default construction in TEST()
[all …]
Dcivil_time_test.cc27 absl::CivilSecond ss; in TEST()
28 EXPECT_EQ("1970-01-01T00:00:00", absl::FormatCivilTime(ss)); in TEST()
30 absl::CivilMinute mm; in TEST()
31 EXPECT_EQ("1970-01-01T00:00", absl::FormatCivilTime(mm)); in TEST()
33 absl::CivilHour hh; in TEST()
34 EXPECT_EQ("1970-01-01T00", absl::FormatCivilTime(hh)); in TEST()
36 absl::CivilDay d; in TEST()
37 EXPECT_EQ("1970-01-01", absl::FormatCivilTime(d)); in TEST()
39 absl::CivilMonth m; in TEST()
40 EXPECT_EQ("1970-01", absl::FormatCivilTime(m)); in TEST()
[all …]
Dtime_test.cc78 constexpr absl::Time t0 = absl::UnixEpoch(); in TEST()
79 static_assert(t0 == absl::Time(), "UnixEpoch"); in TEST()
80 constexpr absl::Time t1 = absl::InfiniteFuture(); in TEST()
81 static_assert(t1 != absl::Time(), "InfiniteFuture"); in TEST()
82 constexpr absl::Time t2 = absl::InfinitePast(); in TEST()
83 static_assert(t2 != absl::Time(), "InfinitePast"); in TEST()
84 constexpr absl::Time t3 = absl::FromUnixNanos(0); in TEST()
85 static_assert(t3 == absl::Time(), "FromUnixNanos"); in TEST()
86 constexpr absl::Time t4 = absl::FromUnixMicros(0); in TEST()
87 static_assert(t4 == absl::Time(), "FromUnixMicros"); in TEST()
[all …]
Dformat_test.cc30 void TestFormatSpecifier(absl::Time t, absl::TimeZone tz, in TestFormatSpecifier()
32 EXPECT_EQ(ans, absl::FormatTime(fmt, t, tz)); in TestFormatSpecifier()
33 EXPECT_EQ("xxx " + ans, absl::FormatTime("xxx " + fmt, t, tz)); in TestFormatSpecifier()
34 EXPECT_EQ(ans + " yyy", absl::FormatTime(fmt + " yyy", t, tz)); in TestFormatSpecifier()
36 absl::FormatTime("xxx " + fmt + " yyy", t, tz)); in TestFormatSpecifier()
44 absl::TimeZone tz = absl::UTCTimeZone(); in TEST()
45 absl::Time t = absl::FromTimeT(0); in TEST()
48 EXPECT_EQ("", absl::FormatTime("", t, tz)); in TEST()
49 EXPECT_EQ(" ", absl::FormatTime(" ", t, tz)); in TEST()
50 EXPECT_EQ(" ", absl::FormatTime(" ", t, tz)); in TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
DCMakeLists.txt57 absl::strings_internal
58 absl::base
59 absl::bits
60 absl::config
61 absl::core_headers
62 absl::endian
63 absl::int128
64 absl::memory
65 absl::raw_logging_internal
66 absl::throw_delegate
[all …]
Dascii_test.cc31 EXPECT_TRUE(absl::ascii_isalpha(i)) << ": failed on " << i; in TEST()
33 EXPECT_TRUE(!absl::ascii_isalpha(i)) << ": failed on " << i; in TEST()
37 EXPECT_TRUE(absl::ascii_isdigit(i)) << ": failed on " << i; in TEST()
39 EXPECT_TRUE(!absl::ascii_isdigit(i)) << ": failed on " << i; in TEST()
42 if (absl::ascii_isalpha(i) || absl::ascii_isdigit(i)) in TEST()
43 EXPECT_TRUE(absl::ascii_isalnum(i)) << ": failed on " << i; in TEST()
45 EXPECT_TRUE(!absl::ascii_isalnum(i)) << ": failed on " << i; in TEST()
49 EXPECT_TRUE(absl::ascii_isspace(i)) << ": failed on " << i; in TEST()
51 EXPECT_TRUE(!absl::ascii_isspace(i)) << ": failed on " << i; in TEST()
55 EXPECT_TRUE(absl::ascii_isprint(i)) << ": failed on " << i; in TEST()
[all …]
/third_party/abseil-cpp/absl/container/
DCMakeLists.txt39 absl::container_common
40 absl::compare
41 absl::compressed_tuple
42 absl::container_memory
43 absl::cord
44 absl::core_headers
45 absl::layout
46 absl::memory
47 absl::strings
48 absl::throw_delegate
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
DCMakeLists.txt30 absl::container_common
31 absl::compare
32 absl::compressed_tuple
33 absl::container_memory
34 absl::cord
35 absl::core_headers
36 absl::layout
37 absl::memory
38 absl::strings
39 absl::throw_delegate
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/status/
Dstatus_test.cc29 const absl::StatusCode code = absl::StatusCode::kUnknown; in TEST()
32 EXPECT_EQ(oss.str(), absl::StatusCodeToString(code)); in TEST()
38 absl::StatusCode code;
39 using Creator = absl::Status (*)(
40 absl::string_view
42 using Classifier = bool (*)(const absl::Status&);
48 {absl::StatusCode::kCancelled, absl::CancelledError, absl::IsCancelled},
49 {absl::StatusCode::kUnknown, absl::UnknownError, absl::IsUnknown},
50 {absl::StatusCode::kInvalidArgument, absl::InvalidArgumentError,
51 absl::IsInvalidArgument},
[all …]
/third_party/abseil-cpp/absl/random/
Dgenerators_test.cc29 absl::Uniform(*gen, 0, 100); // int in TestUniform()
30 absl::Uniform(*gen, 0, 1.0); // Promoted to double in TestUniform()
31 absl::Uniform(*gen, 0.0f, 1.0); // Promoted to double in TestUniform()
32 absl::Uniform(*gen, 0.0, 1.0); // double in TestUniform()
33 absl::Uniform(*gen, -1, 1L); // Promoted to long in TestUniform()
36 absl::Uniform(absl::IntervalClosedClosed, *gen, 1, 6); in TestUniform()
39 absl::Uniform(absl::IntervalOpenOpen, *gen, 0.0, 1.0); in TestUniform()
43 elems[absl::Uniform(*gen, 0u, elems.size())] = 5; in TestUniform()
44 elems[absl::Uniform<size_t>(*gen, 0, elems.size())] = 3; in TestUniform()
47 absl::Uniform(absl::IntervalOpenOpen, *gen, -1.0, 1.0); in TestUniform()
[all …]
Dmocking_bit_gen_test.cc33 absl::MockingBitGen gen; in TEST()
35 EXPECT_NE(absl::Uniform<int>(gen, 1, 1000000), 20); in TEST()
36 EXPECT_CALL(absl::MockUniform<int>(), Call(gen, 1, 1000000)) in TEST()
38 EXPECT_EQ(absl::Uniform<int>(gen, 1, 1000000), 20); in TEST()
40 EXPECT_NE(absl::Uniform<double>(gen, 0.0, 100.0), 5.0); in TEST()
41 EXPECT_CALL(absl::MockUniform<double>(), Call(gen, 0.0, 100.0)) in TEST()
43 EXPECT_EQ(absl::Uniform<double>(gen, 0.0, 100.0), 5.0); in TEST()
45 EXPECT_NE(absl::Exponential<double>(gen, 1.0), 42); in TEST()
46 EXPECT_CALL(absl::MockExponential<double>(), Call(gen, 1.0)) in TEST()
48 EXPECT_EQ(absl::Exponential<double>(gen, 1.0), 42); in TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Dgenerators_test.cc29 absl::Uniform(*gen, 0, 100); // int in TestUniform()
30 absl::Uniform(*gen, 0, 1.0); // Promoted to double in TestUniform()
31 absl::Uniform(*gen, 0.0f, 1.0); // Promoted to double in TestUniform()
32 absl::Uniform(*gen, 0.0, 1.0); // double in TestUniform()
33 absl::Uniform(*gen, -1, 1L); // Promoted to long in TestUniform()
36 absl::Uniform(absl::IntervalClosedClosed, *gen, 1, 6); in TestUniform()
39 absl::Uniform(absl::IntervalOpenOpen, *gen, 0.0, 1.0); in TestUniform()
43 elems[absl::Uniform(*gen, 0u, elems.size())] = 5; in TestUniform()
44 elems[absl::Uniform<size_t>(*gen, 0, elems.size())] = 3; in TestUniform()
47 absl::Uniform(absl::IntervalOpenOpen, *gen, -1.0, 1.0); in TestUniform()
[all …]
Dmocking_bit_gen_test.cc36 absl::MockingBitGen gen; in TEST()
38 EXPECT_NE(absl::Uniform<int>(gen, 1, 1000000), 20); in TEST()
39 EXPECT_CALL(absl::MockUniform<int>(), Call(gen, 1, 1000000)) in TEST()
41 EXPECT_EQ(absl::Uniform<int>(gen, 1, 1000000), 20); in TEST()
43 EXPECT_NE(absl::Uniform<double>(gen, 0.0, 100.0), 5.0); in TEST()
44 EXPECT_CALL(absl::MockUniform<double>(), Call(gen, 0.0, 100.0)) in TEST()
46 EXPECT_EQ(absl::Uniform<double>(gen, 0.0, 100.0), 5.0); in TEST()
48 EXPECT_NE(absl::Exponential<double>(gen, 1.0), 42); in TEST()
49 EXPECT_CALL(absl::MockExponential<double>(), Call(gen, 1.0)) in TEST()
51 EXPECT_EQ(absl::Exponential<double>(gen, 1.0), 42); in TEST()
[all …]
/third_party/abseil-cpp/absl/status/
Dstatus_test.cc29 const absl::StatusCode code = absl::StatusCode::kUnknown; in TEST()
32 EXPECT_EQ(oss.str(), absl::StatusCodeToString(code)); in TEST()
38 absl::StatusCode code;
39 using Creator = absl::Status (*)(absl::string_view);
40 using Classifier = bool (*)(const absl::Status&);
46 {absl::StatusCode::kCancelled, absl::CancelledError, absl::IsCancelled},
47 {absl::StatusCode::kUnknown, absl::UnknownError, absl::IsUnknown},
48 {absl::StatusCode::kInvalidArgument, absl::InvalidArgumentError,
49 absl::IsInvalidArgument},
50 {absl::StatusCode::kDeadlineExceeded, absl::DeadlineExceededError,
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/
Dint128_test.cc57 static_assert(std::is_constructible<absl::uint128, TypeParam>::value, in TYPED_TEST()
59 static_assert(std::is_assignable<absl::uint128&, TypeParam>::value, in TYPED_TEST()
61 static_assert(!std::is_assignable<TypeParam&, absl::uint128>::value, in TYPED_TEST()
68 static_assert(std::is_constructible<absl::uint128, TypeParam>::value, in TYPED_TEST()
70 static_assert(!std::is_assignable<absl::uint128&, TypeParam>::value, in TYPED_TEST()
72 static_assert(!std::is_assignable<TypeParam&, absl::uint128>::value, in TYPED_TEST()
80 static_assert(std::is_constructible<absl::uint128, __int128>::value, in TEST()
82 static_assert(std::is_assignable<absl::uint128&, __int128>::value, in TEST()
84 static_assert(!std::is_assignable<__int128&, absl::uint128>::value, in TEST()
87 static_assert(std::is_constructible<absl::uint128, unsigned __int128>::value, in TEST()
[all …]
/third_party/abseil-cpp/absl/numeric/
Dint128_test.cc57 static_assert(std::is_constructible<absl::uint128, TypeParam>::value, in TYPED_TEST()
59 static_assert(std::is_assignable<absl::uint128&, TypeParam>::value, in TYPED_TEST()
61 static_assert(!std::is_assignable<TypeParam&, absl::uint128>::value, in TYPED_TEST()
68 static_assert(std::is_constructible<absl::uint128, TypeParam>::value, in TYPED_TEST()
70 static_assert(!std::is_assignable<absl::uint128&, TypeParam>::value, in TYPED_TEST()
72 static_assert(!std::is_assignable<TypeParam&, absl::uint128>::value, in TYPED_TEST()
80 static_assert(std::is_constructible<absl::uint128, __int128>::value, in TEST()
82 static_assert(std::is_assignable<absl::uint128&, __int128>::value, in TEST()
84 static_assert(!std::is_assignable<__int128&, absl::uint128>::value, in TEST()
87 static_assert(std::is_constructible<absl::uint128, unsigned __int128>::value, in TEST()
[all …]
/third_party/abseil-cpp/absl/flags/
DCMakeLists.txt28 absl::config
29 absl::strings
46 absl::config
47 absl::core_headers
48 absl::flags_path_util
49 absl::strings
50 absl::synchronization
67 absl::config
68 absl::flags_path_util
69 absl::flags_program_name
[all …]
Dmarshalling_test.cc34 EXPECT_TRUE(absl::ParseFlag("True", &value, &err)); in TEST()
36 EXPECT_TRUE(absl::ParseFlag("true", &value, &err)); in TEST()
38 EXPECT_TRUE(absl::ParseFlag("TRUE", &value, &err)); in TEST()
41 EXPECT_TRUE(absl::ParseFlag("Yes", &value, &err)); in TEST()
43 EXPECT_TRUE(absl::ParseFlag("yes", &value, &err)); in TEST()
45 EXPECT_TRUE(absl::ParseFlag("YES", &value, &err)); in TEST()
48 EXPECT_TRUE(absl::ParseFlag("t", &value, &err)); in TEST()
50 EXPECT_TRUE(absl::ParseFlag("T", &value, &err)); in TEST()
53 EXPECT_TRUE(absl::ParseFlag("y", &value, &err)); in TEST()
55 EXPECT_TRUE(absl::ParseFlag("Y", &value, &err)); in TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/
DCMakeLists.txt28 absl::config
29 absl::strings
46 absl::config
47 absl::core_headers
48 absl::flags_path_util
49 absl::strings
50 absl::synchronization
67 absl::config
68 absl::flags_path_util
69 absl::flags_program_name
[all …]
Dmarshalling_test.cc34 EXPECT_TRUE(absl::ParseFlag("True", &value, &err)); in TEST()
36 EXPECT_TRUE(absl::ParseFlag("true", &value, &err)); in TEST()
38 EXPECT_TRUE(absl::ParseFlag("TRUE", &value, &err)); in TEST()
41 EXPECT_TRUE(absl::ParseFlag("Yes", &value, &err)); in TEST()
43 EXPECT_TRUE(absl::ParseFlag("yes", &value, &err)); in TEST()
45 EXPECT_TRUE(absl::ParseFlag("YES", &value, &err)); in TEST()
48 EXPECT_TRUE(absl::ParseFlag("t", &value, &err)); in TEST()
50 EXPECT_TRUE(absl::ParseFlag("T", &value, &err)); in TEST()
53 EXPECT_TRUE(absl::ParseFlag("y", &value, &err)); in TEST()
55 EXPECT_TRUE(absl::ParseFlag("Y", &value, &err)); in TEST()
[all …]
/third_party/abseil-cpp/absl/strings/
Dsubstitute_test.cc27 EXPECT_EQ("Hello, world!", absl::Substitute("$0, $1!", "Hello", "world")); in TEST()
31 absl::Substitute("$0 $1 $2 $3 $4 $5 $6", 123, 0.2, 0.1f, in TEST()
40 absl::Substitute( in TEST()
49 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
50 absl::Hex(0), absl::Hex(1, absl::kSpacePad2), in TEST()
51 absl::Hex(0xf, absl::kSpacePad2), in TEST()
52 absl::Hex(int16_t{-1}, absl::kSpacePad5), in TEST()
53 absl::Hex(int16_t{-1}, absl::kZeroPad5), in TEST()
54 absl::Hex(0x123456789abcdef, absl::kZeroPad16))); in TEST()
58 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
[all …]

12345678910>>...68