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

Side by Side Diff: remoting/protocol/fake_session.cc

Issue 2586403003: [Chromoting] Add SessionPlugin in JingleSession (Closed)
Patch Set: Resolve review comments Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | remoting/protocol/jingle_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
9 #include "remoting/protocol/fake_authenticator.h" 10 #include "remoting/protocol/fake_authenticator.h"
11 #include "remoting/protocol/session_plugin.h"
10 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 12 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
11 13
12 namespace remoting { 14 namespace remoting {
13 namespace protocol { 15 namespace protocol {
14 16
15 const char kTestJid[] = "host1@gmail.com/chromoting123"; 17 const char kTestJid[] = "host1@gmail.com/chromoting123";
16 const char kTestAuthKey[] = "test_auth_key"; 18 const char kTestAuthKey[] = "test_auth_key";
17 19
18 FakeSession::FakeSession() 20 FakeSession::FakeSession()
19 : config_(SessionConfig::ForTest()), jid_(kTestJid), weak_factory_(this) {} 21 : config_(SessionConfig::ForTest()), jid_(kTestJid), weak_factory_(this) {}
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 base::Passed(&transport_info)), 97 base::Passed(&transport_info)),
96 signaling_delay_); 98 signaling_delay_);
97 } 99 }
98 } 100 }
99 101
100 void FakeSession::ProcessTransportInfo( 102 void FakeSession::ProcessTransportInfo(
101 std::unique_ptr<buzz::XmlElement> transport_info) { 103 std::unique_ptr<buzz::XmlElement> transport_info) {
102 transport_->ProcessTransportInfo(transport_info.get()); 104 transport_->ProcessTransportInfo(transport_info.get());
103 } 105 }
104 106
107 // TODO(zijiehe): Supports SessionPlugin in FakeSession.
108 void FakeSession::AddPlugin(SessionPlugin* plugin) {
109 NOTIMPLEMENTED();
110 }
111
105 } // namespace protocol 112 } // namespace protocol
106 } // namespace remoting 113 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | remoting/protocol/jingle_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698