Home
last modified time | relevance | path

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

123

/external/chromium_org/net/base/
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_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_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.cc71 uint64 UploadFileElementReader::BytesRemaining() const { in BytesRemaining() function in net::UploadFileElementReader
81 std::min(BytesRemaining(), static_cast<uint64>(buf_length)); in Read()
Dupload_element_reader.h43 virtual uint64 BytesRemaining() const = 0;
Dupload_bytes_element_reader.h32 virtual uint64 BytesRemaining() const OVERRIDE;
/external/chromium_org/chrome/browser/media_galleries/fileapi/
Dreadahead_file_stream_reader.cc72 while (sink->BytesRemaining() > 0 && !buffers_.empty()) { in FinishReadFromCacheOrStoredError()
75 DCHECK(source_buffer->BytesRemaining() > 0); in FinishReadFromCacheOrStoredError()
77 int copy_len = std::min(source_buffer->BytesRemaining(), in FinishReadFromCacheOrStoredError()
78 sink->BytesRemaining()); in FinishReadFromCacheOrStoredError()
85 if (source_buffer->BytesRemaining() == 0) { in FinishReadFromCacheOrStoredError()
/external/chromium_org/content/browser/fileapi/
Dupload_file_system_file_element_reader_unittest.cc73 EXPECT_EQ(file_data_.size(), reader_->BytesRemaining()); in SetUp()
133 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
150 EXPECT_EQ(file_data_.size() - buf->size(), reader_->BytesRemaining()); in TEST_F()
158 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
171 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
184 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
192 EXPECT_EQ(file_data_.size(), reader_->BytesRemaining()); in TEST_F()
199 EXPECT_EQ(0U, reader_->BytesRemaining()); in TEST_F()
221 EXPECT_EQ(file_data_.size(), reader_->BytesRemaining()); in TEST_F()
230 EXPECT_EQ(file_data_.size() - buf2->size(), reader_->BytesRemaining()); in TEST_F()
[all …]
Dupload_file_system_file_element_reader.cc72 uint64 UploadFileSystemFileElementReader::BytesRemaining() const { in BytesRemaining() function in content::UploadFileSystemFileElementReader
84 std::min(BytesRemaining(), static_cast<uint64>(buf_length)); in Read()
/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/socket/
Dunix_domain_client_socket_posix_unittest.cc68 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback()); in ReadSynchronously()
69 EXPECT_GE(read_buf->BytesRemaining(), rv); in ReadSynchronously()
85 EXPECT_LE(0, read_buf->BytesRemaining()); in ReadSynchronously()
99 retry_count > 0 && write_buf->BytesRemaining() > 0; in WriteSynchronously()
102 write_buf->BytesRemaining(), in WriteSynchronously()
104 EXPECT_GE(write_buf->BytesRemaining(), rv); in WriteSynchronously()
112 EXPECT_LE(0, write_buf->BytesRemaining()); in WriteSynchronously()
Dssl_server_socket_unittest.cc132 int copied = std::min(buf->BytesRemaining(), read_buf_len); in PropogateData()
136 if (!buf->BytesRemaining()) in PropogateData()
436 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback()); in TEST_F()
447 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback()); in TEST_F()
460 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback()); in TEST_F()
474 read_buf.get(), read_buf->BytesRemaining(), read_callback.callback()); in TEST_F()
/external/chromium_org/net/quic/crypto/
Dcrypto_framer.cc202 if (reader.BytesRemaining() < kQuicTagSize) { in Process()
210 if (reader.BytesRemaining() < kNumEntriesSize + sizeof(uint16)) { in Process()
224 if (reader.BytesRemaining() < in Process()
254 if (reader.BytesRemaining() < values_len_) { in Process()
/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/storage/browser/blob/
Dblob_url_request_job.cc364 DCHECK_GE(read_buf_->BytesRemaining(), 0); in AdvanceBytesRead()
369 DCHECK_GE(read_buf_->BytesRemaining(), bytes_to_read); in ReadBytesItem()
381 DCHECK_GE(read_buf_->BytesRemaining(), bytes_to_read); in ReadFileItem()
412 if (!read_buf_->BytesRemaining()) { in DidReadFile()
442 int64 buf_remaining = read_buf_->BytesRemaining(); in ComputeBytesToRead()
455 while (remaining_bytes_ > 0 && read_buf_->BytesRemaining() > 0) { in ReadLoop()
/external/chromium_org/net/disk_cache/memory/
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_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/chrome/utility/media_galleries/
Dimage_metadata_extractor.cc46 if (buffer->BytesRemaining() > 0) { in FinishGetImageBytes()
49 buffer->BytesRemaining(), in FinishGetImageBytes()
72 source->Read(0, buffer->BytesRemaining(), in GetImageBytes()
400 buffer->BytesRemaining()); in FinishExtraction()
/external/chromium_org/net/dns/
Ddns_transaction.cc413 if (buffer_->BytesRemaining() > 0) { in DoSendLength()
417 buffer_->BytesRemaining(), in DoSendLength()
432 if (buffer_->BytesRemaining() > 0) { in DoSendQuery()
436 buffer_->BytesRemaining(), in DoSendQuery()
460 if (buffer_->BytesRemaining() > 0) { in DoReadLengthComplete()
491 if (buffer_->BytesRemaining() > 0) { in DoReadResponseComplete()
518 buffer_->BytesRemaining(), in ReadIntoBuffer()
/external/chromium_org/remoting/protocol/
Dbuffered_socket_writer.cc188 *size = current_buf_->BytesRemaining(); in GetNextPacket()
195 if (current_buf_->BytesRemaining() == 0) { in AdvanceBufferPosition()
/external/llvm/lib/Support/
Draw_ostream.cpp316 size_t BytesRemaining = Size - BytesToWrite; in write() local
317 if (BytesRemaining > size_t(OutBufEnd - OutBufCur)) { in write()
319 return write(Ptr + BytesToWrite, BytesRemaining); in write()
321 copy_to_buffer(Ptr + BytesToWrite, BytesRemaining); in write()
/external/chromium_org/components/cronet/android/
Dwrapped_channel_upload_element_reader.cc32 uint64 WrappedChannelElementReader::BytesRemaining() const { in BytesRemaining() function in cronet::WrappedChannelElementReader
Dwrapped_channel_upload_element_reader.h34 virtual uint64 BytesRemaining() const OVERRIDE;
/external/chromium_org/net/quic/
Dquic_data_reader.h109 size_t BytesRemaining() const;

123