Home
last modified time | relevance | path

Searched refs:input_overflow_buf_ (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/ipc/
Dipc_channel_reader.cc103 if (input_overflow_buf_.empty()) { in TranslateInputData()
107 if (!CheckMessageSize(input_overflow_buf_.size() + input_data_len)) in TranslateInputData()
109 input_overflow_buf_.append(input_data, input_data_len); in TranslateInputData()
110 p = input_overflow_buf_.data(); in TranslateInputData()
111 end = p + input_overflow_buf_.size(); in TranslateInputData()
143 if (p != input_overflow_buf_.data()) in TranslateInputData()
144 input_overflow_buf_.assign(p, end - p); in TranslateInputData()
146 if (!input_overflow_buf_.empty()) { in TranslateInputData()
151 if (next_message_buffer_size > input_overflow_buf_.capacity()) { in TranslateInputData()
152 input_overflow_buf_.reserve(next_message_buffer_size); in TranslateInputData()
[all …]
Dipc_channel_reader_unittest.cc84 EXPECT_LT(reader.input_overflow_buf_.capacity(), header.payload_size); in TEST()
90 EXPECT_GE(reader.input_overflow_buf_.capacity(), header.payload_size); in TEST()
98 size_t capacity_before = reader.input_overflow_buf_.capacity(); in TEST()
104 EXPECT_LE(reader.input_overflow_buf_.capacity(), capacity_before); in TEST()
110 EXPECT_LE(reader.input_overflow_buf_.capacity(), capacity_before); in TEST()
116 EXPECT_LE(reader.input_overflow_buf_.capacity(), capacity_before); in TEST()
141 EXPECT_LE(reader.input_overflow_buf_.capacity(), trimmed_buffer_size); in TEST()
149 EXPECT_EQ(reader.input_overflow_buf_.capacity(), trimmed_buffer_size); in TEST()
166 EXPECT_GE(reader.input_overflow_buf_.capacity(), message.size()); in TEST()
174 EXPECT_EQ(reader.input_overflow_buf_.capacity(), trimmed_buffer_size); in TEST()
[all …]
Dipc_channel_reader.h154 std::string input_overflow_buf_; in COMPONENT_EXPORT() local