• Home
  • Raw
  • Download

Lines Matching refs:field2

125   RepeatedField<int> field2;  in TEST()  local
135 EXPECT_TRUE(field2.empty()); in TEST()
136 EXPECT_EQ(field2.size(), 0); in TEST()
138 field1.Swap(&field2); in TEST()
143 EXPECT_FALSE(field2.empty()); in TEST()
144 EXPECT_EQ(field2.size(), 2); in TEST()
145 EXPECT_EQ(field2.Get(0), 5); in TEST()
146 EXPECT_EQ(field2.Get(1), 42); in TEST()
151 RepeatedField<int> field2; in TEST() local
156 field2.Add(5); in TEST()
157 field2.Add(42); in TEST()
158 field1.Swap(&field2); in TEST()
163 EXPECT_EQ(field2.size(), 16); in TEST()
165 EXPECT_EQ(field2.Get(i), i * i); in TEST()
171 RepeatedField<int> field2; in TEST() local
177 field2.Add(i * i); in TEST()
179 field2.Swap(&field1); in TEST()
185 EXPECT_EQ(field2.size(), 18); in TEST()
186 EXPECT_EQ(field2.Get(0), 5); in TEST()
187 EXPECT_EQ(field2.Get(1), 42); in TEST()
189 EXPECT_EQ(field2.Get(i), i - 2); in TEST()
544 RepeatedPtrField<string> field2; in TEST() local
548 EXPECT_TRUE(field2.empty()); in TEST()
549 EXPECT_EQ(field2.size(), 0); in TEST()
559 EXPECT_TRUE(field2.empty()); in TEST()
560 EXPECT_EQ(field2.size(), 0); in TEST()
562 field1.Swap(&field2); in TEST()
567 EXPECT_EQ(field2.size(), 2); in TEST()
568 EXPECT_EQ(field2.Get(0), "foo"); in TEST()
569 EXPECT_EQ(field2.Get(1), "bar"); in TEST()
574 RepeatedPtrField<string> field2; in TEST() local
576 field2.Add()->assign("foo"); in TEST()
577 field2.Add()->assign("bar"); in TEST()
581 field1.Swap(&field2); in TEST()
586 EXPECT_EQ(field2.size(), 16); in TEST()
588 EXPECT_EQ(field2.Get(i).size(), 1); in TEST()
589 EXPECT_EQ(field2.Get(i)[0], 'a' + i); in TEST()
595 RepeatedPtrField<string> field2; in TEST() local
601 *field2.Add() += 'a' + i; in TEST()
603 field2.Swap(&field1); in TEST()
610 EXPECT_EQ(field2.size(), 18); in TEST()
611 EXPECT_EQ(field2.Get(0), "foo"); in TEST()
612 EXPECT_EQ(field2.Get(1), "bar"); in TEST()
614 EXPECT_EQ(field2.Get(i).size(), 1); in TEST()
615 EXPECT_EQ(field2.Get(i)[0], 'A' + i - 2); in TEST()