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

Unified Diff: remoting/protocol/connection_tester.h

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/client_video_dispatcher_unittest.cc ('k') | remoting/protocol/connection_tester.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_tester.h
diff --git a/remoting/protocol/connection_tester.h b/remoting/protocol/connection_tester.h
index eda98b4e8ee0743ae8b0033fd8a99c5c14755d2d..fc63968367a519d7f35f86fbdd65cb988bf24a05 100644
--- a/remoting/protocol/connection_tester.h
+++ b/remoting/protocol/connection_tester.h
@@ -12,6 +12,7 @@
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
+#include "remoting/protocol/message_pipe.h"
namespace net {
class DrainableIOBuffer;
@@ -26,7 +27,6 @@ class VideoPacket;
namespace protocol {
-class MessagePipe;
class P2PDatagramSocket;
class P2PStreamSocket;
@@ -109,18 +109,20 @@ class DatagramConnectionTester {
int bad_packets_received_;
};
-class MessagePipeConnectionTester {
+class MessagePipeConnectionTester : public MessagePipe::EventHandler {
public:
MessagePipeConnectionTester(MessagePipe* client_pipe,
MessagePipe* host_pipe,
int message_size,
int message_count);
- ~MessagePipeConnectionTester();
+ ~MessagePipeConnectionTester() override;
void RunAndCheckResults();
protected:
- void OnMessageReceived(std::unique_ptr<CompoundBuffer> message);
+ // MessagePipe::EventHandler interface.
+ void OnMessageReceived(std::unique_ptr<CompoundBuffer> message) override;
+ void OnMessagePipeClosed() override;
private:
base::RunLoop run_loop_;
« no previous file with comments | « remoting/protocol/client_video_dispatcher_unittest.cc ('k') | remoting/protocol/connection_tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698