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_BASE_MOCK_OBJECTS_H_ | 5 #ifndef REMOTING_CODEC_MOCK_VIDEO_ENCODER_H_ |
6 #define REMOTING_BASE_BASE_MOCK_OBJECTS_H_ | 6 #define REMOTING_CODEC_MOCK_VIDEO_ENCODER_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/codec/video_encoder.h" |
10 #include "remoting/base/encoder.h" | |
11 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
12 | 11 |
13 namespace remoting { | 12 namespace remoting { |
14 | 13 |
15 class MockEncoder : public Encoder { | 14 class MockEncoder : public Encoder { |
Sergey Ulanov
2012/08/22 16:10:28
Screen_recorder_unittest is the only place where t
kxing
2012/08/22 17:08:05
Done.
| |
16 public: | 15 public: |
17 MockEncoder(); | 16 MockEncoder(); |
18 virtual ~MockEncoder(); | 17 virtual ~MockEncoder(); |
19 | 18 |
20 MOCK_METHOD3(Encode, void( | 19 MOCK_METHOD3(Encode, void( |
21 scoped_refptr<CaptureData> capture_data, | 20 scoped_refptr<CaptureData> capture_data, |
22 bool key_frame, | 21 bool key_frame, |
23 const DataAvailableCallback& data_available_callback)); | 22 const DataAvailableCallback& data_available_callback)); |
24 | 23 |
25 private: | 24 private: |
26 DISALLOW_COPY_AND_ASSIGN(MockEncoder); | 25 DISALLOW_COPY_AND_ASSIGN(MockEncoder); |
27 }; | 26 }; |
28 | 27 |
29 } // namespace remoting | 28 } // namespace remoting |
30 | 29 |
31 #endif // REMOTING_BASE_BASE_MOCK_OBJECTS_H_ | 30 #endif // REMOTING_CODEC_MOCK_VIDEO_ENCODER_H_ |
OLD | NEW |