Home
last modified time | relevance | path

Searched refs:GetRemainingSize (Results 1 – 25 of 28) sorted by relevance

12

/external/cronet/net/spdy/
Dspdy_read_queue.cc31 DCHECK_GT(buffer->GetRemainingSize(), 0u); in Enqueue()
32 total_size_ += buffer->GetRemainingSize(); in Enqueue()
42 std::min(len - bytes_copied, buffer->GetRemainingSize()); in Dequeue()
45 if (bytes_to_copy == buffer->GetRemainingSize()) in Dequeue()
Dspdy_buffer_unittest.cc30 return std::string(buffer.GetRemainingData(), buffer.GetRemainingSize()); in BufferToString()
40 EXPECT_EQ(kDataSize, buffer.GetRemainingSize()); in TEST_F()
52 EXPECT_EQ(kDataSize, buffer.GetRemainingSize()); in TEST_F()
85 EXPECT_EQ(0u, buffer.GetRemainingSize()); in TEST_F()
112 size_t io_buffer_size = buffer.GetRemainingSize(); in TEST_F()
Dspdy_buffer.cc75 if (GetRemainingSize() > 0) in ~SpdyBuffer()
76 ConsumeHelper(GetRemainingSize(), DISCARD); in ~SpdyBuffer()
83 size_t SpdyBuffer::GetRemainingSize() const { in GetRemainingSize() function in net::SpdyBuffer
102 DCHECK_LE(consume_size, GetRemainingSize()); in ConsumeHelper()
Dspdy_buffer.h69 size_t GetRemainingSize() const;
Dspdy_stream.cc536 recv_bytes_ += buffer ? buffer->GetRemainingSize() : 0; in OnDataReceived()
572 size_t length = buffer->GetRemainingSize(); in OnDataReceived()
863 DCHECK_GE(data_buffer->GetRemainingSize(), spdy::kDataFrameMinimumSize); in QueueNextDataFrame()
865 data_buffer->GetRemainingSize() - spdy::kDataFrameMinimumSize; in QueueNextDataFrame()
Dspdy_stream_test_util.cc143 buffer->Consume(buffer->GetRemainingSize()); in OnDataReceived()
Dspdy_proxy_client_socket.cc481 buffer->GetRemainingSize(), in OnDataReceived()
Dspdy_session.cc2496 DCHECK_GT(in_flight_write_->GetRemainingSize(), 0u); in DoWrite()
2535 in_flight_write_frame_size_ = in_flight_write_->GetRemainingSize(); in DoWrite()
2545 write_io_buffer.get(), in_flight_write_->GetRemainingSize(), in DoWrite()
2554 DCHECK_GT(in_flight_write_->GetRemainingSize(), 0u); in DoWriteComplete()
2570 DCHECK_LE(static_cast<size_t>(result), in_flight_write_->GetRemainingSize()); in DoWriteComplete()
2578 if (in_flight_write_->GetRemainingSize() == 0) { in DoWriteComplete()
/external/libbrillo/brillo/streams/
Dinput_stream_set_test.cc96 TEST_F(InputStreamSetTest, GetRemainingSize) { in TEST_F() argument
97 EXPECT_CALL(*itf1_, GetRemainingSize()).WillOnce(Return(10)); in TEST_F()
98 EXPECT_CALL(*itf2_, GetRemainingSize()).WillOnce(Return(32)); in TEST_F()
99 EXPECT_EQ(42, stream_->GetRemainingSize()); in TEST_F()
Dinput_stream_set.cc51 initial_stream_size += stream->GetRemainingSize(); in Create()
97 uint64_t InputStreamSet::GetRemainingSize() const { in GetRemainingSize() function in brillo::InputStreamSet
100 size += stream->GetRemainingSize(); in GetRemainingSize()
Dmemory_stream_test.cc293 EXPECT_EQ(4, stream->GetRemainingSize()); in TEST()
300 EXPECT_EQ(0, stream->GetRemainingSize()); in TEST()
309 EXPECT_EQ(4, stream->GetRemainingSize()); in TEST()
316 EXPECT_EQ(0, stream->GetRemainingSize()); in TEST()
Dtls_stream.h46 uint64_t GetRemainingSize() const override { return 0; } in GetRemainingSize() function
Dmock_stream.h27 MOCK_METHOD(uint64_t, GetRemainingSize, (), (const, override));
Dinput_stream_set.h70 uint64_t GetRemainingSize() const override;
Dfake_stream_test.cc77 EXPECT_EQ(0, stream_->GetRemainingSize()); in TEST_F()
89 EXPECT_EQ(0, stream_->GetRemainingSize()); in TEST_F()
101 EXPECT_EQ(0, stream_->GetRemainingSize()); in TEST_F()
Dfile_stream.h109 uint64_t GetRemainingSize() const override;
Dfake_stream.h90 uint64_t GetRemainingSize() const override { return 0; } in GetRemainingSize() function
Dmemory_stream.h155 uint64_t GetRemainingSize() const override;
Dstream.h155 virtual uint64_t GetRemainingSize() const = 0;
Dmemory_stream.cc105 uint64_t MemoryStream::GetRemainingSize() const { in GetRemainingSize() function in brillo::MemoryStream
Dfile_stream_test.cc315 TEST_F(FileStreamTest, GetRemainingSize) { in TEST_F() argument
318 EXPECT_EQ(1000u, stream_->GetRemainingSize()); in TEST_F()
322 EXPECT_EQ(0u, stream_->GetRemainingSize()); in TEST_F()
Dfile_stream.cc381 uint64_t FileStream::GetRemainingSize() const { in GetRemainingSize() function in brillo::FileStream
/external/libbrillo/brillo/http/
Dhttp_form_data_fuzzer.cc119 while (form_stream->GetRemainingSize() > 0) { in LLVMFuzzerTestOneInput()
Dhttp_connection_curl.cc103 data_size = request_data_stream_->GetRemainingSize(); in PrepareRequest()
Dhttp_transport_fake.cc161 data_.reserve(stream->GetRemainingSize()); in SetData()

12