Home
last modified time | relevance | path

Searched refs:kReadSize (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/media/base/
Dseekable_buffer_unittest.cc76 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/
Draw_channel_posix.cc33 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/
Dpepper_port_allocator.cc27 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/
Dproc_maps_linux.cc46 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/
Dconnection_tester.cc218 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/
Dtest_tcp_socket_private.cc199 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/
Dspdy_network_transaction_unittest.cc4157 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/
Dspdy_network_transaction_unittest.cc4202 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()