Home
last modified time | relevance | path

Searched refs:IOBufferWithSize (Results 1 – 25 of 64) sorted by relevance

123

/external/cronet/net/filter/
Dbrotli_source_stream_unittest.cc78 scoped_refptr<IOBufferWithSize> out_buffer_;
93 out_buffer_ = base::MakeRefCounted<IOBufferWithSize>(kDefaultBufferSize); in TEST_F()
112 out_buffer_ = base::MakeRefCounted<IOBufferWithSize>(kDefaultBufferSize); in TEST_F()
130 out_buffer_ = base::MakeRefCounted<IOBufferWithSize>(kDefaultBufferSize); in TEST_F()
155 out_buffer_ = base::MakeRefCounted<IOBufferWithSize>(kDefaultBufferSize); in TEST_F()
175 out_buffer_ = base::MakeRefCounted<IOBufferWithSize>(kDefaultBufferSize); in TEST_F()
187 out_buffer_ = base::MakeRefCounted<IOBufferWithSize>(kDefaultBufferSize); in TEST_F()
208 out_buffer_ = base::MakeRefCounted<IOBufferWithSize>(kSmallBufferSize); in TEST_F()
211 base::MakeRefCounted<IOBufferWithSize>(source_data_len()); in TEST_F()
236 out_buffer_ = base::MakeRefCounted<IOBufferWithSize>(kSmallBufferSize); in TEST_F()
[all …]
Dfilter_source_stream_unittest.cc282 scoped_refptr<IOBufferWithSize> output_buffer = in TEST_P()
283 base::MakeRefCounted<IOBufferWithSize>(kDefaultBufferSize); in TEST_P()
307 scoped_refptr<IOBufferWithSize> output_buffer = in TEST_P()
308 base::MakeRefCounted<IOBufferWithSize>(kDefaultBufferSize); in TEST_P()
335 scoped_refptr<IOBufferWithSize> output_buffer = in TEST_P()
336 base::MakeRefCounted<IOBufferWithSize>(kDefaultBufferSize); in TEST_P()
361 scoped_refptr<IOBufferWithSize> output_buffer = in TEST_P()
362 base::MakeRefCounted<IOBufferWithSize>(kDefaultBufferSize); in TEST_P()
394 scoped_refptr<IOBufferWithSize> output_buffer = in TEST_P()
395 base::MakeRefCounted<IOBufferWithSize>(kDefaultBufferSize); in TEST_P()
[all …]
Dbrotli_source_stream_fuzzer.cc26 scoped_refptr<net::IOBufferWithSize> io_buffer = in LLVMFuzzerTestOneInput()
27 base::MakeRefCounted<net::IOBufferWithSize>(64); in LLVMFuzzerTestOneInput()
Dgzip_source_stream_fuzzer.cc39 scoped_refptr<net::IOBufferWithSize> io_buffer = in LLVMFuzzerTestOneInput()
40 base::MakeRefCounted<net::IOBufferWithSize>(64); in LLVMFuzzerTestOneInput()
/external/cronet/net/websockets/
Dwebsocket_inflater_test.cc20 std::string ToString(IOBufferWithSize* buffer) { in ToString()
34 scoped_refptr<IOBufferWithSize> actual1, actual2; in TEST()
60 scoped_refptr<IOBufferWithSize> buffer = inflater.GetOutput(1); in TEST()
72 scoped_refptr<IOBufferWithSize> actual; in TEST()
102 scoped_refptr<IOBufferWithSize> actual; in TEST()
116 scoped_refptr<IOBufferWithSize> actual1, actual2; in TEST()
140 scoped_refptr<IOBufferWithSize> actual1, actual2; in TEST()
161 scoped_refptr<IOBufferWithSize> actual1, actual2; in TEST()
173 scoped_refptr<IOBufferWithSize> actual1, actual2; in TEST()
188 scoped_refptr<IOBufferWithSize> compressed; in TEST()
[all …]
Dwebsocket_deflater_test.cc16 std::string ToString(IOBufferWithSize* buffer) { in ToString()
25 scoped_refptr<IOBufferWithSize> actual = in TEST()
34 scoped_refptr<IOBufferWithSize> actual1, actual2; in TEST()
51 scoped_refptr<IOBufferWithSize> actual1, actual2; in TEST()
70 scoped_refptr<IOBufferWithSize> actual; in TEST()
83 scoped_refptr<IOBufferWithSize> actual; in TEST()
108 scoped_refptr<IOBufferWithSize> actual; in TEST()
125 scoped_refptr<IOBufferWithSize> actual; in TEST()
Dwebsocket_inflater.h22 class IOBufferWithSize; variable
64 scoped_refptr<IOBufferWithSize> GetOutput(size_t size);
119 base::circular_deque<scoped_refptr<IOBufferWithSize>> buffers_;
Dwebsocket_inflater.cc18 class ShrinkableIOBufferWithSize : public IOBufferWithSize {
20 explicit ShrinkableIOBufferWithSize(size_t size) : IOBufferWithSize(size) {} in ShrinkableIOBufferWithSize()
88 scoped_refptr<IOBufferWithSize> WebSocketInflater::GetOutput(size_t size) { in GetOutput()
245 buffers_.push_back(base::MakeRefCounted<IOBufferWithSize>(capacity_)); in Push()
274 IOBufferWithSize* buffer = buffers_.back().get(); in PushToLastBuffer()
Dwebsocket_deflater.h21 class IOBufferWithSize; variable
60 scoped_refptr<IOBufferWithSize> GetOutput(size_t size);
Dwebsocket_deflate_stream.h113 std::vector<scoped_refptr<IOBufferWithSize>> deflater_outputs_;
115 std::vector<scoped_refptr<IOBufferWithSize>> inflater_outputs_;
Dwebsocket_deflater.cc121 scoped_refptr<IOBufferWithSize> WebSocketDeflater::GetOutput(size_t size) { in GetOutput()
126 auto result = base::MakeRefCounted<IOBufferWithSize>(length_to_copy); in GetOutput()
Dwebsocket_deflate_stream_fuzzer.cc93 auto buffer = base::MakeRefCounted<IOBufferWithSize>(payload.size()); in CreateFrame()
101 std::vector<scoped_refptr<IOBufferWithSize>> buffers_;
Dwebsocket_basic_stream.h28 class IOBufferWithSize; variable
204 scoped_refptr<IOBufferWithSize> read_buffer_;
/external/cronet/net/dns/
Ddns_query_unittest.cc30 std::tuple<char*, size_t> AsTuple(const IOBufferWithSize* buf) { in AsTuple()
37 auto packet = base::MakeRefCounted<IOBufferWithSize>(length); in ParseAndCreateDnsQueryFromRawPacket()
324 auto packet = base::MakeRefCounted<IOBufferWithSize>(data.size()); in TEST()
358 auto packet = base::MakeRefCounted<IOBufferWithSize>(data.size()); in TEST()
391 auto packet = base::MakeRefCounted<IOBufferWithSize>(data.size()); in TEST()
413 auto packet = base::MakeRefCounted<IOBufferWithSize>(sizeof(kData) - 1); in TEST()
438 auto packet = base::MakeRefCounted<IOBufferWithSize>(sizeof(kData) - 1); in TEST()
454 auto packet = base::MakeRefCounted<IOBufferWithSize>(sizeof(kData) - 1); in TEST()
476 auto packet = base::MakeRefCounted<IOBufferWithSize>(sizeof(kData) - 1); in TEST()
501 auto packet = base::MakeRefCounted<IOBufferWithSize>(sizeof(kData) - 1); in TEST()
[all …]
Ddns_query.h32 class IOBufferWithSize; variable
61 explicit DnsQuery(scoped_refptr<IOBufferWithSize> buffer);
97 IOBufferWithSize* io_buffer() const { return io_buffer_.get(); } in io_buffer()
116 scoped_refptr<IOBufferWithSize> io_buffer_;
Ddns_response_fuzzer.cc25 const net::IOBufferWithSize& packet, in ValidateParsedResponse()
85 base::MakeRefCounted<net::IOBufferWithSize>(response_string.size()); in LLVMFuzzerTestOneInput()
94 auto query_packet = base::MakeRefCounted<net::IOBufferWithSize>(query_size); in LLVMFuzzerTestOneInput()
Ddns_query.cc121 io_buffer_ = base::MakeRefCounted<IOBufferWithSize>(buffer_size); in DnsQuery()
158 DnsQuery::DnsQuery(scoped_refptr<IOBufferWithSize> buffer) in DnsQuery()
254 io_buffer_ = base::MakeRefCounted<IOBufferWithSize>(orig.io_buffer()->size()); in CopyFrom()
/external/cronet/net/base/
Dfile_stream_unittest.cc50 scoped_refptr<IOBufferWithSize> CreateTestDataBuffer() { in CreateTestDataBuffer()
51 scoped_refptr<IOBufferWithSize> buf = in CreateTestDataBuffer()
52 base::MakeRefCounted<IOBufferWithSize>(kTestDataSize); in CreateTestDataBuffer()
135 scoped_refptr<IOBufferWithSize> read_buffer = in TEST_F()
136 base::MakeRefCounted<IOBufferWithSize>(kTestDataSize); in TEST_F()
153 scoped_refptr<IOBufferWithSize> write_buffer = CreateTestDataBuffer(); in TEST_F()
180 scoped_refptr<IOBufferWithSize> buf = in TEST_F()
181 base::MakeRefCounted<IOBufferWithSize>(10); in TEST_F()
201 scoped_refptr<IOBufferWithSize> buf = in TEST_F()
202 base::MakeRefCounted<IOBufferWithSize>(4); in TEST_F()
[all …]
Dio_buffer.cc44 IOBufferWithSize::IOBufferWithSize(size_t size) : IOBuffer(size), size_(size) { in IOBufferWithSize() function in net::IOBufferWithSize
48 IOBufferWithSize::IOBufferWithSize(char* data, size_t size) in IOBufferWithSize() function in net::IOBufferWithSize
53 IOBufferWithSize::~IOBufferWithSize() = default;
Dio_buffer.h104 class NET_EXPORT IOBufferWithSize : public IOBuffer {
106 explicit IOBufferWithSize(size_t size);
114 IOBufferWithSize(char* data, size_t size);
115 ~IOBufferWithSize() override;
/external/cronet/net/socket/
Dudp_socket_perftest.cc46 : buffer_(base::MakeRefCounted<IOBufferWithSize>(kPacketSize)) {} in UDPSocketPerfTest()
66 scoped_refptr<IOBufferWithSize> buffer_;
85 scoped_refptr<IOBufferWithSize> io_buffer = in WritePacketsToSocket()
86 base::MakeRefCounted<IOBufferWithSize>(kPacketSize); in WritePacketsToSocket()
Dtcp_socket_unittest.cc61 class IOBufferWithDestructionCallback : public IOBufferWithSize {
64 : IOBufferWithSize(1024), in IOBufferWithDestructionCallback()
206 scoped_refptr<IOBufferWithSize> write_buffer = in TestSPWNotifications()
207 base::MakeRefCounted<IOBufferWithSize>(message.size()); in TestSPWNotifications()
215 scoped_refptr<IOBufferWithSize> read_buffer = in TestSPWNotifications()
216 base::MakeRefCounted<IOBufferWithSize>(message.size()); in TestSPWNotifications()
426 scoped_refptr<IOBufferWithSize> write_buffer = in TEST_F()
427 base::MakeRefCounted<IOBufferWithSize>(message.size() - bytes_written); in TEST_F()
443 scoped_refptr<IOBufferWithSize> read_buffer = in TEST_F()
444 base::MakeRefCounted<IOBufferWithSize>(message.size() - bytes_read); in TEST_F()
[all …]
Dtransport_client_socket_test_util.cc58 scoped_refptr<IOBufferWithSize> read_buffer = in ReadDataOfExpectedLength()
59 base::MakeRefCounted<IOBufferWithSize>(expected_bytes_read); in ReadDataOfExpectedLength()
Dtcp_server_socket_unittest.cc327 scoped_refptr<IOBufferWithSize> write_buffer = in TEST_F()
328 base::MakeRefCounted<IOBufferWithSize>(message.size() - bytes_written); in TEST_F()
343 scoped_refptr<IOBufferWithSize> read_buffer = in TEST_F()
344 base::MakeRefCounted<IOBufferWithSize>(message.size() - bytes_read); in TEST_F()
/external/cronet/net/http/
Dhttp_stream_parser_fuzzer.cc72 scoped_refptr<net::IOBufferWithSize> io_buffer = in LLVMFuzzerTestOneInput()
73 base::MakeRefCounted<net::IOBufferWithSize>(64); in LLVMFuzzerTestOneInput()

123