Searched refs:kReadSize (Results 1 – 8 of 8) sorted by relevance
/external/chromium_org/media/base/ |
D | seekable_buffer_unittest.cc | 76 const int kReadSize = kWriteSize / 4; in TEST_F() local 93 EXPECT_EQ(kReadSize, buffer_.Read(write_buffer_, kReadSize)); in TEST_F() 94 forward_bytes -= kReadSize; in TEST_F() 96 EXPECT_EQ(0, memcmp(write_buffer_, data_ + read_position, kReadSize)); in TEST_F() 97 read_position += kReadSize; in TEST_F() 100 EXPECT_TRUE(buffer_.Seek(2 * kReadSize)); in TEST_F() 101 forward_bytes -= 2 * kReadSize; in TEST_F() 102 read_position += 2 * kReadSize; in TEST_F() 106 EXPECT_EQ(kReadSize, buffer_.Peek(write_buffer_, kReadSize)); in TEST_F() 108 EXPECT_EQ(0, memcmp(write_buffer_, data_ + read_position, kReadSize)); in TEST_F() [all …]
|
/external/chromium_org/mojo/system/ |
D | raw_channel_posix.cc | 33 const size_t kReadSize = 4096; variable 220 < kReadSize) { in OnFileCanReadWithoutBlocking() 226 size_t new_size = std::max(read_buffer_.size(), kReadSize); in OnFileCanReadWithoutBlocking() 228 read_buffer_start + read_buffer_num_valid_bytes_ + kReadSize) in OnFileCanReadWithoutBlocking() 238 kReadSize)); in OnFileCanReadWithoutBlocking() 291 if (static_cast<size_t>(bytes_read) < kReadSize) in OnFileCanReadWithoutBlocking()
|
/external/chromium_org/remoting/client/plugin/ |
D | pepper_port_allocator.cc | 27 const int kReadSize = 1024; variable 254 relay_response_body_.resize(pos + kReadSize); in ReadResponseBody() 258 kReadSize, in ReadResponseBody() 277 CHECK_LE(result, kReadSize); in OnResponseBodyRead() 278 CHECK_GE(static_cast<int>(relay_response_body_.size()), kReadSize); in OnResponseBodyRead() 279 relay_response_body_.resize(relay_response_body_.size() - kReadSize + result); in OnResponseBodyRead()
|
/external/chromium_org/base/debug/ |
D | proc_maps_linux.cc | 46 const long kReadSize = sysconf(_SC_PAGESIZE); in ReadProcMaps() local 60 proc_maps->resize(pos + kReadSize); in ReadProcMaps() 63 ssize_t bytes_read = HANDLE_EINTR(read(fd, buffer, kReadSize)); in ReadProcMaps()
|
/external/chromium_org/remoting/protocol/ |
D | connection_tester.cc | 218 int kReadSize = message_size_ * 2; in DoRead() local 219 read_buffer_ = new net::IOBuffer(kReadSize); in DoRead() 223 kReadSize, in DoRead()
|
/external/chromium_org/ppapi/tests/ |
D | test_tcp_socket_private.cc | 199 const size_t kReadSize = 1024 * 1024 + 32; in TestLargeRead() local 202 char* buffer = new (std::nothrow) char[kReadSize]; in TestLargeRead() 206 cb.WaitForResult(socket.Read(buffer, kReadSize * sizeof(*buffer), in TestLargeRead()
|
/external/chromium/net/spdy/ |
D | spdy_network_transaction_unittest.cc | 4157 const int kReadSize = 256; in TEST_P() local 4158 scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kReadSize)); in TEST_P() 4159 rv = trans->Read(buf, kReadSize, &read_callback); in TEST_P()
|
/external/chromium_org/net/spdy/ |
D | spdy_network_transaction_unittest.cc | 4202 const int kReadSize = 256; in TEST_P() local 4203 scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kReadSize)); in TEST_P() 4204 rv = trans->Read(buf.get(), kReadSize, read_callback.callback()); in TEST_P()
|