Home
last modified time | relevance | path

Searched refs:CopyableType (Results 1 – 8 of 8) sorted by relevance

/external/libmojo/mojo/public/cpp/bindings/tests/
Dcontainer_test_util.cc11 size_t CopyableType::num_instances_ = 0;
14 CopyableType::CopyableType() : copied_(false), ptr_(this) { in CopyableType() function in mojo::CopyableType
18 CopyableType::CopyableType(const CopyableType& other) in CopyableType() function in mojo::CopyableType
23 CopyableType& CopyableType::operator=(const CopyableType& other) { in operator =()
29 CopyableType::~CopyableType() { in ~CopyableType()
Dcontainer_test_util.h14 class CopyableType {
16 CopyableType();
17 CopyableType(const CopyableType& other);
18 CopyableType& operator=(const CopyableType& other);
19 ~CopyableType();
23 CopyableType* ptr() const { return ptr_; } in ptr()
29 CopyableType* ptr_;
Darray_unittest.cc33 ASSERT_EQ(0u, CopyableType::num_instances()); in ARRAY_COMMON_TEST()
34 Array<CopyableType> array(2); in ARRAY_COMMON_TEST()
36 std::vector<CopyableType*> value_ptrs; in ARRAY_COMMON_TEST()
39 CopyableType value; in ARRAY_COMMON_TEST()
44 EXPECT_EQ(array.size() + 1, CopyableType::num_instances()); in ARRAY_COMMON_TEST()
51 CopyableType value; in ARRAY_COMMON_TEST()
54 EXPECT_EQ(array.size() + 1, CopyableType::num_instances()); in ARRAY_COMMON_TEST()
57 EXPECT_EQ(array.size(), CopyableType::num_instances()); in ARRAY_COMMON_TEST()
64 EXPECT_EQ(0u, CopyableType::num_instances()); in ARRAY_COMMON_TEST()
103 std::vector<CopyableType> vec1(1); in TEST_F()
[all …]
Dstl_converters_unittest.cc24 Array<CopyableType> mojo_array(1); in TEST_F()
25 std::vector<CopyableType> stl_vector = UnwrapToSTLType(std::move(mojo_array)); in TEST_F()
28 Array<CopyableType> mojo_array2 = WrapSTLType(std::move(stl_vector)); in TEST_F()
32 Map<int32_t, CopyableType> mojo_map; in TEST_F()
33 mojo_map.insert(42, CopyableType()); in TEST_F()
35 std::map<int32_t, CopyableType> stl_map = in TEST_F()
39 Map<int32_t, CopyableType> mojo_map2 = WrapSTLType(std::move(stl_map)); in TEST_F()
Dmap_unittest.cc87 ASSERT_EQ(0u, CopyableType::num_instances()); in TEST_F()
88 mojo::Map<mojo::String, CopyableType> map; in TEST_F()
89 std::vector<CopyableType*> value_ptrs; in TEST_F()
93 CopyableType value; in TEST_F()
98 EXPECT_EQ(map.size() + 1, CopyableType::num_instances()); in TEST_F()
109 EXPECT_EQ(0u, CopyableType::num_instances()); in TEST_F()
191 std::map<int32_t, CopyableType> map1; in TEST_F()
192 map1.insert(std::make_pair(123, CopyableType())); in TEST_F()
195 Map<int32_t, CopyableType> mojo_map(std::move(map1)); in TEST_F()
200 std::map<int32_t, CopyableType> map2(mojo_map.PassStorage()); in TEST_F()
Dwtf_map_unittest.cc30 WTF::HashMap<int32_t, CopyableType> map1; in MAP_COMMON_TEST()
31 map1.add(123, CopyableType()); in MAP_COMMON_TEST()
35 WTFMap<int32_t, CopyableType> mojo_map(std::move(map1)); in MAP_COMMON_TEST()
40 WTF::HashMap<int32_t, CopyableType> map2(mojo_map.PassStorage()); in MAP_COMMON_TEST()
Dwtf_array_unittest.cc34 WTF::Vector<CopyableType> vec1(1); in ARRAY_COMMON_TEST()
35 WTFArray<CopyableType> arr(std::move(vec1)); in ARRAY_COMMON_TEST()
39 WTF::Vector<CopyableType> vec2(arr.PassStorage()); in ARRAY_COMMON_TEST()
Darray_common_test.h294 ASSERT_EQ(0u, CopyableType::num_instances()); in Resize_Copyable()
295 ArrayType<CopyableType> array(3); in Resize_Copyable()
296 std::vector<CopyableType*> value_ptrs; in Resize_Copyable()
305 EXPECT_EQ(array.size(), CopyableType::num_instances()); in Resize_Copyable()
314 EXPECT_EQ(array.size(), CopyableType::num_instances()); in Resize_Copyable()
322 EXPECT_EQ(array.size(), CopyableType::num_instances()); in Resize_Copyable()
332 EXPECT_EQ(array.size(), CopyableType::num_instances()); in Resize_Copyable()
338 EXPECT_EQ(0u, CopyableType::num_instances()); in Resize_Copyable()
341 EXPECT_EQ(0u, CopyableType::num_instances()); in Resize_Copyable()