/external/chromium_org/base/files/ |
file_unittest.cc | 125 char data_read_1[32]; local 126 int bytes_read = file.Read(kTestDataSize, data_read_1, kTestDataSize); 131 bytes_read = file.Read(kPartialReadOffset, data_read_1, kTestDataSize); 134 EXPECT_EQ(data_to_write[i + kPartialReadOffset], data_read_1[i]); 137 bytes_read = file.Read(0, data_read_1, 0); 141 bytes_read = file.Read(0, data_read_1, kTestDataSize); 144 EXPECT_EQ(data_to_write[i], data_read_1[i]); 147 bytes_read = file.ReadNoBestEffort(0, data_read_1, kTestDataSize); 150 EXPECT_EQ(data_to_write[i], data_read_1[i]); 213 char data_read_1[32] local [all...] |
/external/chromium_org/base/ |
platform_file_unittest.cc | 169 char data_read_1[32]; local 170 int bytes_read = ReadFully(file, kTestDataSize, data_read_1, kTestDataSize); 175 bytes_read = ReadFully(file, kPartialReadOffset, data_read_1, kTestDataSize); 178 EXPECT_EQ(data_to_write[i + kPartialReadOffset], data_read_1[i]); 181 bytes_read = ReadFully(file, 0, data_read_1, 0); 185 bytes_read = ReadFully(file, 0, data_read_1, kTestDataSize); 188 EXPECT_EQ(data_to_write[i], data_read_1[i]); 191 bytes_read = ReadPlatformFileNoBestEffort(file, 0, data_read_1, 195 EXPECT_EQ(data_to_write[i], data_read_1[i]); 263 char data_read_1[32] local [all...] |
/external/chromium/base/ |
platform_file_unittest.cc | 154 char data_read_1[32]; local 155 int bytes_read = ReadFully(file, kTestDataSize, data_read_1, kTestDataSize); 160 bytes_read = ReadFully(file, kPartialReadOffset, data_read_1, kTestDataSize); 163 EXPECT_EQ(data_to_write[i + kPartialReadOffset], data_read_1[i]); 166 bytes_read = ReadFully(file, 0, data_read_1, 0); 170 bytes_read = ReadFully(file, 0, data_read_1, kTestDataSize); 173 EXPECT_EQ(data_to_write[i], data_read_1[i]);
|