OLD | NEW |
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_BASE_MOCK_OBJECTS_H_ | 5 #ifndef REMOTING_BASE_BASE_MOCK_OBJECTS_H_ |
6 #define REMOTING_BASE_MOCK_OBJECTS_H_ | 6 #define REMOTING_BASE_BASE_MOCK_OBJECTS_H_ |
7 | 7 |
8 #include "remoting/base/capture_data.h" | 8 #include "remoting/base/capture_data.h" |
9 #include "remoting/base/decoder.h" | 9 #include "remoting/base/decoder.h" |
10 #include "remoting/base/encoder.h" | 10 #include "remoting/base/encoder.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 | 12 |
13 namespace remoting { | 13 namespace remoting { |
14 | 14 |
15 class MockEncoder : public Encoder { | 15 class MockEncoder : public Encoder { |
16 public: | 16 public: |
17 MockEncoder() {} | 17 MockEncoder(); |
| 18 virtual ~MockEncoder(); |
18 | 19 |
19 MOCK_METHOD3(Encode, void( | 20 MOCK_METHOD3(Encode, void( |
20 scoped_refptr<CaptureData> capture_data, | 21 scoped_refptr<CaptureData> capture_data, |
21 bool key_frame, | 22 bool key_frame, |
22 DataAvailableCallback* data_available_callback)); | 23 DataAvailableCallback* data_available_callback)); |
23 | 24 |
24 private: | 25 private: |
25 DISALLOW_COPY_AND_ASSIGN(MockEncoder); | 26 DISALLOW_COPY_AND_ASSIGN(MockEncoder); |
26 }; | 27 }; |
27 | 28 |
28 } // namespace remoting | 29 } // namespace remoting |
29 | 30 |
30 #endif // REMOTING_BASE_MOCK_OBJECTS_H_ | 31 #endif // REMOTING_BASE_BASE_MOCK_OBJECTS_H_ |
OLD | NEW |