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

Unified Diff: remoting/protocol/fake_session.h

Issue 1413813006: Revert of Add TransportSession interface to prepare for WebRTC-based transport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/datagram_channel_factory.h ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_session.h
diff --git a/remoting/protocol/fake_session.h b/remoting/protocol/fake_session.h
index 3ca7fc395e854505e5a54638b0acdad10ef712ee..f6120299757e337d8fa3d645ca6ed0df3c1c417f 100644
--- a/remoting/protocol/fake_session.h
+++ b/remoting/protocol/fake_session.h
@@ -12,29 +12,11 @@
#include "base/memory/scoped_ptr.h"
#include "remoting/protocol/fake_stream_socket.h"
#include "remoting/protocol/session.h"
-#include "remoting/protocol/transport.h"
namespace remoting {
namespace protocol {
extern const char kTestJid[];
-
-class FakeTransportSession : public TransportSession {
- public:
- FakeTransportSession();
- ~FakeTransportSession() override;
-
- // TransportSession interface.
- void Start(EventHandler* event_handler,
- Authenticator* authenticator) override;
- bool ProcessTransportInfo(buzz::XmlElement* transport_info) override;
- DatagramChannelFactory* GetDatagramChannelFactory() override;
- FakeStreamChannelFactory* GetStreamChannelFactory() override;
- FakeStreamChannelFactory* GetMultiplexedChannelFactory() override;
-
- private:
- FakeStreamChannelFactory channel_factory_;
-};
// FakeSession is a dummy protocol::Session that uses FakeStreamSocket for all
// channels.
@@ -49,22 +31,25 @@
bool is_closed() const { return closed_; }
+ FakeStreamChannelFactory& fake_channel_factory() { return channel_factory_; }
+
// Session interface.
void SetEventHandler(EventHandler* event_handler) override;
ErrorCode error() override;
const std::string& jid() override;
const SessionConfig& config() override;
- FakeTransportSession* GetTransportSession() override;
- FakeStreamChannelFactory* GetQuicChannelFactory() override;
+ StreamChannelFactory* GetTransportChannelFactory() override;
+ StreamChannelFactory* GetMultiplexedChannelFactory() override;
+ StreamChannelFactory* GetQuicChannelFactory() override;
void Close() override;
public:
EventHandler* event_handler_;
scoped_ptr<SessionConfig> config_;
+ FakeStreamChannelFactory channel_factory_;
+
std::string jid_;
-
- FakeTransportSession transport_session_;
ErrorCode error_;
bool closed_;
« no previous file with comments | « remoting/protocol/datagram_channel_factory.h ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698