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

Unified Diff: remoting/protocol/protocol_mock_objects.h

Issue 9827006: Refactor VideoStub interface to accept ownership of video packets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « remoting/protocol/protobuf_video_writer.cc ('k') | remoting/protocol/rtp_video_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protocol_mock_objects.h
diff --git a/remoting/protocol/protocol_mock_objects.h b/remoting/protocol/protocol_mock_objects.h
index d7d6122093808ada019718c661dc3366d605b9d0..caa1aa22aea85bd8f681af3d6b1b80a0758d172c 100644
--- a/remoting/protocol/protocol_mock_objects.h
+++ b/remoting/protocol/protocol_mock_objects.h
@@ -9,6 +9,7 @@
#include "net/base/ip_endpoint.h"
#include "remoting/proto/internal.pb.h"
+#include "remoting/proto/video.pb.h"
#include "remoting/protocol/client_stub.h"
#include "remoting/protocol/clipboard_stub.h"
#include "remoting/protocol/connection_to_client.h"
@@ -120,8 +121,13 @@ class MockVideoStub : public VideoStub {
MockVideoStub();
virtual ~MockVideoStub();
- MOCK_METHOD2(ProcessVideoPacket, void(const VideoPacket* video_packet,
- const base::Closure& done));
+ MOCK_METHOD2(ProcessVideoPacketPtr, void(const VideoPacket* video_packet,
+ const base::Closure& done));
+ virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet,
+ const base::Closure& done) {
+ ProcessVideoPacketPtr(video_packet.get(), done);
+ }
+
MOCK_METHOD0(GetPendingPackets, int());
private:
« no previous file with comments | « remoting/protocol/protobuf_video_writer.cc ('k') | remoting/protocol/rtp_video_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698