/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 base::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 base::WriteFile(temp_file_path, kTestData, kTestDataSize)); in TEST_F() [all …]
|
D | file_stream_unittest.cc | 35 const int kTestDataSize = arraysize(kTestData) - 1; variable 39 IOBufferWithSize* buf = new IOBufferWithSize(kTestDataSize); in CreateTestDataBuffer() 40 memcpy(buf->data(), kTestData, kTestDataSize); in CreateTestDataBuffer() 52 base::WriteFile(temp_file_path_, kTestData, kTestDataSize); in SetUp() 113 ASSERT_EQ(kTestDataSize, in TEST_F() 114 base::WriteFile(temp_file_path(), kTestData, kTestDataSize)); in TEST_F() 127 new IOBufferWithSize(kTestDataSize); in TEST_F() 128 rv = read_stream->Read(read_buffer.get(), kTestDataSize, callback.callback()); in TEST_F() 129 ASSERT_EQ(kTestDataSize, callback.GetResult(rv)); in TEST_F() 130 ASSERT_EQ(0, memcmp(kTestData, read_buffer->data(), kTestDataSize)); in TEST_F() [all …]
|
/external/chromium_org/base/ |
D | platform_file_unittest.cc | 178 const int kTestDataSize = 4; in TEST() local 185 bytes_written = WriteFully(file, 0, data_to_write, kTestDataSize); in TEST() 186 EXPECT_EQ(kTestDataSize, bytes_written); in TEST() 190 int bytes_read = ReadFully(file, kTestDataSize, data_read_1, kTestDataSize); in TEST() 195 bytes_read = ReadFully(file, kPartialReadOffset, data_read_1, kTestDataSize); in TEST() 196 EXPECT_EQ(kTestDataSize - kPartialReadOffset, bytes_read); in TEST() 205 bytes_read = ReadFully(file, 0, data_read_1, kTestDataSize); in TEST() 206 EXPECT_EQ(kTestDataSize, bytes_read); in TEST() 212 kTestDataSize); in TEST() 213 EXPECT_LE(bytes_read, kTestDataSize); in TEST() [all …]
|
/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, _, 0)) in TEST_F() 115 .WillOnce(Return(kTestDataSize)); in TEST_F() 117 int result = target_->Write(buffer.get(), kTestDataSize, callback_); in TEST_F() 118 EXPECT_EQ(kTestDataSize, result); in TEST_F() 124 scoped_refptr<IOBuffer> buffer(new IOBuffer(kTestDataSize)); in TEST_F() 126 EXPECT_CALL(channel_, SendPacket(buffer->data(), kTestDataSize, _, 0)) 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_org/base/files/ |
D | file_unittest.cc | 156 const int kTestDataSize = 4; in TEST() local 163 bytes_written = file.Write(0, data_to_write, kTestDataSize); in TEST() 164 EXPECT_EQ(kTestDataSize, bytes_written); in TEST() 168 int bytes_read = file.Read(kTestDataSize, data_read_1, kTestDataSize); in TEST() 173 bytes_read = file.Read(kPartialReadOffset, data_read_1, kTestDataSize); in TEST() 174 EXPECT_EQ(kTestDataSize - kPartialReadOffset, bytes_read); in TEST() 183 bytes_read = file.Read(0, data_read_1, kTestDataSize); in TEST() 184 EXPECT_EQ(kTestDataSize, bytes_read); in TEST() 189 bytes_read = file.ReadNoBestEffort(0, data_read_1, kTestDataSize); in TEST() 190 EXPECT_LE(bytes_read, kTestDataSize); in TEST() [all …]
|
/external/chromium_org/content/browser/fileapi/ |
D | local_file_stream_reader_unittest.cc | 28 const int kTestDataSize = arraysize(kTestData) - 1; variable 71 base::WriteFile(test_path(), kTestData, kTestDataSize); in SetUp() 166 ASSERT_EQ(kTestDataSize, result); in TEST_F() 187 ASSERT_EQ(kTestDataSize, result); in TEST_F() 198 ASSERT_EQ(kTestDataSize, result); in TEST_F() 206 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 220 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 227 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 237 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 248 new net::IOBufferWithSize(kTestDataSize)); in TEST_F()
|
D | file_system_file_stream_reader_unittest.cc | 36 const int kTestDataSize = arraysize(kTestData) - 1; variable 82 WriteFile(kTestFileName, kTestData, kTestDataSize, in SetUp() 180 ASSERT_EQ(kTestDataSize, result); in TEST_F() 201 ASSERT_EQ(kTestDataSize, result); in TEST_F() 212 ASSERT_EQ(kTestDataSize, result); in TEST_F() 220 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 234 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 241 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 251 ReadFromReader(reader.get(), &data, kTestDataSize, &result); in TEST_F() 262 new net::IOBufferWithSize(kTestDataSize)); in TEST_F()
|
/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/content/browser/loader/ |
D | temporary_file_stream_unittest.cc | 31 const int kTestDataSize = arraysize(kTestData) - 1; variable 84 new net::IOBufferWithSize(kTestDataSize); in TEST() 85 memcpy(buf->data(), kTestData, kTestDataSize); in TEST() 88 while (bytes_written != kTestDataSize) { in TEST()
|
/external/chromium_org/mojo/system/ |
D | local_data_pipe_unittest.cc | 1286 const uint32_t kTestDataSize = static_cast<uint32_t>(sizeof(kTestData)); in TEST() local 1303 uint32_t num_bytes = kTestDataSize; in TEST() 1306 EXPECT_EQ(kTestDataSize, num_bytes); in TEST() 1309 num_bytes = kTestDataSize; in TEST() 1312 EXPECT_EQ(kTestDataSize, num_bytes); in TEST() 1328 EXPECT_EQ(2u * kTestDataSize, num_bytes); in TEST() 1334 EXPECT_EQ(0, memcmp(read_buffer_ptr, kTestData, kTestDataSize)); in TEST() 1335 EXPECT_EQ(MOJO_RESULT_OK, dp->ConsumerEndReadData(kTestDataSize)); in TEST() 1343 EXPECT_EQ(kTestDataSize, num_bytes); in TEST() 1354 uint32_t num_bytes = kTestDataSize; in TEST() [all …]
|
/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/webrtc/base/ |
D | win32toolhelp_unittest.cc | 58 if (tst->index_ >= kTestDataSize) { in Next() 118 static const int kTestDataSize = 3; member in rtc::Win32ToolhelpTest
|
/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
|