Home
last modified time | relevance | path

Searched refs:BytesRemaining (Results 1 – 25 of 71) sorted by relevance

123

/external/chromium_org/net/base/
Dupload_file_element_reader_unittest.cc45 EXPECT_EQ(bytes_.size(), reader_->BytesRemaining()); in SetUp()
70 EXPECT_EQ(bytes_.size() - buf.size(), reader_->BytesRemaining()); in TEST_F()
78 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
90 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
107 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
122 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
130 EXPECT_EQ(bytes_.size(), reader_->BytesRemaining()); in TEST_F()
138 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
161 EXPECT_EQ(bytes_.size(), reader_->BytesRemaining()); in TEST_F()
171 EXPECT_EQ(bytes_.size() - buf2.size(), reader_->BytesRemaining()); in TEST_F()
[all …]
Dupload_bytes_element_reader_unittest.cc24 EXPECT_EQ(bytes_.size(), reader_->BytesRemaining()); in SetUp()
39 EXPECT_EQ(bytes_.size() - buf.size(), reader_->BytesRemaining()); in TEST_F()
50 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
64 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
77 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
83 EXPECT_EQ(bytes_.size(), reader_->BytesRemaining()); in TEST_F()
89 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
Dupload_file_element_reader.cc176 uint64 UploadFileElementReader::BytesRemaining() const { in BytesRemaining() function in net::UploadFileElementReader
185 if (BytesRemaining() == 0) in Read()
198 BytesRemaining(), in Read()
282 uint64 UploadFileElementReaderSync::BytesRemaining() const { in BytesRemaining() function in net::UploadFileElementReaderSync
289 const int result = ReadInternal(buf, buf_length, BytesRemaining(), in Read()
Dupload_data_stream.cc183 if (reader->BytesRemaining() == 0) { in ReadInternal()
188 if (buf->BytesRemaining() == 0) in ReadInternal()
193 buf->BytesRemaining(), in ReadInternal()
213 std::min(static_cast<uint64>(buf->BytesRemaining()), in ReadInternal()
Dupload_bytes_element_reader.cc38 uint64 UploadBytesElementReader::BytesRemaining() const { in BytesRemaining() function in net::UploadBytesElementReader
52 std::min(BytesRemaining(), static_cast<uint64>(buf_length)); in Read()
Dupload_file_element_reader.h47 virtual uint64 BytesRemaining() const OVERRIDE;
123 virtual uint64 BytesRemaining() const OVERRIDE;
Dupload_element_reader.h43 virtual uint64 BytesRemaining() const = 0;
/external/chromium_org/content/browser/fileapi/
Dupload_file_system_file_element_reader_unittest.cc68 EXPECT_EQ(file_data_.size(), reader_->BytesRemaining()); in SetUp()
128 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
145 EXPECT_EQ(file_data_.size() - buf->size(), reader_->BytesRemaining()); in TEST_F()
153 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
166 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
179 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
187 EXPECT_EQ(file_data_.size(), reader_->BytesRemaining()); in TEST_F()
194 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
216 EXPECT_EQ(file_data_.size(), reader_->BytesRemaining()); in TEST_F()
225 EXPECT_EQ(file_data_.size() - buf2->size(), reader_->BytesRemaining()); in TEST_F()
[all …]
/external/chromium_org/jingle/glue/
Dfake_ssl_client_socket.cc204 write_buf_->BytesRemaining(), in DoSendClientHello()
226 DCHECK_LE(written, static_cast<size_t>(write_buf_->BytesRemaining())); in ProcessSendClientHelloDone()
228 if (written < static_cast<size_t>(write_buf_->BytesRemaining())) { in ProcessSendClientHelloDone()
239 read_buf_->BytesRemaining(), in DoVerifyServerHello()
270 DCHECK_LE(read, static_cast<size_t>(read_buf_->BytesRemaining())); in ProcessVerifyServerHelloDone()
276 read_buf_->BytesRemaining()]; in ProcessVerifyServerHelloDone()
280 if (read < static_cast<size_t>(read_buf_->BytesRemaining())) { in ProcessVerifyServerHelloDone()
/external/chromium_org/net/quic/crypto/
Dcrypto_framer.cc204 if (reader.BytesRemaining() < kQuicTagSize) { in Process()
212 if (reader.BytesRemaining() < kNumEntriesSize + sizeof(uint16)) { in Process()
226 if (reader.BytesRemaining() < in Process()
256 if (reader.BytesRemaining() < values_len_) { in Process()
/external/chromium_org/webkit/browser/blob/
Dblob_url_request_job.cc358 DCHECK_GE(read_buf_->BytesRemaining(), 0); in AdvanceBytesRead()
363 DCHECK_GE(read_buf_->BytesRemaining(), bytes_to_read); in ReadBytesItem()
375 DCHECK_GE(read_buf_->BytesRemaining(), bytes_to_read); in ReadFileItem()
406 if (!read_buf_->BytesRemaining()) { in DidReadFile()
436 int64 buf_remaining = read_buf_->BytesRemaining(); in ComputeBytesToRead()
449 while (remaining_bytes_ > 0 && read_buf_->BytesRemaining() > 0) { in ReadLoop()
/external/chromium_org/webkit/browser/fileapi/
Dupload_file_system_file_element_reader.cc68 uint64 UploadFileSystemFileElementReader::BytesRemaining() const { in BytesRemaining() function in fileapi::UploadFileSystemFileElementReader
80 std::min(BytesRemaining(), static_cast<uint64>(buf_length)); in Read()
/external/chromium_org/components/nacl/browser/
Dpnacl_translation_cache.cc191 DCHECK(io_buf_->BytesRemaining() == len); in WriteEntry()
283 WriteEntry(io_buf_->BytesConsumed(), io_buf_->BytesRemaining()); in DispatchNext()
301 if (io_buf_->BytesRemaining() > 0) { in DispatchNext()
303 ? ReadEntry(io_buf_->BytesConsumed(), io_buf_->BytesRemaining()) in DispatchNext()
304 : WriteEntry(io_buf_->BytesConsumed(), io_buf_->BytesRemaining()); in DispatchNext()
/external/chromium_org/device/bluetooth/
Dbluetooth_socket_win.cc98 bytes_written = send(fd_, buffer->data(), buffer->BytesRemaining(), 0); in Send()
101 } while (buffer->BytesRemaining() > 0 && bytes_written > 0); in Send()
Dbluetooth_socket_chromeos.cc134 HANDLE_EINTR(write(fd_, buffer->data(), buffer->BytesRemaining())); in Send()
137 } while (buffer->BytesRemaining() > 0 && bytes_written > 0); in Send()
Dbluetooth_profile_chromeos_unittest.cc195 EXPECT_EQ(0, write_buffer->BytesRemaining()); in TEST_F()
221 EXPECT_EQ(base_buffer->size(), write_buffer->BytesRemaining()); in TEST_F()
320 EXPECT_EQ(0, write_buffer->BytesRemaining()); in TEST_F()
346 EXPECT_EQ(base_buffer->size(), write_buffer->BytesRemaining()); in TEST_F()
/external/chromium/net/udp/
Dudp_socket_unittest.cc63 while (buffer->BytesRemaining()) { in SendToSocket()
64 int rv = socket->SendTo(buffer, buffer->BytesRemaining(), in SendToSocket()
98 while (buffer->BytesRemaining()) { in WriteSocket()
99 int rv = socket->Write(buffer, buffer->BytesRemaining(), &callback); in WriteSocket()
/external/chromium_org/net/dns/
Ddns_transaction.cc404 if (buffer_->BytesRemaining() > 0) { in DoSendLength()
408 buffer_->BytesRemaining(), in DoSendLength()
423 if (buffer_->BytesRemaining() > 0) { in DoSendQuery()
427 buffer_->BytesRemaining(), in DoSendQuery()
442 if (buffer_->BytesRemaining() > 0) { in DoReadLength()
446 buffer_->BytesRemaining(), in DoReadLength()
466 if (buffer_->BytesRemaining() > 0) { in DoReadResponse()
470 buffer_->BytesRemaining(), in DoReadResponse()
/external/chromium_org/net/socket/
Dssl_server_socket_unittest.cc126 int copied = std::min(buf->BytesRemaining(), read_buf_len); in PropogateData()
130 if (!buf->BytesRemaining()) in PropogateData()
435 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback()); in TEST_F()
446 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback()); in TEST_F()
459 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback()); in TEST_F()
473 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback()); in TEST_F()
/external/chromium/net/spdy/
Dspdy_proxy_client_socket.cc182 while (!read_buffer_.empty() && user_buffer_->BytesRemaining() > 0) { in PopulateUserReadBuffer()
184 const int bytes_to_copy = std::min(user_buffer_->BytesRemaining(), in PopulateUserReadBuffer()
185 data->BytesRemaining()); in PopulateUserReadBuffer()
188 if (data->BytesRemaining() == bytes_to_copy) { in PopulateUserReadBuffer()
/external/chromium/net/websockets/
Dwebsocket.cc184 DCHECK_GE(current_write_buf_->BytesRemaining(), 0); in OnSentData()
185 if (current_write_buf_->BytesRemaining() == 0) { in OnSentData()
242 DCHECK_GT(current_write_buf_->BytesRemaining(), 0); in SendPending()
245 std::min(current_write_buf_->BytesRemaining(), in SendPending()
/external/chromium_org/net/disk_cache/
Dmem_entry_impl.cc362 while (io_buf->BytesRemaining()) { in InternalReadSparseData()
380 io_buf->BytesRemaining())); in InternalReadSparseData()
383 io_buf->BytesRemaining(), CompletionCallback()); in InternalReadSparseData()
421 while (io_buf->BytesRemaining()) { in InternalWriteSparseData()
427 int write_len = std::min(static_cast<int>(io_buf->BytesRemaining()), in InternalWriteSparseData()
/external/chromium/net/disk_cache/
Dmem_entry_impl.cc351 while (io_buf->BytesRemaining()) { in InternalReadSparseData()
370 io_buf->BytesRemaining()))); in InternalReadSparseData()
373 io_buf->BytesRemaining(), NULL); in InternalReadSparseData()
411 while (io_buf->BytesRemaining()) { in InternalWriteSparseData()
417 int write_len = std::min(static_cast<int>(io_buf->BytesRemaining()), in InternalWriteSparseData()
/external/chromium_org/chrome/test/chromedriver/net/
Dwebsocket.cc144 if (!write_buffer_->BytesRemaining()) in Write()
164 if (!write_buffer_->BytesRemaining()) { in ContinueWritingIfNecessary()
174 write_buffer_->BytesRemaining(), in ContinueWritingIfNecessary()
/external/chromium_org/remoting/protocol/
Dbuffered_socket_writer.cc188 *size = current_buf_->BytesRemaining(); in GetNextPacket()
195 if (current_buf_->BytesRemaining() == 0) { in AdvanceBufferPosition()

123