Searched refs:kTestBufferLen (Results 1 – 1 of 1) sorted by relevance
/external/sfntly/cpp/src/test/ |
D | memory_io_test.cc | 31 const size_t kTestBufferLen = 102; variable 38 test_buffer.resize(kTestBufferLen); in TestMemoryInputStream() 39 std::copy(kTestData, kTestData + kTestBufferLen, test_buffer.begin()); in TestMemoryInputStream() 42 is.Attach(&(test_buffer[0]), kTestBufferLen); in TestMemoryInputStream() 43 EXPECT_EQ(is.Available(), (int32_t)kTestBufferLen); in TestMemoryInputStream() 72 EXPECT_EQ(is.Available(), (int32_t)kTestBufferLen - 50); in TestMemoryInputStream() 74 EXPECT_EQ(is.Skip(kTestBufferLen + 10), (int32_t)kTestBufferLen); in TestMemoryInputStream() 79 EXPECT_EQ(memcmp(&(b[0]), &(test_buffer[0]) + kTestBufferLen - 10, 10), 0); in TestMemoryInputStream() 86 test_buffer.resize(kTestBufferLen); in TestMemoryOutputStream() 87 std::copy(kTestData, kTestData + kTestBufferLen, test_buffer.begin()); in TestMemoryOutputStream() [all …]
|