Home
last modified time | relevance | path

Searched refs:TypeParam (Results 1 – 25 of 71) sorted by relevance

123

/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dunordered_set_constructor_test.h38 TypeParam m; in TYPED_TEST_P()
44 TypeParam m(123); in TYPED_TEST_P()
51 using H = typename TypeParam::hasher; in TYPED_TEST_P()
53 TypeParam m(123, hasher); in TYPED_TEST_P()
61 using H = typename TypeParam::hasher; in TYPED_TEST_P()
62 using E = typename TypeParam::key_equal; in TYPED_TEST_P()
65 TypeParam m(123, hasher, equal); in TYPED_TEST_P()
74 using H = typename TypeParam::hasher; in TYPED_TEST_P()
75 using E = typename TypeParam::key_equal; in TYPED_TEST_P()
76 using A = typename TypeParam::allocator_type; in TYPED_TEST_P()
[all …]
Dunordered_map_constructor_test.h37 TypeParam m; in TYPED_TEST_P()
43 TypeParam m(123); in TYPED_TEST_P()
50 using H = typename TypeParam::hasher; in TYPED_TEST_P()
52 TypeParam m(123, hasher); in TYPED_TEST_P()
60 using H = typename TypeParam::hasher; in TYPED_TEST_P()
61 using E = typename TypeParam::key_equal; in TYPED_TEST_P()
64 TypeParam m(123, hasher, equal); in TYPED_TEST_P()
73 using H = typename TypeParam::hasher; in TYPED_TEST_P()
74 using E = typename TypeParam::key_equal; in TYPED_TEST_P()
75 using A = typename TypeParam::allocator_type; in TYPED_TEST_P()
[all …]
Dunordered_map_members_test.h36 EXPECT_TRUE((std::is_same<std::pair<const typename TypeParam::key_type, in TYPED_TEST_P()
37 typename TypeParam::mapped_type>, in TYPED_TEST_P()
38 typename TypeParam::value_type>())); in TYPED_TEST_P()
40 absl::negation<std::is_signed<typename TypeParam::size_type>>, in TYPED_TEST_P()
41 std::is_integral<typename TypeParam::size_type>>())); in TYPED_TEST_P()
43 std::is_signed<typename TypeParam::difference_type>, in TYPED_TEST_P()
44 std::is_integral<typename TypeParam::difference_type>>())); in TYPED_TEST_P()
46 decltype(std::declval<const typename TypeParam::hasher&>()( in TYPED_TEST_P()
47 std::declval<const typename TypeParam::key_type&>())), in TYPED_TEST_P()
50 decltype(std::declval<const typename TypeParam::key_equal&>()( in TYPED_TEST_P()
[all …]
Dunordered_set_members_test.h36 EXPECT_TRUE((std::is_same<typename TypeParam::key_type, in TYPED_TEST_P()
37 typename TypeParam::value_type>())); in TYPED_TEST_P()
39 absl::negation<std::is_signed<typename TypeParam::size_type>>, in TYPED_TEST_P()
40 std::is_integral<typename TypeParam::size_type>>())); in TYPED_TEST_P()
42 std::is_signed<typename TypeParam::difference_type>, in TYPED_TEST_P()
43 std::is_integral<typename TypeParam::difference_type>>())); in TYPED_TEST_P()
45 decltype(std::declval<const typename TypeParam::hasher&>()( in TYPED_TEST_P()
46 std::declval<const typename TypeParam::key_type&>())), in TYPED_TEST_P()
49 decltype(std::declval<const typename TypeParam::key_equal&>()( in TYPED_TEST_P()
50 std::declval<const typename TypeParam::key_type&>(), in TYPED_TEST_P()
[all …]
Dunordered_map_modifiers_test.h35 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
39 TypeParam m(values.begin(), values.end()); in TYPED_TEST_P()
47 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
48 using V = typename TypeParam::mapped_type; in TYPED_TEST_P()
50 TypeParam m; in TYPED_TEST_P()
61 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
62 using V = typename TypeParam::mapped_type; in TYPED_TEST_P()
64 TypeParam m; in TYPED_TEST_P()
75 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
79 TypeParam m; in TYPED_TEST_P()
[all …]
Dunordered_set_modifiers_test.h33 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
37 TypeParam m(values.begin(), values.end()); in TYPED_TEST_P()
45 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
47 TypeParam m; in TYPED_TEST_P()
56 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
58 TypeParam m; in TYPED_TEST_P()
68 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
72 TypeParam m; in TYPED_TEST_P()
78 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
80 TypeParam m; in TYPED_TEST_P()
[all …]
Dunordered_map_lookup_test.h33 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
37 TypeParam m(values.begin(), values.end()); in TYPED_TEST_P()
45 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
46 using V = typename TypeParam::mapped_type; in TYPED_TEST_P()
50 TypeParam m; in TYPED_TEST_P()
61 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
65 TypeParam m; in TYPED_TEST_P()
75 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
79 TypeParam m; in TYPED_TEST_P()
93 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
[all …]
Dunordered_set_lookup_test.h33 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
37 TypeParam m; in TYPED_TEST_P()
46 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
50 TypeParam m; in TYPED_TEST_P()
55 typename TypeParam::iterator it = m.find(v); in TYPED_TEST_P()
56 static_assert(std::is_same<const typename TypeParam::value_type&, in TYPED_TEST_P()
59 static_assert(std::is_same<const typename TypeParam::value_type*, in TYPED_TEST_P()
68 using T = hash_internal::GeneratedType<TypeParam>; in TYPED_TEST_P()
72 TypeParam m; in TYPED_TEST_P()
/third_party/skia/third_party/externals/abseil-cpp/absl/random/
Dbeta_distribution_test.cc61 const TypeParam kSmallA = in TYPED_TEST()
62 1.0f / std::log((std::numeric_limits<TypeParam>::max)()); in TYPED_TEST()
64 const TypeParam kLargeA = in TYPED_TEST()
65 std::exp(std::log((std::numeric_limits<TypeParam>::max)()) - in TYPED_TEST()
66 std::log(std::log((std::numeric_limits<TypeParam>::max)()))); in TYPED_TEST()
67 using param_type = typename absl::beta_distribution<TypeParam>::param_type; in TYPED_TEST()
71 const TypeParam kValues[] = { in TYPED_TEST()
72 TypeParam(1e-20), TypeParam(1e-12), TypeParam(1e-8), TypeParam(1e-4), in TYPED_TEST()
73 TypeParam(1e-3), TypeParam(0.1), TypeParam(0.25), in TYPED_TEST()
74 std::nextafter(TypeParam(0.5), TypeParam(0)), // 0.5 - epsilon in TYPED_TEST()
[all …]
Duniform_real_distribution_test.cc83 typename absl::uniform_real_distribution<TypeParam>::param_type; in TYPED_TEST()
85 constexpr const TypeParam a{1152921504606846976}; in TYPED_TEST()
91 param_type(TypeParam(2.0), TypeParam(2.0)), // Same in TYPED_TEST()
92 param_type(TypeParam(-0.1), TypeParam(0.1)), in TYPED_TEST()
93 param_type(TypeParam(0.05), TypeParam(0.12)), in TYPED_TEST()
94 param_type(TypeParam(-0.05), TypeParam(0.13)), in TYPED_TEST()
95 param_type(TypeParam(-0.05), TypeParam(-0.02)), in TYPED_TEST()
98 param_type(a, TypeParam(1152921504606847040)), in TYPED_TEST()
100 param_type(a, TypeParam(1152921504606847104)), in TYPED_TEST()
103 param_type(a, TypeParam(1152921504606847232)), in TYPED_TEST()
[all …]
Dexponential_distribution_test.cc65 typename absl::exponential_distribution<TypeParam>::param_type; in TYPED_TEST()
67 const TypeParam kParams[] = { in TYPED_TEST()
70 std::nextafter(TypeParam(1), TypeParam(0)), // 1 - epsilon in TYPED_TEST()
71 std::nextafter(TypeParam(1), TypeParam(2)), // 1 + epsilon in TYPED_TEST()
73 TypeParam(1e-8), TypeParam(1e-4), TypeParam(1), TypeParam(2), in TYPED_TEST()
74 TypeParam(1e4), TypeParam(1e8), TypeParam(1e20), TypeParam(2.5), in TYPED_TEST()
76 std::numeric_limits<TypeParam>::max(), in TYPED_TEST()
77 std::numeric_limits<TypeParam>::epsilon(), in TYPED_TEST()
78 std::nextafter(std::numeric_limits<TypeParam>::min(), in TYPED_TEST()
79 TypeParam(1)), // min + epsilon in TYPED_TEST()
[all …]
Dgaussian_distribution_test.cc61 typename absl::gaussian_distribution<TypeParam>::param_type; in TYPED_TEST()
63 const TypeParam kParams[] = { in TYPED_TEST()
66 std::nextafter(TypeParam(1), TypeParam(0)), // 1 - epsilon in TYPED_TEST()
67 std::nextafter(TypeParam(1), TypeParam(2)), // 1 + epsilon in TYPED_TEST()
69 TypeParam(1e-8), TypeParam(1e-4), TypeParam(2), TypeParam(1e4), in TYPED_TEST()
70 TypeParam(1e8), TypeParam(1e20), TypeParam(2.5), in TYPED_TEST()
72 std::numeric_limits<TypeParam>::infinity(), in TYPED_TEST()
73 std::numeric_limits<TypeParam>::max(), in TYPED_TEST()
74 std::numeric_limits<TypeParam>::epsilon(), in TYPED_TEST()
75 std::nextafter(std::numeric_limits<TypeParam>::min(), in TYPED_TEST()
[all …]
Duniform_int_distribution_test.cc46 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST()
48 typename absl::uniform_int_distribution<TypeParam>::param_type; in TYPED_TEST()
49 const TypeParam kMin = std::is_unsigned<TypeParam>::value ? 37 : -105; in TYPED_TEST()
50 const TypeParam kNegOneOrZero = std::is_unsigned<TypeParam>::value ? 0 : -1; in TYPED_TEST()
66 absl::uniform_int_distribution<TypeParam> before(a, b); in TYPED_TEST()
72 absl::uniform_int_distribution<TypeParam> via_param(param); in TYPED_TEST()
80 absl::uniform_int_distribution<TypeParam> after(Limits::min() + 3, in TYPED_TEST()
117 EXPECT_DEBUG_DEATH({ absl::uniform_int_distribution<TypeParam> dist(10, 1); }, in TYPED_TEST()
124 absl::uniform_int_distribution<TypeParam> dist(10, 1); in TYPED_TEST()
134 using Limits = std::numeric_limits<TypeParam>; in TYPED_TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
Dinlined_vector_exception_safety_test.cc149 using VecT = typename TypeParam::VecT; in TYPED_TEST()
158 using VecT = typename TypeParam::VecT; in TYPED_TEST()
160 constexpr static auto size = TypeParam::GetSizeAt(0); in TYPED_TEST()
168 using VecT = typename TypeParam::VecT; in TYPED_TEST()
171 constexpr static auto size = TypeParam::GetSizeAt(0); in TYPED_TEST()
179 using VecT = typename TypeParam::VecT; in TYPED_TEST()
182 constexpr static auto size = TypeParam::GetSizeAt(0); in TYPED_TEST()
192 using VecT = typename TypeParam::VecT; in TYPED_TEST()
195 constexpr static auto size = TypeParam::GetSizeAt(0); in TYPED_TEST()
205 using VecT = typename TypeParam::VecT; in TYPED_TEST()
[all …]
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/
Dspan_test.cc22 span<TypeParam> empty; in TYPED_TEST()
30 TypeParam single_item = 42; in TYPED_TEST()
31 span<TypeParam> singular(&single_item, 1); in TYPED_TEST()
34 EXPECT_EQ(sizeof(TypeParam), singular.size_bytes()); in TYPED_TEST()
40 std::vector<TypeParam> test_input = {31, 32, 33, 34, 35}; in TYPED_TEST()
41 span<TypeParam> five_items(test_input.data(), 5); in TYPED_TEST()
44 EXPECT_EQ(sizeof(TypeParam) * 5, five_items.size_bytes()); in TYPED_TEST()
51 span<TypeParam> three_items = five_items.subspan(2); in TYPED_TEST()
56 span<TypeParam> two_items = five_items.subspan(2, 2); in TYPED_TEST()
/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()
523 static_assert(std::is_constructible<absl::int128, TypeParam>::value, in TYPED_TEST()
525 static_assert(std::is_assignable<absl::int128&, TypeParam>::value, in TYPED_TEST()
527 static_assert(!std::is_assignable<TypeParam&, absl::int128>::value, in TYPED_TEST()
537 static_assert(std::is_constructible<absl::int128, TypeParam>::value, in TYPED_TEST()
[all …]
/third_party/mesa3d/src/util/tests/
Du_atomic_test.cpp50 TypeParam v, r; in TYPED_TEST()
51 const TypeParam ones = TypeParam(-1); in TYPED_TEST()
81 TypeParam v, r; in TYPED_TEST()
84 const TypeParam ones = TypeParam(-1); in TYPED_TEST()
130 TypeParam v, r; in TYPED_TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/cleanup/
Dcleanup_test.cc96 auto callback = TypeParam::AsCallback([] {}); in TYPED_TEST()
122 auto callback = TypeParam::AsCallback([] {}); in TYPED_TEST()
196 absl::MakeCleanup(TypeParam::AsCallback([&called] { called = true; })); in TYPED_TEST()
207 auto cleanup = absl::MakeCleanup(TypeParam::AsCallback(&FnPtrFunction)); in TYPED_TEST()
219 absl::MakeCleanup(TypeParam::AsCallback([&called] { called = true; })); in TYPED_TEST()
234 absl::MakeCleanup(TypeParam::AsCallback([&called] { called = true; })); in TYPED_TEST()
251 absl::MakeCleanup(TypeParam::AsCallback([&called] { called = true; })); in TYPED_TEST()
278 absl::MakeCleanup(TypeParam::AsCallback(DestructionCounter())); in TYPED_TEST()
288 absl::MakeCleanup(TypeParam::AsCallback(DestructionCounter())); in TYPED_TEST()
301 absl::MakeCleanup(TypeParam::AsCallback(DestructionCounter())); in TYPED_TEST()
/third_party/skia/third_party/externals/angle2/src/common/
Dbitset_utils_unittest.cpp33 EXPECT_EQ(TypeParam::Zero().bits(), 0u); in TYPED_TEST()
35 TypeParam mBits = this->mBits; in TYPED_TEST()
113 TypeParam mBits = this->mBits; in TYPED_TEST()
187 TypeParam mStateBits = this->mStateBits; in TYPED_TEST()
213 TypeParam mStateBits = this->mStateBits; in TYPED_TEST()
235 TypeParam mStateBits = this->mStateBits; in TYPED_TEST()
250 TypeParam mStateBits = this->mStateBits; in TYPED_TEST()
280 TypeParam mStateBits = this->mStateBits; in TYPED_TEST()
301 TypeParam mStateBits = this->mStateBits; in TYPED_TEST()
332 TypeParam mStateBits = this->mStateBits; in TYPED_TEST()
[all …]
/third_party/googletest/googletest/test/
Dgtest-typed-test_test.cc124 EXPECT_EQ(static_cast<TypeParam>(2), this->value_); in TYPED_TEST()
159 TYPED_TEST(NumericTest, DefaultIsZero) { EXPECT_EQ(0, TypeParam()); } in TYPED_TEST()
183 if (std::is_same<TypeParam, char>::value) { in TYPED_TEST()
189 if (std::is_same<TypeParam, int>::value) { in TYPED_TEST()
299 if (std::is_same<TypeParam, char>::value) { in TYPED_TEST_P()
305 if (std::is_same<TypeParam, int>::value) { in TYPED_TEST_P()
393 TYPED_TEST_P(NumericTest, DefaultIsZero) { EXPECT_EQ(0, TypeParam()); } in TYPED_TEST_P()
396 EXPECT_LT(TypeParam(0), TypeParam(1)); in TYPED_TEST_P()
Dgoogletest-port-test.cc413 const RE empty(TypeParam("")); in TYPED_TEST()
416 const RE simple(TypeParam("hello")); in TYPED_TEST()
419 const RE normal(TypeParam(".*(\\w+)")); in TYPED_TEST()
426 { const RE invalid(TypeParam("?")); }, in TYPED_TEST()
432 const RE empty(TypeParam("")); in TYPED_TEST()
433 EXPECT_TRUE(RE::FullMatch(TypeParam(""), empty)); in TYPED_TEST()
434 EXPECT_FALSE(RE::FullMatch(TypeParam("a"), empty)); in TYPED_TEST()
436 const RE re(TypeParam("a.*z")); in TYPED_TEST()
437 EXPECT_TRUE(RE::FullMatch(TypeParam("az"), re)); in TYPED_TEST()
438 EXPECT_TRUE(RE::FullMatch(TypeParam("axyz"), re)); in TYPED_TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
Dvariant_test.cc327 typedef typename VariantFactory<typename TypeParam::value_type>::Type Variant; in TYPED_TEST()
332 const TypeParam value(TypeParam::kIndex); in TYPED_TEST()
336 TypeParam::kIndex != 1); in TYPED_TEST()
338 TypeParam::kIndex != 2); in TYPED_TEST()
340 TypeParam::kIndex != 3); in TYPED_TEST()
342 TypeParam::kIndex != 4); in TYPED_TEST()
345 TypeParam::kIndex == 1); in TYPED_TEST()
348 TypeParam::kIndex == 2); in TYPED_TEST()
351 TypeParam::kIndex == 3); in TYPED_TEST()
354 TypeParam::kIndex == 4); in TYPED_TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/
Dhash_test.cc68 EXPECT_TRUE((is_hashable<TypeParam>::value)); in TYPED_TEST_P()
70 TypeParam n = 42; in TYPED_TEST_P()
71 EXPECT_EQ(SpyHash(n), SpyHash(TypeParam{42})); in TYPED_TEST_P()
72 EXPECT_NE(SpyHash(n), SpyHash(TypeParam{0})); in TYPED_TEST_P()
73 EXPECT_NE(SpyHash(std::numeric_limits<TypeParam>::max()), in TYPED_TEST_P()
74 SpyHash(std::numeric_limits<TypeParam>::min())); in TYPED_TEST_P()
79 TypeParam n = 42; in TYPED_TEST_P()
80 EXPECT_EQ(absl::Hash<TypeParam>{}(n), in TYPED_TEST_P()
81 absl::Hash<std::tuple<TypeParam>>{}(std::tuple<TypeParam>(n))); in TYPED_TEST_P()
390 EXPECT_TRUE((is_hashable<TypeParam>::value)); in TYPED_TEST_P()
[all …]
/third_party/googletest/googlemock/test/
Dgmock-function-mocker_test.cc526 { TypeParam b; } in TYPED_TEST()
529 TypeParam b; in TYPED_TEST()
534 TypeParam b; in TYPED_TEST()
601 TypeParam mock; in TYPED_TEST()
621 TypeParam mock; in TYPED_TEST()
690 TypeParam mock; in TYPED_TEST()
753 TypeParam mock; in TYPED_TEST()
876 using Argument = TypeParam; in TYPED_TEST()
878 EXPECT_TRUE(IsMockFunctionTemplateArgumentDeducedTo<TypeParam>(foo)); in TYPED_TEST()
883 using Argument = std::function<TypeParam>; in TYPED_TEST()
[all …]
/third_party/rust/crates/bindgen/bindgen/ir/
Dty.rs118 matches!(self.kind, TypeKind::TypeParam) in is_type_param()
153 TypeKind::TypeParam in is_builtin_or_type_param()
160 Self::new(name, None, TypeKind::TypeParam, false) in named()
250 TypeKind::TypeParam => { in is_invalid_type_param()
310 TypeKind::TypeParam | in safe_canonical_type()
395 TypeKind::TypeParam => Some(item.id().expect_type_id(ctx)), in as_template_param()
476 TypeKind::TypeParam => "TypeParam", in kind_name()
486 let ty = Type::new(Some("foo".into()), None, TypeKind::TypeParam, false); in is_invalid_type_param_valid()
495 TypeKind::TypeParam, in is_invalid_type_param_valid_underscore_and_numbers()
509 let ty = Type::new(Some("1foo".into()), None, TypeKind::TypeParam, false); in is_invalid_type_param_invalid_start()
[all …]

123