Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Unified Diff: remoting/host/host_mock_objects.h

Issue 1150163002: Update VideoFramePump to pass un-changed frames to encoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add basic tests for unchanged frames Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/host/host_mock_objects.h
diff --git a/remoting/host/host_mock_objects.h b/remoting/host/host_mock_objects.h
index 52d0170d486acbe0033c9cd9a3250117df64568b..c6bba83b3344a23d6a6726664eecebfa68d7768b 100644
--- a/remoting/host/host_mock_objects.h
+++ b/remoting/host/host_mock_objects.h
@@ -8,6 +8,7 @@
#include <string>
#include "net/base/ip_endpoint.h"
+#include "remoting/codec/video_encoder.h"
#include "remoting/host/chromoting_host_context.h"
#include "remoting/host/client_session.h"
#include "remoting/host/client_session_control.h"
@@ -164,6 +165,18 @@ class MockMouseCursorMonitor : public webrtc::MouseCursorMonitor {
DISALLOW_COPY_AND_ASSIGN(MockMouseCursorMonitor);
};
+class MockVideoEncoder : public VideoEncoder {
+ public:
+ MockVideoEncoder();
+ ~MockVideoEncoder() override;
+
+ MOCK_METHOD1(SetLosslessEncode, void(bool));
+ MOCK_METHOD1(SetLosslessColor, void(bool));
+ MOCK_METHOD1(EncodePtr, VideoPacket*(const webrtc::DesktopFrame&));
+
+ scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) override;
+};
+
} // namespace remoting
#endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_

Powered by Google App Engine
This is Rietveld 408576698