| Index: remoting/base/mock_objects.h
|
| diff --git a/remoting/base/mock_objects.h b/remoting/base/mock_objects.h
|
| index a61830ee4dcde32ca1376cd84c23e80f6ecb0872..7565f220db1360c9197b4d142fd7b595da775568 100644
|
| --- a/remoting/base/mock_objects.h
|
| +++ b/remoting/base/mock_objects.h
|
| @@ -5,6 +5,9 @@
|
| #ifndef REMOTING_BASE_MOCK_OBJECTS_H_
|
| #define REMOTING_BASE_MOCK_OBJECTS_H_
|
|
|
| +#include "remoting/base/capture_data.h"
|
| +#include "remoting/base/decoder.h"
|
| +#include "remoting/base/encoder.h"
|
| #include "remoting/base/protocol_decoder.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| @@ -25,6 +28,19 @@ class MockProtocolDecoder : public ProtocolDecoder {
|
| DISALLOW_COPY_AND_ASSIGN(MockProtocolDecoder);
|
| };
|
|
|
| +class MockEncoder : public Encoder {
|
| + public:
|
| + MockEncoder() {}
|
| +
|
| + MOCK_METHOD3(Encode, void(
|
| + scoped_refptr<CaptureData> capture_data,
|
| + bool key_frame,
|
| + DataAvailableCallback* data_available_callback));
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(MockEncoder);
|
| +};
|
| +
|
| } // namespace remoting
|
|
|
| #endif // REMOTING_BASE_MOCK_OBJECTS_H_
|
|
|