Home
last modified time | relevance | path

Searched refs:bytes_remaining_ (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/net/base/
Dtest_data_stream.cc17 int bytes_to_copy = std::min(length, bytes_remaining_); in GetBytes()
28 int bytes_to_compare = std::min(length, bytes_remaining_); in VerifyBytes()
40 bytes_remaining_ = 0; in Reset()
47 if (bytes_remaining_ == 0) { in AdvanceIndex()
52 buffer_[bytes_remaining_++] = (val % 10) + '0'; in AdvanceIndex()
54 buffer_[bytes_remaining_++] = '.'; in AdvanceIndex()
60 bytes_remaining_ -= bytes; in Consume()
61 if (bytes_remaining_) in Consume()
Dupload_file_element_reader.cc37 bytes_remaining_(0), in UploadFileElementReader()
72 return bytes_remaining_; in BytesRemaining()
98 bytes_remaining_ = 0; in Reset()
182 bytes_remaining_ = GetContentLength(); in OnGetFileInfoCompleted()
193 DCHECK_GE(bytes_remaining_, static_cast<uint64>(result)); in OnReadCompleted()
194 bytes_remaining_ -= result; in OnReadCompleted()
Dtest_data_stream.h40 int bytes_remaining_; variable
Dupload_file_element_reader.h85 uint64 bytes_remaining_; variable
Dupload_data_stream_unittest.cc61 bytes_remaining_(content_length), in MockUploadElementReader()
71 virtual uint64 BytesRemaining() const OVERRIDE { return bytes_remaining_; } in BytesRemaining()
102 bytes_remaining_ = std::max(0, bytes_remaining_ - read_result_); in OnRead()
113 int bytes_remaining_; member in net::__anond6291d1e0111::MockUploadElementReader
/external/chromium_org/third_party/webrtc/modules/pacing/
Dpaced_sender.cc100 bytes_remaining_(0) {} in IntervalBudget()
108 if (bytes_remaining_ < 0) { in IncreaseBudget()
110 bytes_remaining_ = bytes_remaining_ + bytes; in IncreaseBudget()
113 bytes_remaining_ = bytes; in IncreaseBudget()
118 bytes_remaining_ = std::max(bytes_remaining_ - bytes, in UseBudget()
122 int bytes_remaining() const { return bytes_remaining_; } in bytes_remaining()
126 int bytes_remaining_; member in webrtc::paced_sender::IntervalBudget