Lines Matching refs:vec
788 DynamicVector<int> vec; in TEST() local
789 vec.wrap(buf, kSize); in TEST()
790 ASSERT_FALSE(vec.owns_data()); in TEST()
792 vec.unwrap(); in TEST()
793 EXPECT_TRUE(vec.owns_data()); in TEST()
794 EXPECT_EQ(vec.size(), 0); in TEST()
795 EXPECT_EQ(vec.capacity(), 0); in TEST()
796 EXPECT_EQ(vec.data(), nullptr); in TEST()
798 EXPECT_TRUE(vec.push_back(1)); in TEST()
808 DynamicVector<int> vec; in TEST() local
809 ASSERT_TRUE(vec.copy_array(buf, kSize)); in TEST()
810 EXPECT_TRUE(vec.owns_data()); in TEST()
812 EXPECT_EQ(vec.size(), kSize); in TEST()
813 EXPECT_EQ(vec.capacity(), kSize); in TEST()
814 EXPECT_NE(vec.data(), buf); in TEST()
816 EXPECT_TRUE(vec.push_back(kSize)); in TEST()
817 EXPECT_EQ(vec.size(), kSize + 1); in TEST()
818 EXPECT_GE(vec.capacity(), kSize + 1); in TEST()
821 EXPECT_EQ(vec[i], i); in TEST()
830 DynamicVector<Dummy> vec; in TEST() local
837 ASSERT_TRUE(vec.copy_array(array, kSize)); in TEST()
845 ASSERT_TRUE(vec[i].getValue() == i); in TEST()
855 DynamicVector<int> vec; in TEST() local
857 EXPECT_TRUE(vec.copy_array(nullptr, 0)); in TEST()
858 EXPECT_EQ(vec.size(), 0); in TEST()
860 vec.emplace_back(1); in TEST()
861 EXPECT_TRUE(vec.copy_array(nullptr, 0)); in TEST()
862 EXPECT_EQ(vec.size(), 0); in TEST()