/external/chromium_org/net/base/ |
D | upload_file_element_reader_unittest.cc | 45 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 …]
|
D | upload_bytes_element_reader_unittest.cc | 24 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()
|
D | upload_file_element_reader.cc | 176 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()
|
D | upload_data_stream.cc | 183 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()
|
D | upload_bytes_element_reader.cc | 38 uint64 UploadBytesElementReader::BytesRemaining() const { in BytesRemaining() function in net::UploadBytesElementReader 52 std::min(BytesRemaining(), static_cast<uint64>(buf_length)); in Read()
|
D | upload_file_element_reader.h | 47 virtual uint64 BytesRemaining() const OVERRIDE; 123 virtual uint64 BytesRemaining() const OVERRIDE;
|
D | upload_element_reader.h | 43 virtual uint64 BytesRemaining() const = 0;
|
/external/chromium_org/content/browser/fileapi/ |
D | upload_file_system_file_element_reader_unittest.cc | 68 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/ |
D | fake_ssl_client_socket.cc | 204 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/ |
D | crypto_framer.cc | 204 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/ |
D | blob_url_request_job.cc | 358 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/ |
D | upload_file_system_file_element_reader.cc | 68 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/ |
D | pnacl_translation_cache.cc | 191 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/ |
D | bluetooth_socket_win.cc | 98 bytes_written = send(fd_, buffer->data(), buffer->BytesRemaining(), 0); in Send() 101 } while (buffer->BytesRemaining() > 0 && bytes_written > 0); in Send()
|
D | bluetooth_socket_chromeos.cc | 134 HANDLE_EINTR(write(fd_, buffer->data(), buffer->BytesRemaining())); in Send() 137 } while (buffer->BytesRemaining() > 0 && bytes_written > 0); in Send()
|
D | bluetooth_profile_chromeos_unittest.cc | 195 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/ |
D | udp_socket_unittest.cc | 63 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/ |
D | dns_transaction.cc | 404 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/ |
D | ssl_server_socket_unittest.cc | 126 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/ |
D | spdy_proxy_client_socket.cc | 182 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/ |
D | websocket.cc | 184 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/ |
D | mem_entry_impl.cc | 362 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/ |
D | mem_entry_impl.cc | 351 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/ |
D | websocket.cc | 144 if (!write_buffer_->BytesRemaining()) in Write() 164 if (!write_buffer_->BytesRemaining()) { in ContinueWritingIfNecessary() 174 write_buffer_->BytesRemaining(), in ContinueWritingIfNecessary()
|
/external/chromium_org/remoting/protocol/ |
D | buffered_socket_writer.cc | 188 *size = current_buf_->BytesRemaining(); in GetNextPacket() 195 if (current_buf_->BytesRemaining() == 0) { in AdvanceBufferPosition()
|