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

Unified Diff: blimp/net/test_common.cc

Issue 2236093002: Decouple Blimp transport output from BlimpConnections using MessagePort. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@statistics-singleton
Patch Set: Created 4 years, 4 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
« blimp/net/tcp_transport_unittest.cc ('K') | « blimp/net/test_common.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/test_common.cc
diff --git a/blimp/net/test_common.cc b/blimp/net/test_common.cc
index f6b355866840edf3c8af75878e83d41f031f2d6d..f72ed236b002ea7aa902abe657baa405bd63aee1 100644
--- a/blimp/net/test_common.cc
+++ b/blimp/net/test_common.cc
@@ -11,6 +11,7 @@
#include "blimp/common/proto/blimp_message.pb.h"
#include "blimp/net/blimp_connection.h"
#include "blimp/net/common.h"
+#include "blimp/net/message_port.h"
#include "net/base/io_buffer.h"
namespace blimp {
@@ -23,8 +24,8 @@ MockTransport::MockTransport() {}
MockTransport::~MockTransport() {}
-std::unique_ptr<BlimpConnection> MockTransport::TakeConnection() {
- return base::WrapUnique(TakeConnectionPtr());
+std::unique_ptr<MessagePort> MockTransport::TakeMessagePort() {
+ return base::WrapUnique(TakeMessagePortPtr());
}
const char* MockTransport::GetName() const {
« blimp/net/tcp_transport_unittest.cc ('K') | « blimp/net/test_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698