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 #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 <cstdint> | 8 #include <cstdint> |
9 #include <map> | 9 #include <map> |
10 #include <memory> | 10 #include <memory> |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "remoting/protocol/input_stub.h" | 27 #include "remoting/protocol/input_stub.h" |
28 #include "remoting/protocol/pairing_registry.h" | 28 #include "remoting/protocol/pairing_registry.h" |
29 #include "remoting/protocol/session.h" | 29 #include "remoting/protocol/session.h" |
30 #include "remoting/protocol/session_manager.h" | 30 #include "remoting/protocol/session_manager.h" |
31 #include "remoting/protocol/transport.h" | 31 #include "remoting/protocol/transport.h" |
32 #include "remoting/protocol/video_stub.h" | 32 #include "remoting/protocol/video_stub.h" |
33 #include "testing/gmock/include/gmock/gmock.h" | 33 #include "testing/gmock/include/gmock/gmock.h" |
34 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 34 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
35 | 35 |
36 namespace remoting { | 36 namespace remoting { |
| 37 |
| 38 class VideoEncoder; |
| 39 |
37 namespace protocol { | 40 namespace protocol { |
38 | 41 |
39 class MockAuthenticator : public Authenticator { | 42 class MockAuthenticator : public Authenticator { |
40 public: | 43 public: |
41 MockAuthenticator(); | 44 MockAuthenticator(); |
42 ~MockAuthenticator() override; | 45 ~MockAuthenticator() override; |
43 | 46 |
44 MOCK_CONST_METHOD0(state, Authenticator::State()); | 47 MOCK_CONST_METHOD0(state, Authenticator::State()); |
45 MOCK_CONST_METHOD0(started, bool()); | 48 MOCK_CONST_METHOD0(started, bool()); |
46 MOCK_CONST_METHOD0(rejection_reason, Authenticator::RejectionReason()); | 49 MOCK_CONST_METHOD0(rejection_reason, Authenticator::RejectionReason()); |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // Runs tasks synchronously instead of posting them to |task_runner|. | 265 // Runs tasks synchronously instead of posting them to |task_runner|. |
263 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 266 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
264 const tracked_objects::Location& from_here, | 267 const tracked_objects::Location& from_here, |
265 const base::Closure& task) override; | 268 const base::Closure& task) override; |
266 }; | 269 }; |
267 | 270 |
268 } // namespace protocol | 271 } // namespace protocol |
269 } // namespace remoting | 272 } // namespace remoting |
270 | 273 |
271 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 274 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |