Searched refs:CopyableOnlyInstance (Results 1 – 8 of 8) sorted by relevance
/third_party/abseil-cpp/absl/container/internal/ |
D | test_instance_tracker.h | 226 class CopyableOnlyInstance : public BaseCountedInstance { 228 explicit CopyableOnlyInstance(int x) : BaseCountedInstance(x) {} in CopyableOnlyInstance() function 229 CopyableOnlyInstance(const CopyableOnlyInstance& rhs) = default; 230 CopyableOnlyInstance& operator=(const CopyableOnlyInstance& rhs) = default; 232 friend void swap(CopyableOnlyInstance& lhs, CopyableOnlyInstance& rhs) { in swap()
|
D | test_instance_tracker_test.cc | 22 using absl::test_internal::CopyableOnlyInstance; 64 CopyableOnlyInstance src(1); in TEST() 66 CopyableOnlyInstance copy(src); in TEST() 67 CopyableOnlyInstance copy2(std::move(src)); // NOLINT in TEST() 74 CopyableOnlyInstance copy_assign(1); in TEST() 76 CopyableOnlyInstance copy_assign2(1); in TEST()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
D | test_instance_tracker.h | 226 class CopyableOnlyInstance : public BaseCountedInstance { 228 explicit CopyableOnlyInstance(int x) : BaseCountedInstance(x) {} in CopyableOnlyInstance() function 229 CopyableOnlyInstance(const CopyableOnlyInstance& rhs) = default; 230 CopyableOnlyInstance& operator=(const CopyableOnlyInstance& rhs) = default; 232 friend void swap(CopyableOnlyInstance& lhs, CopyableOnlyInstance& rhs) { in swap()
|
D | test_instance_tracker_test.cc | 22 using absl::test_internal::CopyableOnlyInstance; 64 CopyableOnlyInstance src(1); in TEST() 66 CopyableOnlyInstance copy(src); in TEST() 67 CopyableOnlyInstance copy2(std::move(src)); // NOLINT in TEST() 74 CopyableOnlyInstance copy_assign(1); in TEST() 76 CopyableOnlyInstance copy_assign2(1); in TEST()
|
/third_party/abseil-cpp/absl/types/ |
D | any_test.cc | 32 using absl::test_internal::CopyableOnlyInstance; 559 absl::any o(absl::in_place_type<CopyableOnlyInstance>, 123); in TEST() 560 CopyableOnlyInstance* f1 = absl::any_cast<CopyableOnlyInstance>(&o); in TEST() 563 const CopyableOnlyInstance* f2 = absl::any_cast<CopyableOnlyInstance>(&o2); in TEST() 569 const CopyableOnlyInstance* f3 = absl::any_cast<CopyableOnlyInstance>(&o3); in TEST() 590 any1.emplace<CopyableOnlyInstance>(5); in TEST() 594 EXPECT_EQ(5, absl::any_cast<CopyableOnlyInstance&>(any1).value()); in TEST() 595 EXPECT_EQ(5, absl::any_cast<CopyableOnlyInstance&>(any2).value()); in TEST() 600 EXPECT_EQ(5, absl::any_cast<CopyableOnlyInstance&>(any3).value()); in TEST() 605 EXPECT_EQ(5, absl::any_cast<CopyableOnlyInstance&>(any4).value()); in TEST() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/types/ |
D | any_test.cc | 32 using absl::test_internal::CopyableOnlyInstance; 559 absl::any o(absl::in_place_type<CopyableOnlyInstance>, 123); in TEST() 560 CopyableOnlyInstance* f1 = absl::any_cast<CopyableOnlyInstance>(&o); in TEST() 563 const CopyableOnlyInstance* f2 = absl::any_cast<CopyableOnlyInstance>(&o2); in TEST() 569 const CopyableOnlyInstance* f3 = absl::any_cast<CopyableOnlyInstance>(&o3); in TEST() 590 any1.emplace<CopyableOnlyInstance>(5); in TEST() 594 EXPECT_EQ(5, absl::any_cast<CopyableOnlyInstance&>(any1).value()); in TEST() 595 EXPECT_EQ(5, absl::any_cast<CopyableOnlyInstance&>(any2).value()); in TEST() 600 EXPECT_EQ(5, absl::any_cast<CopyableOnlyInstance&>(any3).value()); in TEST() 605 EXPECT_EQ(5, absl::any_cast<CopyableOnlyInstance&>(any4).value()); in TEST() [all …]
|
/third_party/abseil-cpp/absl/container/ |
D | inlined_vector_test.cc | 44 using absl::test_internal::CopyableOnlyInstance; 1264 InstanceCountElemAssignWithAllocationTest<CopyableOnlyInstance>(); in TEST() 1553 ::testing::Types<CopyableOnlyInstance, CopyableMovableInstance>;
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
D | inlined_vector_test.cc | 44 using absl::test_internal::CopyableOnlyInstance; 1268 InstanceCountElemAssignWithAllocationTest<CopyableOnlyInstance>(); in TEST() 1557 ::testing::Types<CopyableOnlyInstance, CopyableMovableInstance>;
|