/external/chromium_org/net/base/ |
D | upload_data_stream_unittest.cc | 38 const size_t kTestDataSize = arraysize(kTestData) - 1; variable 155 kTestData, kTestDataSize)); in TEST_F() 159 EXPECT_EQ(kTestDataSize, stream.size()); in TEST_F() 168 EXPECT_EQ(kTestDataSize, stream.position()); in TEST_F() 176 ASSERT_EQ(static_cast<int>(kTestDataSize), in TEST_F() 177 file_util::WriteFile(temp_file_path, kTestData, kTestDataSize)); in TEST_F() 191 EXPECT_EQ(kTestDataSize, stream.size()); in TEST_F() 202 EXPECT_EQ(kTestDataSize, stream.position()); in TEST_F() 210 ASSERT_EQ(static_cast<int>(kTestDataSize), in TEST_F() 211 file_util::WriteFile(temp_file_path, kTestData, kTestDataSize)); in TEST_F() [all …]
|
D | file_stream_unittest.cc | 33 const int kTestDataSize = arraysize(kTestData) - 1; variable 37 IOBufferWithSize* buf = new IOBufferWithSize(kTestDataSize); in CreateTestDataBuffer() 38 memcpy(buf->data(), kTestData, kTestDataSize); in CreateTestDataBuffer() 50 file_util::WriteFile(temp_file_path_, kTestData, kTestDataSize); in SetUp() 147 ASSERT_EQ(kTestDataSize, in TEST_F() 148 file_util::WriteFile(temp_file_path(), kTestData, kTestDataSize)); in TEST_F() 171 ASSERT_EQ(kTestDataSize, in TEST_F() 172 file_util::WriteFile(temp_file_path(), kTestData, kTestDataSize)); in TEST_F() 181 ASSERT_EQ(kTestDataSize, read_stream->Available()); in TEST_F() 183 char buffer[kTestDataSize]; in TEST_F() [all …]
|
/external/chromium_org/base/ |
D | platform_file_unittest.cc | 158 const int kTestDataSize = 4; in TEST() local 165 bytes_written = WriteFully(file, 0, data_to_write, kTestDataSize); in TEST() 166 EXPECT_EQ(kTestDataSize, bytes_written); in TEST() 170 int bytes_read = ReadFully(file, kTestDataSize, data_read_1, kTestDataSize); in TEST() 175 bytes_read = ReadFully(file, kPartialReadOffset, data_read_1, kTestDataSize); in TEST() 176 EXPECT_EQ(kTestDataSize - kPartialReadOffset, bytes_read); in TEST() 185 bytes_read = ReadFully(file, 0, data_read_1, kTestDataSize); in TEST() 186 EXPECT_EQ(kTestDataSize, bytes_read); in TEST() 192 kTestDataSize); in TEST() 193 EXPECT_LE(bytes_read, kTestDataSize); in TEST() [all …]
|
/external/chromium_org/base/files/ |
D | file_unittest.cc | 114 const int kTestDataSize = 4; in TEST() local 121 bytes_written = file.Write(0, data_to_write, kTestDataSize); in TEST() 122 EXPECT_EQ(kTestDataSize, bytes_written); in TEST() 126 int bytes_read = file.Read(kTestDataSize, data_read_1, kTestDataSize); in TEST() 131 bytes_read = file.Read(kPartialReadOffset, data_read_1, kTestDataSize); in TEST() 132 EXPECT_EQ(kTestDataSize - kPartialReadOffset, bytes_read); in TEST() 141 bytes_read = file.Read(0, data_read_1, kTestDataSize); in TEST() 142 EXPECT_EQ(kTestDataSize, bytes_read); in TEST() 147 bytes_read = file.ReadNoBestEffort(0, data_read_1, kTestDataSize); in TEST() 148 EXPECT_LE(bytes_read, kTestDataSize); in TEST() [all …]
|
/external/chromium/net/base/ |
D | file_stream_unittest.cc | 20 const int kTestDataSize = arraysize(kTestData) - 1; variable 28 file_util::WriteFile(temp_file_path_, kTestData, kTestDataSize); in SetUp() 52 ASSERT_EQ(kTestDataSize, in TEST_F() 53 file_util::WriteFile(temp_file_path(), kTestData, kTestDataSize)); in TEST_F() 61 ASSERT_EQ(kTestDataSize, read_stream.Available()); in TEST_F() 63 char buffer[kTestDataSize]; in TEST_F() 64 ASSERT_EQ(kTestDataSize, read_stream.Read(buffer, kTestDataSize, NULL)); in TEST_F() 65 ASSERT_EQ(0, memcmp(kTestData, buffer, kTestDataSize)); in TEST_F() 75 ASSERT_EQ(kTestDataSize, write_stream.Write(kTestData, kTestDataSize, NULL)); in TEST_F() 79 ASSERT_EQ(kTestDataSize, in TEST_F() [all …]
|
D | upload_data_stream_unittest.cc | 24 const int kTestDataSize = arraysize(kTestData) - 1; variable 48 upload_data_->AppendBytes(kTestData, kTestDataSize); in TEST_F() 60 ASSERT_EQ(kTestDataSize, file_util::WriteFile(temp_file_path, in TEST_F() 61 kTestData, kTestDataSize)); in TEST_F() 62 const uint64 kFakeSize = kTestDataSize*2; in TEST_F() 109 ASSERT_EQ(kTestDataSize, file_util::WriteFile(temp_file_path, in TEST_F() 110 kTestData, kTestDataSize)); in TEST_F()
|
/external/chromium_org/jingle/glue/ |
D | channel_socket_adapter_unittest.cc | 26 const int kTestDataSize = 4; variable 91 channel_.SignalReadPacket(&channel_, kTestData, kTestDataSize, in TEST_F() 93 EXPECT_EQ(kTestDataSize, callback_result_); in TEST_F() 112 scoped_refptr<IOBuffer> buffer(new IOBuffer(kTestDataSize)); in TEST_F() 114 EXPECT_CALL(channel_, SendPacket(buffer->data(), kTestDataSize, in TEST_F() 116 .WillOnce(Return(kTestDataSize)); in TEST_F() 118 int result = target_->Write(buffer.get(), kTestDataSize, callback_); in TEST_F() 119 EXPECT_EQ(kTestDataSize, result); in TEST_F() 125 scoped_refptr<IOBuffer> buffer(new IOBuffer(kTestDataSize)); in TEST_F() 127 EXPECT_CALL(channel_, SendPacket(buffer->data(), kTestDataSize, in TEST_F() [all …]
|
D | pseudotcp_adapter_unittest.cc | 33 const int kTestDataSize = kMessages * kMessageSize; variable 187 ASSERT_EQ(kTestDataSize + kMessageSize, input_buffer_->capacity()); in CheckResults() 190 ASSERT_EQ(kTestDataSize, output_buffer_->size()); in CheckResults() 193 input_buffer_->StartOfBuffer(), kTestDataSize)); in CheckResults() 212 new net::IOBuffer(kTestDataSize), kTestDataSize); in InitBuffers() 213 memset(output_buffer_->data(), 123, kTestDataSize); in InitBuffers() 279 if (input_buffer_->capacity() == kTestDataSize + kMessageSize) in HandleReadResult()
|
/external/chromium/base/ |
D | platform_file_unittest.cc | 143 const int kTestDataSize = 4; in TEST() local 150 bytes_written = WriteFully(file, 0, data_to_write, kTestDataSize); in TEST() 151 EXPECT_EQ(kTestDataSize, bytes_written); in TEST() 155 int bytes_read = ReadFully(file, kTestDataSize, data_read_1, kTestDataSize); in TEST() 160 bytes_read = ReadFully(file, kPartialReadOffset, data_read_1, kTestDataSize); in TEST() 161 EXPECT_EQ(kTestDataSize - kPartialReadOffset, bytes_read); in TEST() 170 bytes_read = ReadFully(file, 0, data_read_1, kTestDataSize); in TEST() 171 EXPECT_EQ(kTestDataSize, bytes_read); in TEST() 191 for (int i = 0; i < kTestDataSize; i++) in TEST() 193 for (int i = kTestDataSize; i < kOffsetBeyondEndOfFile; i++) in TEST() [all …]
|
/external/chromium_org/content/browser/fileapi/ |
D | file_system_file_stream_reader_unittest.cc | 31 const int kTestDataSize = arraysize(kTestData) - 1; variable 77 WriteFile(kTestFileName, kTestData, kTestDataSize, in SetUp() 175 ASSERT_EQ(kTestDataSize, result); in TEST_F() 196 ASSERT_EQ(kTestDataSize, result); in TEST_F() 207 ASSERT_EQ(kTestDataSize, result); in TEST_F() 215 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 229 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 236 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 246 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 257 new net::IOBufferWithSize(kTestDataSize)); in TEST_F()
|
/external/chromium_org/webkit/browser/blob/ |
D | local_file_stream_reader_unittest.cc | 26 const int kTestDataSize = arraysize(kTestData) - 1; variable 69 file_util::WriteFile(test_path(), kTestData, kTestDataSize); in SetUp() 169 ASSERT_EQ(kTestDataSize, result); in TEST_F() 190 ASSERT_EQ(kTestDataSize, result); in TEST_F() 201 ASSERT_EQ(kTestDataSize, result); in TEST_F() 209 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 223 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 230 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 240 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 251 new net::IOBufferWithSize(kTestDataSize)); in TEST_F()
|
/external/chromium/net/socket/ |
D | ssl_server_socket_unittest.cc | 192 const int kTestDataSize = strlen(kTestData); in TEST() local 198 EXPECT_EQ(kTestDataSize, server.Write(write_buf, kTestDataSize, NULL)); in TEST() 199 EXPECT_EQ(kTestDataSize, client.Read(read_buf, kReadBufSize, NULL)); in TEST() 200 EXPECT_EQ(0, memcmp(kTestData, read_buf->data(), kTestDataSize)); in TEST() 206 EXPECT_EQ(kTestDataSize, client.Write(write_buf, kTestDataSize, NULL)); in TEST() 207 EXPECT_EQ(kTestDataSize, callback.WaitForResult()); in TEST() 208 EXPECT_EQ(0, memcmp(kTestData, read_buf->data(), kTestDataSize)); in TEST()
|
/external/chromium_org/media/base/ |
D | data_buffer_unittest.cc | 46 const int kTestDataSize = arraysize(kTestData); in TEST() local 49 DataBuffer::CopyFrom(kTestData, kTestDataSize); in TEST() 50 EXPECT_EQ(kTestDataSize, buffer->data_size()); in TEST() 54 EXPECT_EQ(0, memcmp(buffer->data(), kTestData, kTestDataSize)); in TEST() 56 EXPECT_NE(0, memcmp(buffer->data(), kTestData, kTestDataSize)); in TEST()
|
/external/chromium_org/net/socket/ |
D | ssl_server_socket_unittest.cc | 265 const int kTestDataSize = strlen(kTestData); in TEST() local 272 server.Write(write_buf.get(), kTestDataSize, CompletionCallback()); in TEST() 274 EXPECT_LE(written, kTestDataSize); in TEST() 286 written = client.Write(write_buf.get(), kTestDataSize, CompletionCallback()); in TEST() 288 EXPECT_LE(written, kTestDataSize); in TEST()
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | win32toolhelp_unittest.cc | 75 if (tst->index_ >= kTestDataSize) { in Next() 135 static const int kTestDataSize = 3; member in talk_base::Win32ToolhelpTest
|