Lines Matching refs:bytes
20 size_t bytes; in TEST() local
26 EXPECT_FALSE(queue1.ReadFront(out, kSize, &bytes)); in TEST()
29 EXPECT_TRUE(queue1.WriteBack(in, kSize, &bytes)); in TEST()
30 EXPECT_EQ(kSize, bytes); in TEST()
34 EXPECT_FALSE(queue1.WriteBack(in, kSize, &bytes)); in TEST()
38 EXPECT_TRUE(queue1.ReadFront(out, kSize, &bytes)); in TEST()
39 EXPECT_EQ(kSize, bytes); in TEST()
43 EXPECT_FALSE(queue1.ReadFront(out, kSize, &bytes)); in TEST()
47 EXPECT_TRUE(queue1.WriteBack(in, kSize, &bytes)); in TEST()
48 EXPECT_EQ(kSize, bytes); in TEST()
50 EXPECT_TRUE(queue1.ReadFront(out, kSize * 2, &bytes)); in TEST()
51 EXPECT_EQ(kSize, bytes); in TEST()
56 EXPECT_TRUE(queue2.WriteBack(in, kSize / 2, &bytes)); in TEST()
58 EXPECT_TRUE(queue2.WriteBack(in + kSize / 2, kSize / 2, &bytes)); in TEST()
60 EXPECT_TRUE(queue2.ReadFront(out, kSize, &bytes)); in TEST()
61 EXPECT_EQ(kSize / 2, bytes); in TEST()
64 EXPECT_TRUE(queue2.ReadFront(out, kSize, &bytes)); in TEST()
65 EXPECT_EQ(kSize / 2, bytes); in TEST()
70 EXPECT_TRUE(queue2.WriteBack(in, kSize / 2, &bytes)); in TEST()
72 EXPECT_TRUE(queue2.WriteBack(in + kSize / 2, kSize / 2, &bytes)); in TEST()
75 EXPECT_TRUE(queue2.ReadFront(out, kSize / 4, &bytes)); in TEST()
76 EXPECT_EQ(kSize / 4, bytes); in TEST()
80 EXPECT_TRUE(queue2.ReadFront(out, kSize, &bytes)); in TEST()
81 EXPECT_EQ(kSize / 2, bytes); in TEST()