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.cc79 const int kReadSize = kWriteSize / 4; in TEST_F() local
96 EXPECT_EQ(kReadSize, buffer_.Read(write_buffer_, kReadSize)); in TEST_F()
97 forward_bytes -= kReadSize; in TEST_F()
99 EXPECT_EQ(0, memcmp(write_buffer_, data_ + read_position, kReadSize)); in TEST_F()
100 read_position += kReadSize; in TEST_F()
103 EXPECT_TRUE(buffer_.Seek(2 * kReadSize)); in TEST_F()
104 forward_bytes -= 2 * kReadSize; in TEST_F()
105 read_position += 2 * kReadSize; in TEST_F()
109 EXPECT_EQ(kReadSize, buffer_.Peek(write_buffer_, kReadSize)); in TEST_F()
111 EXPECT_EQ(0, memcmp(write_buffer_, data_ + read_position, kReadSize)); in TEST_F()
[all …]
/external/chromium_org/mojo/system/
Draw_channel.cc22 const size_t kReadSize = 4096; variable
27 : buffer_(kReadSize), in ReadBuffer()
35 DCHECK_GE(buffer_.size(), num_valid_bytes_ + kReadSize); in GetBuffer()
37 *size = kReadSize; in GetBuffer()
389 kReadSize) { in OnReadCompleted()
395 size_t new_size = std::max(read_buffer_->buffer_.size(), kReadSize); in OnReadCompleted()
396 while (new_size < read_buffer_->num_valid_bytes_ + kReadSize) in OnReadCompleted()
410 bool schedule_for_later = did_dispatch_message || bytes_read < kReadSize; in OnReadCompleted()
/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.cc48 const long kReadSize = sysconf(_SC_PAGESIZE); in ReadProcMaps() local
61 proc_maps->resize(pos + kReadSize); in ReadProcMaps()
64 ssize_t bytes_read = HANDLE_EINTR(read(fd.get(), 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_org/media/cdm/ppapi/
Dcdm_file_io_impl.cc16 const int kReadSize = 4 * 1024; // Arbitrary choice. variable
130 io_buffer_.resize(kReadSize); in Read()
/external/chromium_org/net/spdy/
Dspdy_network_transaction_unittest.cc4359 const int kReadSize = 256; in TEST_P() local
4360 scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kReadSize)); in TEST_P()
4361 rv = trans->Read(buf.get(), kReadSize, read_callback.callback()); in TEST_P()