Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: remoting/protocol/message_reader_unittest.cc

Issue 580243003: Cleanup Fake* classes in remoting/protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sctp
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/message_reader_unittest.cc
diff --git a/remoting/protocol/message_reader_unittest.cc b/remoting/protocol/message_reader_unittest.cc
index 1ea24124d69a66e66ea13fe7a9264c7129f18185..6e8f5c6809820b328fa8bfa1cc3efccb8411f442 100644
--- a/remoting/protocol/message_reader_unittest.cc
+++ b/remoting/protocol/message_reader_unittest.cc
@@ -13,7 +13,7 @@
#include "base/synchronization/waitable_event.h"
#include "net/base/net_errors.h"
#include "net/socket/socket.h"
-#include "remoting/protocol/fake_session.h"
+#include "remoting/protocol/fake_stream_socket.h"
#include "remoting/protocol/message_reader.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -84,7 +84,7 @@ class MessageReaderTest : public testing::Test {
std::string data = std::string(4, ' ') + message;
rtc::SetBE32(const_cast<char*>(data.data()), message.size());
- socket_.AppendInputData(std::vector<char>(data.begin(), data.end()));
+ socket_.AppendInputData(data);
}
bool CompareResult(CompoundBuffer* buffer, const std::string& expected) {
@@ -101,7 +101,7 @@ class MessageReaderTest : public testing::Test {
base::MessageLoop message_loop_;
scoped_ptr<MessageReader> reader_;
- FakeSocket socket_;
+ FakeStreamSocket socket_;
MockMessageReceivedCallback callback_;
std::vector<CompoundBuffer*> messages_;
bool in_callback_;
« no previous file with comments | « remoting/protocol/fake_stream_socket.cc ('k') | remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698