Lines Matching refs:kTestData
28 const uint8_t kTestData[] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, variable
48 TestBuf(Buffer(kTestData, 0), 0, 0); in TEST()
49 TestBuf(Buffer(kTestData, 0, 20), 0, 20); in TEST()
53 Buffer buf(kTestData, 7); in TEST()
57 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 7)); in TEST()
61 Buffer buf(kTestData, 7, 14); in TEST()
65 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 7)); in TEST()
69 Buffer buf(kTestData); in TEST()
73 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 16)); in TEST()
77 Buffer buf(kTestData + 4, 7); in TEST()
78 buf.SetData(kTestData, 9); in TEST()
82 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 9)); in TEST()
87 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 9)); in TEST()
91 Buffer buf(kTestData + 4, 3); in TEST()
92 buf.AppendData(kTestData + 10, 2); in TEST()
105 const uint8_t* data() const { return kTestData; } in TEST()
110 EXPECT_EQ(Buffer(kTestData, 3), buf); in TEST()
114 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 3)); in TEST()
115 EXPECT_EQ(0, memcmp(buf.data() + 3, kTestData, 3)); in TEST()
121 buf.SetData(kTestData, 15); in TEST()
126 EXPECT_EQ(buf, Buffer(kTestData, 10)); in TEST()
131 buf.SetData(kTestData, 15); in TEST()
139 EXPECT_EQ(0, memcmp(buf.data(), kTestData, 15)); in TEST()
143 Buffer buf(kTestData); in TEST()
149 EXPECT_EQ(buf, Buffer(kTestData)); in TEST()
153 Buffer buf(kTestData, 5); in TEST()
157 buf.AppendData(kTestData + 5, 5); in TEST()
160 EXPECT_EQ(buf, Buffer(kTestData, 10)); in TEST()
164 Buffer buf1(kTestData, 3, 40); in TEST()
179 Buffer buf1(kTestData, 3, 40); in TEST()
181 Buffer buf2(kTestData); in TEST()
200 Buffer buf(kTestData, 3, 40); in TEST()
206 Buffer buf1(kTestData, 3); in TEST()
207 Buffer buf2(kTestData, 6, 40); in TEST()
224 buf.SetData(kTestData, 15); in TEST()
239 av[i] = kTestData[i]; in TEST()
244 buf1.SetData(kTestData, 15); in TEST()
245 buf1.AppendData(kTestData, 15); in TEST()
259 av[i] = kTestData[i]; in TEST()
264 buf1.SetData(kTestData, 15); in TEST()
265 buf1.AppendData(kTestData, 15); in TEST()
279 av[i] = kTestData[i]; in TEST()
284 buf1.SetData(kTestData, 15); in TEST()
297 av[i] = kTestData[i]; in TEST()
335 Buffer buf(kTestData, 7); in TEST()
342 EXPECT_EQ(buf[i], kTestData[i]); in TEST()
347 Buffer buf(kTestData, 7); in TEST()
356 EXPECT_EQ(cbuf[i], kTestData[i]); in TEST()
368 buf[i] = kTestData[i]; in TEST()
371 EXPECT_THAT(buf, ElementsAreArray(kTestData, 7)); in TEST()
375 const Buffer cbuf(kTestData); in TEST()
376 Buffer buf(kTestData); in TEST()
464 ZeroOnFreeBuffer<uint8_t> buf(kTestData, 7); in TEST()
469 buf.SetData(kTestData + offset, 2); in TEST()
475 EXPECT_EQ(kTestData[offset], buf[0]); in TEST()
476 EXPECT_EQ(kTestData[offset + 1], buf[1]); in TEST()
486 av[i] = kTestData[offset + i]; in TEST()
490 ZeroOnFreeBuffer<uint8_t> buf(kTestData, 7); in TEST()
500 EXPECT_EQ(kTestData[offset], buf[0]); in TEST()
501 EXPECT_EQ(kTestData[offset + 1], buf[1]); in TEST()
508 ZeroOnFreeBuffer<uint8_t> buf(kTestData, 7); in TEST()
518 EXPECT_EQ(kTestData[0], buf[0]); in TEST()
519 EXPECT_EQ(kTestData[1], buf[1]); in TEST()
526 ZeroOnFreeBuffer<uint8_t> buf(kTestData, 7); in TEST()