Home
last modified time | relevance | path

Searched refs:absl (Results 1 - 25 of 650) sorted by relevance

12345678910>>...26

/third_party/skia/third_party/externals/abseil-cpp/absl/time/
H A Dtime_test.cc15 #include "absl/time/time.h"
30 #include "absl/numeric/int128.h"
31 #include "absl/time/clock.h"
32 #include "absl/time/internal/test_util.h"
78 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 in TEST()
[all...]
H A Dcivil_time_test.cc15 #include "absl/time/civil_time.h"
21 #include "absl/base/macros.h"
27 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 in TEST()
[all...]
H A Dduration_test.cc31 #include "absl/time/time.h"
40 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 in TEST()
[all...]
H A Dformat_test.cc21 #include "absl/time/internal/test_util.h"
22 #include "absl/time/time.h"
30 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 in TEST()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/status/
H A Dstatus_test.cc15 #include "absl/status/status.h"
19 #include "absl/strings/str_cat.h"
29 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
[all...]
H A Dstatusor_test.cc15 #include "absl/status/statusor.h"
26 #include "absl/base/casts.h"
27 #include "absl/memory/memory.h"
28 #include "absl/status/status.h"
29 #include "absl/strings/string_view.h"
30 #include "absl/types/any.h"
31 #include "absl/utility/utility.h"
49 inline const ::absl::Status& GetStatus(const ::absl::Status& status) {
54 inline const ::absl
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
H A Dgenerators_test.cc21 #include "absl/random/distributions.h"
22 #include "absl/random/random.h"
29 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 in TestUniform()
[all...]
H A Dmocking_bit_gen_test.cc16 #include "absl/random/mocking_bit_gen.h"
25 #include "absl/random/bit_gen_ref.h"
26 #include "absl/random/mock_distributions.h"
27 #include "absl/random/random.h"
36 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 in TEST()
[all...]
H A Ddistributions_test.cc15 #include "absl/random/distributions.h"
24 #include "absl/random/internal/distribution_test_util.h"
25 #include "absl/random/random.h"
38 -> decltype(absl::Uniform(std::declval<absl::InsecureBitGen&>(),
46 -> decltype(absl::Uniform(std::declval<TagType>(),
47 std::declval<absl::InsecureBitGen&>(),
55 // absl::Uniform(gen, A{}, B{})
59 // This interface can also be used to assert that a given absl::Uniform()
63 // decltype(absl
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/
H A Dint128_test.cc15 #include "absl/numeric/int128.h"
25 #include "absl/base/internal/cycleclock.h"
26 #include "absl/hash/hash_testing.h"
27 #include "absl/meta/type_traits.h"
57 static_assert(std::is_constructible<absl::uint128, TypeParam>::value, in TYPED_TEST()
58 "absl::uint128 must be constructible from TypeParam"); in TYPED_TEST()
59 static_assert(std::is_assignable<absl::uint128&, TypeParam>::value, in TYPED_TEST()
60 "absl::uint128 must be assignable from TypeParam"); in TYPED_TEST()
61 static_assert(!std::is_assignable<TypeParam&, absl::uint128>::value, in TYPED_TEST()
62 "TypeParam must not be assignable from absl in TYPED_TEST()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
H A Dmatch_test.cc15 #include "absl/strings/match.h"
23 const absl::string_view a("foobar"); in TEST()
24 const absl::string_view b(s1); in TEST()
25 const absl::string_view e; in TEST()
26 EXPECT_TRUE(absl::StartsWith(a, a)); in TEST()
27 EXPECT_TRUE(absl::StartsWith(a, "foo")); in TEST()
28 EXPECT_TRUE(absl::StartsWith(a, e)); in TEST()
29 EXPECT_TRUE(absl::StartsWith(b, s1)); in TEST()
30 EXPECT_TRUE(absl::StartsWith(b, b)); in TEST()
31 EXPECT_TRUE(absl in TEST()
[all...]
H A Dsubstitute_test.cc15 #include "absl/strings/substitute.h"
21 #include "absl/strings/str_cat.h"
27 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 in TEST()
[all...]
H A Dascii_test.cc15 #include "absl/strings/ascii.h"
23 #include "absl/base/macros.h"
24 #include "absl/base/port.h"
31 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 in TEST()
[all...]
H A Dcord_test.cc15 #include "absl/strings/cord.h"
31 #include "absl/base/casts.h"
32 #include "absl/base/config.h"
33 #include "absl/base/internal/endian.h"
34 #include "absl/base/internal/raw_logging.h"
35 #include "absl/base/macros.h"
36 #include "absl/container/fixed_array.h"
37 #include "absl/strings/cord_test_helpers.h"
38 #include "absl/strings/cordz_test_helpers.h"
39 #include "absl/string
176 namespace absl { global() namespace
[all...]
H A Dstrip_test.cc18 #include "absl/strings/strip.h"
26 #include "absl/strings/string_view.h"
31 absl::string_view input("abc"); in TEST()
32 EXPECT_TRUE(absl::ConsumePrefix(&input, "a")); in TEST()
35 EXPECT_FALSE(absl::ConsumePrefix(&input, "x")); in TEST()
38 EXPECT_TRUE(absl::ConsumePrefix(&input, "b")); in TEST()
41 EXPECT_TRUE(absl::ConsumePrefix(&input, "c")); in TEST()
44 EXPECT_FALSE(absl::ConsumePrefix(&input, "a")); in TEST()
49 absl::string_view input("abcdef"); in TEST()
50 EXPECT_FALSE(absl in TEST()
[all...]
H A Dstr_cat_test.cc17 #include "absl/strings/str_cat.h"
24 #include "absl/strings/substitute.h"
38 // Test absl::StrCat of ints and longs of various sizes and signdedness.
53 answer = absl::StrCat(s, us); in TEST()
55 answer = absl::StrCat(i, ui); in TEST()
57 answer = absl::StrCat(l, ul); in TEST()
59 answer = absl::StrCat(ll, ull); in TEST()
61 answer = absl::StrCat(ptrdiff, size); in TEST()
63 answer = absl::StrCat(ptrdiff, intptr); in TEST()
65 answer = absl in TEST()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/
H A Dmarshalling_test.cc16 #include "absl/flags/marshalling.h"
34 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 in TEST()
[all...]
H A Dreflection_test.cc16 #include "absl/flags/reflection.h"
23 #include "absl/flags/declare.h"
24 #include "absl/flags/flag.h"
25 #include "absl/flags/internal/commandlineflag.h"
26 #include "absl/flags/marshalling.h"
27 #include "absl/memory/memory.h"
28 #include "absl/strings/str_cat.h"
29 #include "absl/strings/str_split.h"
39 void SetUp() override { flag_saver_ = absl::make_unique<absl
[all...]
H A Dflag_test.cc16 #include "absl/flags/flag.h"
29 #include "absl/base/attributes.h"
30 #include "absl/base/macros.h"
31 #include "absl/flags/config.h"
32 #include "absl/flags/declare.h"
33 #include "absl/flags/internal/flag.h"
34 #include "absl/flags/marshalling.h"
35 #include "absl/flags/reflection.h"
36 #include "absl/flags/usage_config.h"
37 #include "absl/string
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
H A Dany_test.cc15 #include "absl/types/any.h"
17 // This test is a no-op when absl::any is an alias for std::any.
26 #include "absl/base/config.h"
27 #include "absl/base/internal/exception_testing.h"
28 #include "absl/base/internal/raw_logging.h"
29 #include "absl/container/internal/test_instance_tracker.h"
32 using absl::test_internal::CopyableOnlyInstance;
33 using absl::test_internal::InstanceTracker;
91 using DecayedArray = absl::decay_t<ArrayType>;
94 static_assert(std::is_nothrow_default_constructible<absl in TEST()
[all...]
H A Doptional_test.cc15 #include "absl/types/optional.h"
17 // This test is a no-op when absl::optional is an alias for std::optional.
25 #include "absl/base/config.h"
26 #include "absl/base/internal/raw_logging.h"
27 #include "absl/meta/type_traits.h"
28 #include "absl/strings/string_view.h"
170 ConvertsFromInPlaceT(absl::in_place_t) {} // NOLINT in ConvertsFromInPlaceT()
174 absl::optional<int> empty; in TEST()
176 constexpr absl::optional<int> cempty; in TEST()
179 std::is_nothrow_default_constructible<absl in TEST()
[all...]
H A Dvariant_test.cc20 #include "absl/types/variant.h"
22 // This test is a no-op when absl::variant is an alias for std::variant.
39 #include "absl/base/config.h"
40 #include "absl/base/port.h"
41 #include "absl/memory/memory.h"
42 #include "absl/meta/type_traits.h"
43 #include "absl/strings/string_view.h"
58 ABSL_VARIANT_TEST_EXPECT_FAIL((void)(__VA_ARGS__), absl::bad_variant_access, \
72 namespace absl { namespace
133 void ToValuelessByException(absl
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/
H A Dlog_severity_test.cc15 #include "absl/base/log_severity.h"
27 #include "absl/flags/internal/flag.h"
28 #include "absl/flags/marshalling.h"
29 #include "absl/strings/str_cat.h"
38 std::string StreamHelper(absl::LogSeverity value) { in StreamHelper()
45 EXPECT_THAT(StreamHelper(static_cast<absl::LogSeverity>(-100)), in TEST()
46 Eq("absl::LogSeverity(-100)")); in TEST()
47 EXPECT_THAT(StreamHelper(absl::LogSeverity::kInfo), Eq("INFO")); in TEST()
48 EXPECT_THAT(StreamHelper(absl::LogSeverity::kWarning), Eq("WARNING")); in TEST()
49 EXPECT_THAT(StreamHelper(absl in TEST()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
H A Dmemutil_test.cc17 #include "absl/strings/internal/memutil.h"
22 #include "absl/strings/ascii.h"
27 c = absl::ascii_tolower(c); in memcasechr()
29 if (absl::ascii_tolower(*s) == c) return const_cast<char*>(s); in memcasechr()
45 if (absl::strings_internal::memcasecmp(match, pneedle, neelen) == 0) in memcasematch()
56 absl::strings_internal::memcat(a, 0, "hello", sizeof("hello") - 1); in TEST()
57 absl::strings_internal::memcat(a, 5, " there", sizeof(" there") - 1); in TEST()
59 EXPECT_EQ(absl::strings_internal::memcasecmp(a, "heLLO there", in TEST()
62 EXPECT_EQ(absl::strings_internal::memcasecmp(a, "heLLO therf", in TEST()
65 EXPECT_EQ(absl in TEST()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/meta/
H A Dtype_traits_test.cc15 #include "absl/meta/type_traits.h"
49 absl::enable_if_t<std::is_same<T&&, StructA&>::value, int> = 0>
55 absl::enable_if_t<std::is_same<T&&, StructA&>::value, int> = 0>
65 absl::type_traits_internal::is_detected<BarIsCallableImpl, Class, T...>;
68 using BarIsCallableConv = absl::type_traits_internal::is_detected_convertible<
115 StaticAssertTypeEq<void, absl::void_t<Dummy>>(); in TEST()
116 StaticAssertTypeEq<void, absl::void_t<Dummy, Dummy, Dummy>>(); in TEST()
120 EXPECT_TRUE(absl::conjunction<>::value); in TEST()
121 EXPECT_TRUE(absl::conjunction<std::true_type>::value); in TEST()
122 EXPECT_TRUE((absl in TEST()
[all...]

Completed in 15 milliseconds

12345678910>>...26