aboutsummaryrefslogtreecommitdiff
path: root/brillo/streams/fake_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'brillo/streams/fake_stream.cc')
-rw-r--r--brillo/streams/fake_stream.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/brillo/streams/fake_stream.cc b/brillo/streams/fake_stream.cc
index 9d7a044..498b9d4 100644
--- a/brillo/streams/fake_stream.cc
+++ b/brillo/streams/fake_stream.cc
@@ -5,7 +5,6 @@
#include <brillo/streams/fake_stream.h>
#include <algorithm>
-#include <utility>
#include <base/bind.h>
#include <brillo/message_loops/message_loop.h>
@@ -186,7 +185,7 @@ bool FakeStream::IsReadBufferEmpty() const {
bool FakeStream::PopReadPacket() {
if (incoming_queue_.empty())
return false;
- InputDataPacket& packet = incoming_queue_.front();
+ const InputDataPacket& packet = incoming_queue_.front();
input_ptr_ = 0;
input_buffer_ = std::move(packet.data);
delay_input_until_ = clock_->Now() + packet.delay_before;
@@ -251,7 +250,7 @@ bool FakeStream::IsWriteBufferFull() const {
bool FakeStream::PopWritePacket() {
if (outgoing_queue_.empty())
return false;
- OutputDataPacket& packet = outgoing_queue_.front();
+ const OutputDataPacket& packet = outgoing_queue_.front();
expected_output_data_ = std::move(packet.data);
delay_output_until_ = clock_->Now() + packet.delay_before;
max_output_buffer_size_ = packet.expected_size;