Lines Matching refs:EXPECT_EQ
43 EXPECT_EQ(is.Available(), (int32_t)kTestBufferLen);
46 EXPECT_EQ(is.Read(), '0'); // position 1
47 EXPECT_EQ(is.Read(), '1'); // position 2
48 EXPECT_EQ(is.Read(), '2'); // position 3
53 EXPECT_EQ(is.Read(&b), 7); // position 10
54 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 3, 7), 0);
57 EXPECT_EQ(is.Read(&b, 7, 10), 10); // position 20
58 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 3, 17), 0);
63 EXPECT_EQ(is.Skip(30), 30); // position 50
64 EXPECT_EQ(is.Read(&b), 10); // position 60
65 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 50, 10), 0);
68 EXPECT_EQ(is.Skip(-20), -20); // position 40
69 EXPECT_EQ(is.Read(&b), 10); // position 50
70 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + 40, 10), 0);
72 EXPECT_EQ(is.Available(), (int32_t)kTestBufferLen - 50);
73 EXPECT_EQ(is.Skip(-60), -50); // Out of bound, position 0
74 EXPECT_EQ(is.Skip(kTestBufferLen + 10), (int32_t)kTestBufferLen);
79 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + kTestBufferLen - 10, 10), 0);
91 EXPECT_EQ(os.Size(), kTestBufferLen - 50);
92 EXPECT_EQ(memcmp(os.Get(), &(test_buffer[0]) + 50, kTestBufferLen - 50), 0);