Home | History | Annotate | Download | only in base

Lines Matching defs:in

5  *  that can be found in the LICENSE file in the root of the source
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
18 const char in[kSize * 2 + 1] = "0123456789ABCDEFGHIJKLMNOPQRSTUV";
29 EXPECT_TRUE(queue1.WriteBack(in, kSize, &bytes));
34 EXPECT_FALSE(queue1.WriteBack(in, kSize, &bytes));
40 EXPECT_EQ(0, memcmp(in, out, kSize));
47 EXPECT_TRUE(queue1.WriteBack(in, kSize, &bytes));
52 EXPECT_EQ(0, memcmp(in, out, kSize));
56 EXPECT_TRUE(queue2.WriteBack(in, kSize / 2, &bytes));
58 EXPECT_TRUE(queue2.WriteBack(in + kSize / 2, kSize / 2, &bytes));
62 EXPECT_EQ(0, memcmp(in, out, kSize / 2));
66 EXPECT_EQ(0, memcmp(in + kSize / 2, out, kSize / 2));
70 EXPECT_TRUE(queue2.WriteBack(in, kSize / 2, &bytes));
72 EXPECT_TRUE(queue2.WriteBack(in + kSize / 2, kSize / 2, &bytes));
74 // Read first packet partially in too-small buffer.
77 EXPECT_EQ(0, memcmp(in, out, kSize / 4));
82 EXPECT_EQ(0, memcmp(in + kSize / 2, out, kSize / 2));