Home
last modified time | relevance | path

Searched refs:Thrower (Results 1 – 25 of 43) sorted by relevance

12

/external/libtextclassifier/abseil-cpp/absl/container/
Dfixed_array_exception_safety_test.cc39 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
41 testing::ThrowingAllocator<Thrower, testing::AllocSpec::kEverythingThrows>;
47 using FixedArr = absl::FixedArray<Thrower, kInlined>;
48 using FixedArrWithAlloc = absl::FixedArray<Thrower, kInlined, ThrowAlloc>;
99 TestThrowingCtor<FixedArr>(kSmallSize, Thrower()); in TEST()
100 TestThrowingCtor<FixedArr>(kLargeSize, Thrower()); in TEST()
104 TestThrowingCtor<FixedArrWithAlloc>(kSmallSize, Thrower()); in TEST()
105 TestThrowingCtor<FixedArrWithAlloc>(kLargeSize, Thrower()); in TEST()
126 using SmallFixedArr = absl::FixedArray<Thrower, small_inlined>; in TEST()
128 TestThrowingCtor<SmallFixedArr>(std::initializer_list<Thrower>{}); in TEST()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/container/
Dfixed_array_exception_safety_test.cc39 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
41 testing::ThrowingAllocator<Thrower, testing::AllocSpec::kEverythingThrows>;
47 using FixedArr = absl::FixedArray<Thrower, kInlined>;
48 using FixedArrWithAlloc = absl::FixedArray<Thrower, kInlined, ThrowAlloc>;
99 TestThrowingCtor<FixedArr>(kSmallSize, Thrower()); in TEST()
100 TestThrowingCtor<FixedArr>(kLargeSize, Thrower()); in TEST()
104 TestThrowingCtor<FixedArrWithAlloc>(kSmallSize, Thrower()); in TEST()
105 TestThrowingCtor<FixedArrWithAlloc>(kLargeSize, Thrower()); in TEST()
126 using SmallFixedArr = absl::FixedArray<Thrower, small_inlined>; in TEST()
128 TestThrowingCtor<SmallFixedArr>(std::initializer_list<Thrower>{}); in TEST()
[all …]
/external/angle/third_party/abseil-cpp/absl/container/
Dfixed_array_exception_safety_test.cc39 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
41 testing::ThrowingAllocator<Thrower, testing::AllocSpec::kEverythingThrows>;
47 using FixedArr = absl::FixedArray<Thrower, kInlined>;
48 using FixedArrWithAlloc = absl::FixedArray<Thrower, kInlined, ThrowAlloc>;
99 TestThrowingCtor<FixedArr>(kSmallSize, Thrower()); in TEST()
100 TestThrowingCtor<FixedArr>(kLargeSize, Thrower()); in TEST()
104 TestThrowingCtor<FixedArrWithAlloc>(kSmallSize, Thrower()); in TEST()
105 TestThrowingCtor<FixedArrWithAlloc>(kLargeSize, Thrower()); in TEST()
126 using SmallFixedArr = absl::FixedArray<Thrower, small_inlined>; in TEST()
128 TestThrowingCtor<SmallFixedArr>(std::initializer_list<Thrower>{}); in TEST()
[all …]
/external/openscreen/third_party/abseil/src/absl/container/
Dfixed_array_exception_safety_test.cc39 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
41 testing::ThrowingAllocator<Thrower, testing::AllocSpec::kEverythingThrows>;
47 using FixedArr = absl::FixedArray<Thrower, kInlined>;
48 using FixedArrWithAlloc = absl::FixedArray<Thrower, kInlined, ThrowAlloc>;
99 TestThrowingCtor<FixedArr>(kSmallSize, Thrower()); in TEST()
100 TestThrowingCtor<FixedArr>(kLargeSize, Thrower()); in TEST()
104 TestThrowingCtor<FixedArrWithAlloc>(kSmallSize, Thrower()); in TEST()
105 TestThrowingCtor<FixedArrWithAlloc>(kLargeSize, Thrower()); in TEST()
126 using SmallFixedArr = absl::FixedArray<Thrower, small_inlined>; in TEST()
128 TestThrowingCtor<SmallFixedArr>(std::initializer_list<Thrower>{}); in TEST()
[all …]
/external/abseil-cpp/absl/container/
Dfixed_array_exception_safety_test.cc39 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
41 testing::ThrowingAllocator<Thrower, testing::AllocSpec::kEverythingThrows>;
47 using FixedArr = absl::FixedArray<Thrower, kInlined>;
48 using FixedArrWithAlloc = absl::FixedArray<Thrower, kInlined, ThrowAlloc>;
99 TestThrowingCtor<FixedArr>(kSmallSize, Thrower()); in TEST()
100 TestThrowingCtor<FixedArr>(kLargeSize, Thrower()); in TEST()
104 TestThrowingCtor<FixedArrWithAlloc>(kSmallSize, Thrower()); in TEST()
105 TestThrowingCtor<FixedArrWithAlloc>(kLargeSize, Thrower()); in TEST()
126 using SmallFixedArr = absl::FixedArray<Thrower, small_inlined>; in TEST()
128 TestThrowingCtor<SmallFixedArr>(std::initializer_list<Thrower>{}); in TEST()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/container/
Dfixed_array_exception_safety_test.cc39 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
41 testing::ThrowingAllocator<Thrower, testing::AllocSpec::kEverythingThrows>;
47 using FixedArr = absl::FixedArray<Thrower, kInlined>;
48 using FixedArrWithAlloc = absl::FixedArray<Thrower, kInlined, ThrowAlloc>;
99 TestThrowingCtor<FixedArr>(kSmallSize, Thrower()); in TEST()
100 TestThrowingCtor<FixedArr>(kLargeSize, Thrower()); in TEST()
104 TestThrowingCtor<FixedArrWithAlloc>(kSmallSize, Thrower()); in TEST()
105 TestThrowingCtor<FixedArrWithAlloc>(kLargeSize, Thrower()); in TEST()
126 using SmallFixedArr = absl::FixedArray<Thrower, small_inlined>; in TEST()
128 TestThrowingCtor<SmallFixedArr>(std::initializer_list<Thrower>{}); in TEST()
[all …]
/external/angle/third_party/abseil-cpp/absl/types/
Dany_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<>; typedef
32 using ThrowerList = std::initializer_list<Thrower>;
33 using ThrowerVec = std::vector<Thrower>;
34 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
35 using ThrowingThrowerVec = std::vector<Thrower, ThrowingAlloc>;
67 auto unused = absl::any_cast<Thrower>(*a); in AnyInvariants()
85 << absl::any_cast<Thrower>(*a).Get(); in AnyIsEmpty()
89 Thrower val(1); in TEST()
92 Thrower copy(val); in TEST()
95 testing::TestThrowingCtor<absl::any>(absl::in_place_type_t<Thrower>(), 1); in TEST()
[all …]
Dvariant_exception_safety_test.cc45 using Thrower = testing::ThrowingValue<>; typedef
48 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
49 using ThrowerVec = std::vector<Thrower, ThrowingAlloc>;
51 absl::variant<Thrower, CopyNothrow, MoveNothrow, ThrowerVec>;
65 v.emplace<Thrower>(); in ToValuelessByException()
66 v.emplace<Thrower>(ExceptionOnConversion<Thrower>()); in ToValuelessByException()
78 if (absl::holds_alternative<Thrower>(*v)) { in VariantInvariants()
79 auto& t = absl::get<Thrower>(*v); in VariantInvariants()
80 t = Thrower{-100}; in VariantInvariants()
111 auto unused = absl::get<Thrower>(*v); in VariantInvariants()
[all …]
/external/abseil-cpp/absl/types/
Dany_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<>; typedef
32 using ThrowerList = std::initializer_list<Thrower>;
33 using ThrowerVec = std::vector<Thrower>;
34 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
35 using ThrowingThrowerVec = std::vector<Thrower, ThrowingAlloc>;
67 auto unused = absl::any_cast<Thrower>(*a); in AnyInvariants()
85 << absl::any_cast<Thrower>(*a).Get(); in AnyIsEmpty()
89 Thrower val(1); in TEST()
92 Thrower copy(val); in TEST()
95 testing::TestThrowingCtor<absl::any>(absl::in_place_type_t<Thrower>(), 1); in TEST()
[all …]
Dvariant_exception_safety_test.cc45 using Thrower = testing::ThrowingValue<>; typedef
48 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
49 using ThrowerVec = std::vector<Thrower, ThrowingAlloc>;
51 absl::variant<Thrower, CopyNothrow, MoveNothrow, ThrowerVec>;
65 v.emplace<Thrower>(); in ToValuelessByException()
66 v.emplace<Thrower>(ExceptionOnConversion<Thrower>()); in ToValuelessByException()
78 if (absl::holds_alternative<Thrower>(*v)) { in VariantInvariants()
79 auto& t = absl::get<Thrower>(*v); in VariantInvariants()
80 t = Thrower{-100}; in VariantInvariants()
111 auto unused = absl::get<Thrower>(*v); in VariantInvariants()
[all …]
Doptional_exception_safety_test.cc36 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
37 using Optional = absl::optional<Thrower>;
109 auto thrower_nonempty = Optional(Thrower(kInitialInteger)); in TEST()
117 using ThrowerVec = std::vector<Thrower, testing::ThrowingAllocator<Thrower>>; in TEST()
120 std::initializer_list<Thrower>{Thrower(), Thrower(), Thrower()}, in TEST()
121 testing::ThrowingAllocator<Thrower>()); in TEST()
146 auto thrower = Thrower(kUpdatedInteger, testing::nothrow_ctor); in TEST()
217 auto thrower = Thrower(kUpdatedInteger, testing::nothrow_ctor); in TEST()
249 auto thrower = Thrower(kUpdatedInteger, testing::nothrow_ctor); in TEST()
/external/openscreen/third_party/abseil/src/absl/types/
Dany_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<>; typedef
32 using ThrowerList = std::initializer_list<Thrower>;
33 using ThrowerVec = std::vector<Thrower>;
34 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
35 using ThrowingThrowerVec = std::vector<Thrower, ThrowingAlloc>;
67 auto unused = absl::any_cast<Thrower>(*a); in AnyInvariants()
85 << absl::any_cast<Thrower>(*a).Get(); in AnyIsEmpty()
89 Thrower val(1); in TEST()
92 Thrower copy(val); in TEST()
95 testing::TestThrowingCtor<absl::any>(absl::in_place_type_t<Thrower>(), 1); in TEST()
[all …]
Dvariant_exception_safety_test.cc45 using Thrower = testing::ThrowingValue<>; typedef
48 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
49 using ThrowerVec = std::vector<Thrower, ThrowingAlloc>;
51 absl::variant<Thrower, CopyNothrow, MoveNothrow, ThrowerVec>;
65 v.emplace<Thrower>(); in ToValuelessByException()
66 v.emplace<Thrower>(ExceptionOnConversion<Thrower>()); in ToValuelessByException()
78 if (absl::holds_alternative<Thrower>(*v)) { in VariantInvariants()
79 auto& t = absl::get<Thrower>(*v); in VariantInvariants()
80 t = Thrower{-100}; in VariantInvariants()
111 auto unused = absl::get<Thrower>(*v); in VariantInvariants()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/types/
Dany_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<>; typedef
32 using ThrowerList = std::initializer_list<Thrower>;
33 using ThrowerVec = std::vector<Thrower>;
34 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
35 using ThrowingThrowerVec = std::vector<Thrower, ThrowingAlloc>;
67 auto unused = absl::any_cast<Thrower>(*a); in AnyInvariants()
85 << absl::any_cast<Thrower>(*a).Get(); in AnyIsEmpty()
89 Thrower val(1); in TEST()
92 Thrower copy(val); in TEST()
95 testing::TestThrowingCtor<absl::any>(absl::in_place_type_t<Thrower>(), 1); in TEST()
[all …]
Dvariant_exception_safety_test.cc45 using Thrower = testing::ThrowingValue<>; typedef
48 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
49 using ThrowerVec = std::vector<Thrower, ThrowingAlloc>;
51 absl::variant<Thrower, CopyNothrow, MoveNothrow, ThrowerVec>;
65 v.emplace<Thrower>(); in ToValuelessByException()
66 v.emplace<Thrower>(ExceptionOnConversion<Thrower>()); in ToValuelessByException()
78 if (absl::holds_alternative<Thrower>(*v)) { in VariantInvariants()
79 auto& t = absl::get<Thrower>(*v); in VariantInvariants()
80 t = Thrower{-100}; in VariantInvariants()
111 auto unused = absl::get<Thrower>(*v); in VariantInvariants()
[all …]
/external/libtextclassifier/abseil-cpp/absl/types/
Dany_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<>; typedef
32 using ThrowerList = std::initializer_list<Thrower>;
33 using ThrowerVec = std::vector<Thrower>;
34 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
35 using ThrowingThrowerVec = std::vector<Thrower, ThrowingAlloc>;
67 auto unused = absl::any_cast<Thrower>(*a); in AnyInvariants()
85 << absl::any_cast<Thrower>(*a).Get(); in AnyIsEmpty()
89 Thrower val(1); in TEST()
92 Thrower copy(val); in TEST()
95 testing::TestThrowingCtor<absl::any>(absl::in_place_type_t<Thrower>(), 1); in TEST()
[all …]
Dvariant_exception_safety_test.cc45 using Thrower = testing::ThrowingValue<>; typedef
48 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
49 using ThrowerVec = std::vector<Thrower, ThrowingAlloc>;
51 absl::variant<Thrower, CopyNothrow, MoveNothrow, ThrowerVec>;
65 v.emplace<Thrower>(); in ToValuelessByException()
66 v.emplace<Thrower>(ExceptionOnConversion<Thrower>()); in ToValuelessByException()
78 if (absl::holds_alternative<Thrower>(*v)) { in VariantInvariants()
79 auto& t = absl::get<Thrower>(*v); in VariantInvariants()
80 t = Thrower{-100}; in VariantInvariants()
111 auto unused = absl::get<Thrower>(*v); in VariantInvariants()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/types/
Dany_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<>; typedef
32 using ThrowerList = std::initializer_list<Thrower>;
33 using ThrowerVec = std::vector<Thrower>;
34 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
35 using ThrowingThrowerVec = std::vector<Thrower, ThrowingAlloc>;
67 auto unused = absl::any_cast<Thrower>(*a); in AnyInvariants()
85 << absl::any_cast<Thrower>(*a).Get(); in AnyIsEmpty()
89 Thrower val(1); in TEST()
92 Thrower copy(val); in TEST()
95 testing::TestThrowingCtor<absl::any>(absl::in_place_type_t<Thrower>(), 1); in TEST()
[all …]
Dvariant_exception_safety_test.cc45 using Thrower = testing::ThrowingValue<>; typedef
48 using ThrowingAlloc = testing::ThrowingAllocator<Thrower>;
49 using ThrowerVec = std::vector<Thrower, ThrowingAlloc>;
51 absl::variant<Thrower, CopyNothrow, MoveNothrow, ThrowerVec>;
65 v.emplace<Thrower>(); in ToValuelessByException()
66 v.emplace<Thrower>(ExceptionOnConversion<Thrower>()); in ToValuelessByException()
78 if (absl::holds_alternative<Thrower>(*v)) { in VariantInvariants()
79 auto& t = absl::get<Thrower>(*v); in VariantInvariants()
80 t = Thrower{-100}; in VariantInvariants()
111 auto unused = absl::get<Thrower>(*v); in VariantInvariants()
[all …]
/external/libtextclassifier/abseil-cpp/absl/memory/
Dmemory_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
34 .WithInitialValue(Thrower(kValue)) in TEST()
39 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
40 static_cast<void>(absl::make_unique<Thrower>(*thrower)); in TEST()
43 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
44 static_cast<void>(absl::make_unique<Thrower>(std::move(*thrower))); in TEST()
48 EXPECT_TRUE(tester.Test([&](Thrower*) { in TEST() argument
49 static_cast<void>(absl::make_unique<Thrower[]>(kLength)); in TEST()
/external/abseil-cpp/absl/memory/
Dmemory_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
34 .WithInitialValue(Thrower(kValue)) in TEST()
39 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
40 static_cast<void>(absl::make_unique<Thrower>(*thrower)); in TEST()
43 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
44 static_cast<void>(absl::make_unique<Thrower>(std::move(*thrower))); in TEST()
48 EXPECT_TRUE(tester.Test([&](Thrower*) { in TEST() argument
49 static_cast<void>(absl::make_unique<Thrower[]>(kLength)); in TEST()
/external/openscreen/third_party/abseil/src/absl/memory/
Dmemory_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
34 .WithInitialValue(Thrower(kValue)) in TEST()
39 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
40 static_cast<void>(absl::make_unique<Thrower>(*thrower)); in TEST()
43 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
44 static_cast<void>(absl::make_unique<Thrower>(std::move(*thrower))); in TEST()
48 EXPECT_TRUE(tester.Test([&](Thrower*) { in TEST() argument
49 static_cast<void>(absl::make_unique<Thrower[]>(kLength)); in TEST()
/external/angle/third_party/abseil-cpp/absl/memory/
Dmemory_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
34 .WithInitialValue(Thrower(kValue)) in TEST()
39 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
40 static_cast<void>(absl::make_unique<Thrower>(*thrower)); in TEST()
43 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
44 static_cast<void>(absl::make_unique<Thrower>(std::move(*thrower))); in TEST()
48 EXPECT_TRUE(tester.Test([&](Thrower*) { in TEST() argument
49 static_cast<void>(absl::make_unique<Thrower[]>(kLength)); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/memory/
Dmemory_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
34 .WithInitialValue(Thrower(kValue)) in TEST()
39 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
40 static_cast<void>(absl::make_unique<Thrower>(*thrower)); in TEST()
43 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
44 static_cast<void>(absl::make_unique<Thrower>(std::move(*thrower))); in TEST()
48 EXPECT_TRUE(tester.Test([&](Thrower*) { in TEST() argument
49 static_cast<void>(absl::make_unique<Thrower[]>(kLength)); in TEST()
/external/webrtc/third_party/abseil-cpp/absl/memory/
Dmemory_exception_safety_test.cc29 using Thrower = testing::ThrowingValue<testing::TypeSpec::kEverythingThrows>; typedef
34 .WithInitialValue(Thrower(kValue)) in TEST()
39 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
40 static_cast<void>(absl::make_unique<Thrower>(*thrower)); in TEST()
43 EXPECT_TRUE(tester.Test([](Thrower* thrower) { in TEST()
44 static_cast<void>(absl::make_unique<Thrower>(std::move(*thrower))); in TEST()
48 EXPECT_TRUE(tester.Test([&](Thrower*) { in TEST() argument
49 static_cast<void>(absl::make_unique<Thrower[]>(kLength)); in TEST()

12