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

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

Issue 8573013: Add CancelChannelCreation() in protocol::Session interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 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/protocol/protobuf_video_writer.cc ('k') | remoting/protocol/rtp_video_reader.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PROTOCOL_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "remoting/proto/internal.pb.h" 10 #include "remoting/proto/internal.pb.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 MockSession(); 100 MockSession();
101 virtual ~MockSession(); 101 virtual ~MockSession();
102 102
103 MOCK_METHOD1(SetStateChangeCallback, 103 MOCK_METHOD1(SetStateChangeCallback,
104 void(const StateChangeCallback& callback)); 104 void(const StateChangeCallback& callback));
105 MOCK_METHOD0(error, Session::Error()); 105 MOCK_METHOD0(error, Session::Error());
106 MOCK_METHOD2(CreateStreamChannel, void( 106 MOCK_METHOD2(CreateStreamChannel, void(
107 const std::string& name, const StreamChannelCallback& callback)); 107 const std::string& name, const StreamChannelCallback& callback));
108 MOCK_METHOD2(CreateDatagramChannel, void( 108 MOCK_METHOD2(CreateDatagramChannel, void(
109 const std::string& name, const DatagramChannelCallback& callback)); 109 const std::string& name, const DatagramChannelCallback& callback));
110 MOCK_METHOD1(CancelChannelCreation, void(const std::string& name));
110 MOCK_METHOD0(control_channel, net::Socket*()); 111 MOCK_METHOD0(control_channel, net::Socket*());
111 MOCK_METHOD0(event_channel, net::Socket*()); 112 MOCK_METHOD0(event_channel, net::Socket*());
112 MOCK_METHOD0(video_channel, net::Socket*()); 113 MOCK_METHOD0(video_channel, net::Socket*());
113 MOCK_METHOD0(video_rtp_channel, net::Socket*()); 114 MOCK_METHOD0(video_rtp_channel, net::Socket*());
114 MOCK_METHOD0(video_rtcp_channel, net::Socket*()); 115 MOCK_METHOD0(video_rtcp_channel, net::Socket*());
115 MOCK_METHOD0(jid, const std::string&()); 116 MOCK_METHOD0(jid, const std::string&());
116 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*()); 117 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*());
117 MOCK_METHOD0(config, const SessionConfig&()); 118 MOCK_METHOD0(config, const SessionConfig&());
118 MOCK_METHOD1(set_config, void(const SessionConfig& config)); 119 MOCK_METHOD1(set_config, void(const SessionConfig& config));
119 MOCK_METHOD0(initiator_token, const std::string&()); 120 MOCK_METHOD0(initiator_token, const std::string&());
120 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token)); 121 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token));
121 MOCK_METHOD0(receiver_token, const std::string&()); 122 MOCK_METHOD0(receiver_token, const std::string&());
122 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token)); 123 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token));
123 MOCK_METHOD1(set_shared_secret, void(const std::string& secret)); 124 MOCK_METHOD1(set_shared_secret, void(const std::string& secret));
124 MOCK_METHOD0(shared_secret, const std::string&()); 125 MOCK_METHOD0(shared_secret, const std::string&());
125 MOCK_METHOD0(Close, void()); 126 MOCK_METHOD0(Close, void());
126 127
127 private: 128 private:
128 DISALLOW_COPY_AND_ASSIGN(MockSession); 129 DISALLOW_COPY_AND_ASSIGN(MockSession);
129 }; 130 };
130 131
131 } // namespace protocol 132 } // namespace protocol
132 } // namespace remoting 133 } // namespace remoting
133 134
134 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 135 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/protocol/protobuf_video_writer.cc ('k') | remoting/protocol/rtp_video_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698