OLD | NEW |
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 "remoting/proto/internal.pb.h" | 8 #include "remoting/proto/internal.pb.h" |
9 #include "remoting/protocol/client_stub.h" | 9 #include "remoting/protocol/client_stub.h" |
10 #include "remoting/protocol/connection_to_client.h" | 10 #include "remoting/protocol/connection_to_client.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 const std::string& name, const StreamChannelCallback& callback)); | 113 const std::string& name, const StreamChannelCallback& callback)); |
114 MOCK_METHOD2(CreateDatagramChannel, void( | 114 MOCK_METHOD2(CreateDatagramChannel, void( |
115 const std::string& name, const DatagramChannelCallback& callback)); | 115 const std::string& name, const DatagramChannelCallback& callback)); |
116 MOCK_METHOD0(control_channel, net::Socket*()); | 116 MOCK_METHOD0(control_channel, net::Socket*()); |
117 MOCK_METHOD0(event_channel, net::Socket*()); | 117 MOCK_METHOD0(event_channel, net::Socket*()); |
118 MOCK_METHOD0(video_channel, net::Socket*()); | 118 MOCK_METHOD0(video_channel, net::Socket*()); |
119 MOCK_METHOD0(video_rtp_channel, net::Socket*()); | 119 MOCK_METHOD0(video_rtp_channel, net::Socket*()); |
120 MOCK_METHOD0(video_rtcp_channel, net::Socket*()); | 120 MOCK_METHOD0(video_rtcp_channel, net::Socket*()); |
121 MOCK_METHOD0(jid, const std::string&()); | 121 MOCK_METHOD0(jid, const std::string&()); |
122 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*()); | 122 MOCK_METHOD0(candidate_config, const CandidateSessionConfig*()); |
123 MOCK_METHOD0(config, const SessionConfig*()); | 123 MOCK_METHOD0(config, const SessionConfig&()); |
124 MOCK_METHOD1(set_config, void(const SessionConfig* config)); | 124 MOCK_METHOD1(set_config, void(const SessionConfig& config)); |
125 MOCK_METHOD0(initiator_token, const std::string&()); | 125 MOCK_METHOD0(initiator_token, const std::string&()); |
126 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token)); | 126 MOCK_METHOD1(set_initiator_token, void(const std::string& initiator_token)); |
127 MOCK_METHOD0(receiver_token, const std::string&()); | 127 MOCK_METHOD0(receiver_token, const std::string&()); |
128 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token)); | 128 MOCK_METHOD1(set_receiver_token, void(const std::string& receiver_token)); |
129 MOCK_METHOD1(set_shared_secret, void(const std::string& secret)); | 129 MOCK_METHOD1(set_shared_secret, void(const std::string& secret)); |
130 MOCK_METHOD0(shared_secret, const std::string&()); | 130 MOCK_METHOD0(shared_secret, const std::string&()); |
131 MOCK_METHOD0(Close, void()); | 131 MOCK_METHOD0(Close, void()); |
132 | 132 |
133 private: | 133 private: |
134 DISALLOW_COPY_AND_ASSIGN(MockSession); | 134 DISALLOW_COPY_AND_ASSIGN(MockSession); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace protocol | 137 } // namespace protocol |
138 } // namespace remoting | 138 } // namespace remoting |
139 | 139 |
140 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 140 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |