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

Unified Diff: remoting/protocol/connection_tester.cc

Issue 2146213002: Add support for dynamic channels in WebrtcTransport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « remoting/protocol/connection_tester.h ('k') | remoting/protocol/connection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_tester.cc
diff --git a/remoting/protocol/connection_tester.cc b/remoting/protocol/connection_tester.cc
index 1089e3145843c015f86d827cc6330fe81277c1b7..214f6ea13a95b68091698581f3f146f4b32ed4ef 100644
--- a/remoting/protocol/connection_tester.cc
+++ b/remoting/protocol/connection_tester.cc
@@ -272,8 +272,7 @@ MessagePipeConnectionTester::MessagePipeConnectionTester(
MessagePipeConnectionTester::~MessagePipeConnectionTester() {}
void MessagePipeConnectionTester::RunAndCheckResults() {
- host_pipe_->StartReceiving(base::Bind(
- &MessagePipeConnectionTester::OnMessageReceived, base::Unretained(this)));
+ host_pipe_->Start(this);
for (int i = 0; i < message_count_; ++i) {
std::unique_ptr<VideoPacket> message(new VideoPacket());
@@ -301,5 +300,10 @@ void MessagePipeConnectionTester::OnMessageReceived(
}
}
+void MessagePipeConnectionTester::OnMessagePipeClosed() {
+ run_loop_.Quit();
+ FAIL();
+}
+
} // namespace protocol
} // namespace remoting
« no previous file with comments | « remoting/protocol/connection_tester.h ('k') | remoting/protocol/connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698