From 4b5613a02369f412dd4ef6d482d310f7aafd5096 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Thu, 26 Jan 2017 07:37:40 +0100 Subject: [PATCH] Use correct type for buffer size to avoid compiler time errors --- tests/anbox/graphics/buffered_io_stream_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/anbox/graphics/buffered_io_stream_tests.cpp b/tests/anbox/graphics/buffered_io_stream_tests.cpp index 1a37986..4008586 100644 --- a/tests/anbox/graphics/buffered_io_stream_tests.cpp +++ b/tests/anbox/graphics/buffered_io_stream_tests.cpp @@ -51,7 +51,7 @@ TEST(BufferedIOStream, CommitBufferWritesOutToMessenger) { auto messenger = std::make_shared(); BufferedIOStream stream(messenger); - const auto buffer_size{1000}; + const size_t buffer_size{1000}; // We will write out the data we get in two junks of half the size // the original buffer has. EXPECT_CALL(*messenger, send_raw(_, buffer_size)) @@ -75,8 +75,8 @@ TEST(BufferedIOStream, WriterContinuesWhenSocketIsBusy) { auto messenger = std::make_shared(); BufferedIOStream stream(messenger); - const auto buffer_size{1000}; - const auto first_chunk_size{100}; + const size_t buffer_size{1000}; + const size_t first_chunk_size{100}; // The writer will check the error code of the send function // and will retry writing the next chunk when it doesn't get // EAGAIN anymore from the sender.