Use correct type for buffer size to avoid compiler time errors
This commit is contained in:
parent
fba0b8215d
commit
4b5613a023
1 changed files with 3 additions and 3 deletions
|
|
@ -51,7 +51,7 @@ TEST(BufferedIOStream, CommitBufferWritesOutToMessenger) {
|
||||||
auto messenger = std::make_shared<MockSocketMessenger>();
|
auto messenger = std::make_shared<MockSocketMessenger>();
|
||||||
BufferedIOStream stream(messenger);
|
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
|
// We will write out the data we get in two junks of half the size
|
||||||
// the original buffer has.
|
// the original buffer has.
|
||||||
EXPECT_CALL(*messenger, send_raw(_, buffer_size))
|
EXPECT_CALL(*messenger, send_raw(_, buffer_size))
|
||||||
|
|
@ -75,8 +75,8 @@ TEST(BufferedIOStream, WriterContinuesWhenSocketIsBusy) {
|
||||||
auto messenger = std::make_shared<MockSocketMessenger>();
|
auto messenger = std::make_shared<MockSocketMessenger>();
|
||||||
BufferedIOStream stream(messenger);
|
BufferedIOStream stream(messenger);
|
||||||
|
|
||||||
const auto buffer_size{1000};
|
const size_t buffer_size{1000};
|
||||||
const auto first_chunk_size{100};
|
const size_t first_chunk_size{100};
|
||||||
// The writer will check the error code of the send function
|
// The writer will check the error code of the send function
|
||||||
// and will retry writing the next chunk when it doesn't get
|
// and will retry writing the next chunk when it doesn't get
|
||||||
// EAGAIN anymore from the sender.
|
// EAGAIN anymore from the sender.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue