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/logging.h" | 8 #include "base/logging.h" |
9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "remoting/protocol/fake_authenticator.h" | 10 #include "remoting/protocol/fake_authenticator.h" |
11 #include "remoting/protocol/session_plugin.h" | 11 #include "remoting/protocol/session_plugin.h" |
12 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 12 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
13 | 13 |
14 namespace remoting { | 14 namespace remoting { |
15 namespace protocol { | 15 namespace protocol { |
16 | 16 |
17 const char kTestJid[] = "host1@gmail.com/chromoting123"; | 17 const char kTestJid[] = "host1@gmail.com/chromoting123"; |
18 const char kTestAuthKey[] = "test_auth_key"; | 18 const char kTestAuthKey[] = "test_auth_key"; |
19 | 19 |
20 FakeSession::FakeSession() | 20 FakeSession::FakeSession() |
21 : config_(SessionConfig::ForTest()), jid_(kTestJid), weak_factory_(this) {} | 21 : config_(SessionConfig::ForTest()), jid_(kTestJid), weak_factory_(this) {} |
22 FakeSession::~FakeSession() {} | 22 FakeSession::~FakeSession() {} |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 transport_->ProcessTransportInfo(transport_info.get()); | 104 transport_->ProcessTransportInfo(transport_info.get()); |
105 } | 105 } |
106 | 106 |
107 // TODO(zijiehe): Supports SessionPlugin in FakeSession. | 107 // TODO(zijiehe): Supports SessionPlugin in FakeSession. |
108 void FakeSession::AddPlugin(SessionPlugin* plugin) { | 108 void FakeSession::AddPlugin(SessionPlugin* plugin) { |
109 NOTIMPLEMENTED(); | 109 NOTIMPLEMENTED(); |
110 } | 110 } |
111 | 111 |
112 } // namespace protocol | 112 } // namespace protocol |
113 } // namespace remoting | 113 } // namespace remoting |
OLD | NEW |