Lines Matching refs:queue2
22 BufferQueue queue2(2, kSize); in TEST() local
56 EXPECT_TRUE(queue2.WriteBack(in, kSize / 2, &bytes)); in TEST()
57 EXPECT_EQ(1u, queue2.size()); in TEST()
58 EXPECT_TRUE(queue2.WriteBack(in + kSize / 2, kSize / 2, &bytes)); in TEST()
59 EXPECT_EQ(2u, queue2.size()); in TEST()
60 EXPECT_TRUE(queue2.ReadFront(out, kSize, &bytes)); in TEST()
63 EXPECT_EQ(1u, queue2.size()); in TEST()
64 EXPECT_TRUE(queue2.ReadFront(out, kSize, &bytes)); in TEST()
67 EXPECT_EQ(0u, queue2.size()); in TEST()
70 EXPECT_TRUE(queue2.WriteBack(in, kSize / 2, &bytes)); in TEST()
71 EXPECT_EQ(1u, queue2.size()); in TEST()
72 EXPECT_TRUE(queue2.WriteBack(in + kSize / 2, kSize / 2, &bytes)); in TEST()
73 EXPECT_EQ(2u, queue2.size()); in TEST()
75 EXPECT_TRUE(queue2.ReadFront(out, kSize / 4, &bytes)); in TEST()
78 EXPECT_EQ(1u, queue2.size()); in TEST()
80 EXPECT_TRUE(queue2.ReadFront(out, kSize, &bytes)); in TEST()
83 EXPECT_EQ(0u, queue2.size()); in TEST()