Chromium Code Reviews

Unified Diff: remoting/base/mock_objects.h

Issue 2840036: Moving Encoder and Decoder to remoting/base (Closed)
Patch Set: fix DEPS Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « remoting/base/encoder_vp8_unittest.cc ('k') | remoting/client/mock_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « remoting/base/encoder_vp8_unittest.cc ('k') | remoting/client/mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine