OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_PROTOCOL_FAKE_SESSION_H_ | 5 #ifndef REMOTING_PROTOCOL_FAKE_SESSION_H_ |
6 #define REMOTING_PROTOCOL_FAKE_SESSION_H_ | 6 #define REMOTING_PROTOCOL_FAKE_SESSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 FakeStreamChannelFactory& fake_channel_factory() { return channel_factory_; } | 34 FakeStreamChannelFactory& fake_channel_factory() { return channel_factory_; } |
35 | 35 |
36 // Session interface. | 36 // Session interface. |
37 void SetEventHandler(EventHandler* event_handler) override; | 37 void SetEventHandler(EventHandler* event_handler) override; |
38 ErrorCode error() override; | 38 ErrorCode error() override; |
39 const std::string& jid() override; | 39 const std::string& jid() override; |
40 const SessionConfig& config() override; | 40 const SessionConfig& config() override; |
41 StreamChannelFactory* GetTransportChannelFactory() override; | 41 StreamChannelFactory* GetTransportChannelFactory() override; |
42 StreamChannelFactory* GetMultiplexedChannelFactory() override; | 42 StreamChannelFactory* GetMultiplexedChannelFactory() override; |
| 43 StreamChannelFactory* GetQuicChannelFactory() override; |
43 void Close() override; | 44 void Close() override; |
44 | 45 |
45 public: | 46 public: |
46 EventHandler* event_handler_; | 47 EventHandler* event_handler_; |
47 scoped_ptr<SessionConfig> config_; | 48 scoped_ptr<SessionConfig> config_; |
48 | 49 |
49 FakeStreamChannelFactory channel_factory_; | 50 FakeStreamChannelFactory channel_factory_; |
50 | 51 |
51 std::string jid_; | 52 std::string jid_; |
52 | 53 |
53 ErrorCode error_; | 54 ErrorCode error_; |
54 bool closed_; | 55 bool closed_; |
55 | 56 |
56 DISALLOW_COPY_AND_ASSIGN(FakeSession); | 57 DISALLOW_COPY_AND_ASSIGN(FakeSession); |
57 }; | 58 }; |
58 | 59 |
59 } // namespace protocol | 60 } // namespace protocol |
60 } // namespace remoting | 61 } // namespace remoting |
61 | 62 |
62 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_ | 63 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_ |
OLD | NEW |