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

Unified Diff: blimp/net/ssl_client_transport_unittest.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: wez feedback 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
« no previous file with comments | « blimp/net/message_port.cc ('k') | blimp/net/tcp_client_transport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/ssl_client_transport_unittest.cc
diff --git a/blimp/net/ssl_client_transport_unittest.cc b/blimp/net/ssl_client_transport_unittest.cc
index c4d3113295fff8e098da01117fc5ea14332fa4af..992847ec98a058bbc60fcd8aaa22a47104843e3e 100644
--- a/blimp/net/ssl_client_transport_unittest.cc
+++ b/blimp/net/ssl_client_transport_unittest.cc
@@ -6,6 +6,7 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "blimp/net/blimp_connection.h"
+#include "blimp/net/message_port.h"
#include "blimp/net/ssl_client_transport.h"
#include "net/base/address_list.h"
#include "net/base/ip_address.h"
@@ -81,7 +82,7 @@ TEST_F(SSLClientTransportTest, ConnectSyncOK) {
SetupSSLSyncSocketConnect(net::OK);
transport_->Connect(base::Bind(&SSLClientTransportTest::ConnectComplete,
base::Unretained(this)));
- EXPECT_NE(nullptr, transport_->TakeConnection().get());
+ EXPECT_NE(nullptr, transport_->TakeMessagePort().get());
base::RunLoop().RunUntilIdle();
}
}
@@ -96,7 +97,7 @@ TEST_F(SSLClientTransportTest, ConnectAsyncOK) {
transport_->Connect(base::Bind(&SSLClientTransportTest::ConnectComplete,
base::Unretained(this)));
base::RunLoop().RunUntilIdle();
- EXPECT_NE(nullptr, transport_->TakeConnection().get());
+ EXPECT_NE(nullptr, transport_->TakeMessagePort().get());
}
}
@@ -155,7 +156,7 @@ TEST_F(SSLClientTransportTest, ConnectAfterError) {
SetupSSLSyncSocketConnect(net::OK);
transport_->Connect(base::Bind(&SSLClientTransportTest::ConnectComplete,
base::Unretained(this)));
- EXPECT_NE(nullptr, transport_->TakeConnection().get());
+ EXPECT_NE(nullptr, transport_->TakeMessagePort().get());
base::RunLoop().RunUntilIdle();
}
« no previous file with comments | « blimp/net/message_port.cc ('k') | blimp/net/tcp_client_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698