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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 }; | 93 }; |
94 | 94 |
95 class MockInputStub : public InputStub { | 95 class MockInputStub : public InputStub { |
96 public: | 96 public: |
97 MockInputStub(); | 97 MockInputStub(); |
98 virtual ~MockInputStub(); | 98 virtual ~MockInputStub(); |
99 | 99 |
100 MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event)); | 100 MOCK_METHOD1(InjectKeyEvent, void(const KeyEvent& event)); |
101 MOCK_METHOD1(InjectTextEvent, void(const TextEvent& event)); | 101 MOCK_METHOD1(InjectTextEvent, void(const TextEvent& event)); |
102 MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event)); | 102 MOCK_METHOD1(InjectMouseEvent, void(const MouseEvent& event)); |
| 103 MOCK_METHOD1(InjectTouchEvent, void(const TouchEvent& event)); |
103 | 104 |
104 private: | 105 private: |
105 DISALLOW_COPY_AND_ASSIGN(MockInputStub); | 106 DISALLOW_COPY_AND_ASSIGN(MockInputStub); |
106 }; | 107 }; |
107 | 108 |
108 class MockHostStub : public HostStub { | 109 class MockHostStub : public HostStub { |
109 public: | 110 public: |
110 MockHostStub(); | 111 MockHostStub(); |
111 virtual ~MockHostStub(); | 112 virtual ~MockHostStub(); |
112 | 113 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // Runs tasks synchronously instead of posting them to |task_runner|. | 255 // Runs tasks synchronously instead of posting them to |task_runner|. |
255 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 256 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
256 const tracked_objects::Location& from_here, | 257 const tracked_objects::Location& from_here, |
257 const base::Closure& task) override; | 258 const base::Closure& task) override; |
258 }; | 259 }; |
259 | 260 |
260 } // namespace protocol | 261 } // namespace protocol |
261 } // namespace remoting | 262 } // namespace remoting |
262 | 263 |
263 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ | 264 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ |
OLD | NEW |