Home
last modified time | relevance | path

Searched refs:kTestDataSize (Results 1 – 4 of 4) sorted by relevance

/external/chromium/net/base/
Dfile_stream_unittest.cc20 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 …]
Dupload_data_stream_unittest.cc24 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/base/
Dplatform_file_unittest.cc143 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/net/socket/
Dssl_server_socket_unittest.cc192 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()