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

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

Issue 4446005: Chromoting: Rename ChromotocolConfig -> SessionConfig (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Rename candidate_config vars Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/protocol/fake_session.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <vector> 8 #include <vector>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "net/socket/socket.h" 11 #include "net/socket/socket.h"
12 #include "remoting/protocol/session.h" 12 #include "remoting/protocol/session.h"
13 13
14 namespace remoting { 14 namespace remoting {
15
16 namespace protocol { 15 namespace protocol {
17 16
18 extern const char kTestJid[]; 17 extern const char kTestJid[];
19 18
20 // FakeSocket implement net::Socket interface for FakeConnection. All data 19 // FakeSocket implement net::Socket interface for FakeConnection. All data
21 // written to FakeSocket is stored in a buffer returned by written_data(). 20 // written to FakeSocket is stored in a buffer returned by written_data().
22 // Read() reads data from another buffer that can be set with AppendInputData(). 21 // Read() reads data from another buffer that can be set with AppendInputData().
23 // Pending reads are supported, so if there is a pending read AppendInputData() 22 // Pending reads are supported, so if there is a pending read AppendInputData()
24 // calls the read callback. 23 // calls the read callback.
25 class FakeSocket : public net::Socket { 24 class FakeSocket : public net::Socket {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual FakeSocket* control_channel(); 71 virtual FakeSocket* control_channel();
73 virtual FakeSocket* event_channel(); 72 virtual FakeSocket* event_channel();
74 virtual FakeSocket* video_channel(); 73 virtual FakeSocket* video_channel();
75 74
76 virtual FakeSocket* video_rtp_channel(); 75 virtual FakeSocket* video_rtp_channel();
77 virtual FakeSocket* video_rtcp_channel(); 76 virtual FakeSocket* video_rtcp_channel();
78 77
79 virtual const std::string& jid(); 78 virtual const std::string& jid();
80 79
81 virtual MessageLoop* message_loop(); 80 virtual MessageLoop* message_loop();
82 virtual const CandidateChromotocolConfig* candidate_config(); 81 virtual const CandidateSessionConfig* candidate_config();
83 virtual const ChromotocolConfig* config(); 82 virtual const SessionConfig* config();
84 virtual void set_config(const ChromotocolConfig* config); 83 virtual void set_config(const SessionConfig* config);
85 84
86 virtual void Close(Task* closed_task); 85 virtual void Close(Task* closed_task);
87 86
88 public: 87 public:
89 scoped_ptr<StateChangeCallback> callback_; 88 scoped_ptr<StateChangeCallback> callback_;
90 scoped_ptr<const CandidateChromotocolConfig> candidate_config_; 89 scoped_ptr<const CandidateSessionConfig> candidate_config_;
91 scoped_ptr<const ChromotocolConfig> config_; 90 scoped_ptr<const SessionConfig> config_;
92 MessageLoop* message_loop_; 91 MessageLoop* message_loop_;
93 FakeSocket control_channel_; 92 FakeSocket control_channel_;
94 FakeSocket event_channel_; 93 FakeSocket event_channel_;
95 FakeSocket video_channel_; 94 FakeSocket video_channel_;
96 FakeSocket video_rtp_channel_; 95 FakeSocket video_rtp_channel_;
97 FakeSocket video_rtcp_channel_; 96 FakeSocket video_rtcp_channel_;
98 std::string jid_; 97 std::string jid_;
99 bool closed_; 98 bool closed_;
100 }; 99 };
101 100
102 } // namespace protocol 101 } // namespace protocol
103
104 } // namespace remoting 102 } // namespace remoting
105 103
106 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_ 104 #endif // REMOTING_PROTOCOL_FAKE_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698