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 #include "remoting/protocol/fake_session.h" | 5 #include "remoting/protocol/fake_session.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 #include "remoting/protocol/fake_authenticator.h" | 9 #include "remoting/protocol/fake_authenticator.h" |
10 #include "remoting/protocol/session_plugin.h" | |
10 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 11 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
11 | 12 |
12 namespace remoting { | 13 namespace remoting { |
13 namespace protocol { | 14 namespace protocol { |
14 | 15 |
15 const char kTestJid[] = "host1@gmail.com/chromoting123"; | 16 const char kTestJid[] = "host1@gmail.com/chromoting123"; |
16 const char kTestAuthKey[] = "test_auth_key"; | 17 const char kTestAuthKey[] = "test_auth_key"; |
17 | 18 |
18 FakeSession::FakeSession() | 19 FakeSession::FakeSession() |
19 : config_(SessionConfig::ForTest()), jid_(kTestJid), weak_factory_(this) {} | 20 : config_(SessionConfig::ForTest()), jid_(kTestJid), weak_factory_(this) {} |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
95 base::Passed(&transport_info)), | 96 base::Passed(&transport_info)), |
96 signaling_delay_); | 97 signaling_delay_); |
97 } | 98 } |
98 } | 99 } |
99 | 100 |
100 void FakeSession::ProcessTransportInfo( | 101 void FakeSession::ProcessTransportInfo( |
101 std::unique_ptr<buzz::XmlElement> transport_info) { | 102 std::unique_ptr<buzz::XmlElement> transport_info) { |
102 transport_->ProcessTransportInfo(transport_info.get()); | 103 transport_->ProcessTransportInfo(transport_info.get()); |
103 } | 104 } |
104 | 105 |
106 // TODO(zijiehe): Supports SessionPlugin in FakeSession. | |
107 void FakeSession::Attach(std::unique_ptr<SessionPlugin> plugin) {} | |
Sergey Ulanov
2016/12/21 01:38:34
NOTIMPLEMENTED()
Hzj_jie
2016/12/22 00:27:10
Done.
| |
108 | |
105 } // namespace protocol | 109 } // namespace protocol |
106 } // namespace remoting | 110 } // namespace remoting |
OLD | NEW |