Home
last modified time | relevance | path

Searched refs:vector1 (Results 1 – 2 of 2) sorted by relevance

/system/core/libutils/tests/
DVector_test.cpp120 Vector<int> vector1; in TEST_F() local
121 vector1.add(1); in TEST_F()
122 vector1.add(2); in TEST_F()
123 vector1.add(3); in TEST_F()
124 vector1.add(4); in TEST_F()
126 Vector<int> vector2 = vector1; in TEST_F()
127 ASSERT_EQ(vector1.array(), vector2.array()); in TEST_F()
130 ASSERT_NE(vector1.editArray(), vector2.editArray()); in TEST_F()
133 ASSERT_EQ(vector1.size(), vector2.size()); in TEST_F()
134 for (size_t i = 0; i < vector1.size(); ++i) { in TEST_F()
[all …]
/system/chre/util/tests/
Ddynamic_vector_test.cc749 DynamicVector<int> vector1; in TEST() local
750 vector1.wrap(buf, kSize); in TEST()
752 DynamicVector<int> vector2 = std::move(vector1); in TEST()
753 EXPECT_TRUE(vector1.owns_data()); in TEST()
754 EXPECT_EQ(vector1.size(), 0); in TEST()
755 EXPECT_EQ(vector1.capacity(), 0); in TEST()
756 EXPECT_EQ(vector1.data(), nullptr); in TEST()