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

Side by Side Diff: remoting/protocol/protocol_mock_objects.h

Issue 10879085: Cleanup RectangleUpdateDecoder and VideoStub (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 6 #define REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 MockVideoStub(); 132 MockVideoStub();
133 virtual ~MockVideoStub(); 133 virtual ~MockVideoStub();
134 134
135 MOCK_METHOD2(ProcessVideoPacketPtr, void(const VideoPacket* video_packet, 135 MOCK_METHOD2(ProcessVideoPacketPtr, void(const VideoPacket* video_packet,
136 const base::Closure& done)); 136 const base::Closure& done));
137 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet, 137 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> video_packet,
138 const base::Closure& done) { 138 const base::Closure& done) {
139 ProcessVideoPacketPtr(video_packet.get(), done); 139 ProcessVideoPacketPtr(video_packet.get(), done);
140 } 140 }
141 141
142 MOCK_METHOD0(GetPendingVideoPackets, int());
143
144 private: 142 private:
145 DISALLOW_COPY_AND_ASSIGN(MockVideoStub); 143 DISALLOW_COPY_AND_ASSIGN(MockVideoStub);
146 }; 144 };
147 145
148 class MockSession : public Session { 146 class MockSession : public Session {
149 public: 147 public:
150 MockSession(); 148 MockSession();
151 virtual ~MockSession(); 149 virtual ~MockSession();
152 150
153 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler)); 151 MOCK_METHOD1(SetEventHandler, void(Session::EventHandler* event_handler));
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 }; 193 };
196 194
197 private: 195 private:
198 DISALLOW_COPY_AND_ASSIGN(MockSessionManager); 196 DISALLOW_COPY_AND_ASSIGN(MockSessionManager);
199 }; 197 };
200 198
201 } // namespace protocol 199 } // namespace protocol
202 } // namespace remoting 200 } // namespace remoting
203 201
204 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 202 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698