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

Side by Side Diff: remoting/host/mock_objects.h

Issue 4255001: Revert 64672 - Cleanups in the video encoding decoding code. Reenable VP8.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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
« no previous file with comments | « remoting/host/client_connection_unittest.cc ('k') | remoting/host/session_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_HOST_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_HOST_MOCK_OBJECTS_H_
6 #define REMOTING_HOST_MOCK_OBJECTS_H_ 6 #define REMOTING_HOST_MOCK_OBJECTS_H_
7 7
8 #include "remoting/host/capturer.h" 8 #include "remoting/host/capturer.h"
9 #include "remoting/host/client_connection.h" 9 #include "remoting/host/client_connection.h"
10 #include "remoting/host/event_executor.h" 10 #include "remoting/host/event_executor.h"
(...skipping 29 matching lines...) Expand all
40 private: 40 private:
41 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor); 41 DISALLOW_COPY_AND_ASSIGN(MockEventExecutor);
42 }; 42 };
43 43
44 class MockClientConnection : public ClientConnection { 44 class MockClientConnection : public ClientConnection {
45 public: 45 public:
46 MockClientConnection(){} 46 MockClientConnection(){}
47 47
48 MOCK_METHOD1(Init, void(ChromotingConnection* connection)); 48 MOCK_METHOD1(Init, void(ChromotingConnection* connection));
49 MOCK_METHOD2(SendInitClientMessage, void(int width, int height)); 49 MOCK_METHOD2(SendInitClientMessage, void(int width, int height));
50 MOCK_METHOD1(SendVideoPacket, void(const VideoPacket& packet)); 50 MOCK_METHOD0(SendBeginUpdateStreamMessage, void());
51 MOCK_METHOD1(SendUpdateStreamPacketMessage,
52 void(const ChromotingHostMessage& message));
53 MOCK_METHOD0(SendEndUpdateStreamMessage, void());
51 MOCK_METHOD0(GetPendingUpdateStreamMessages, int()); 54 MOCK_METHOD0(GetPendingUpdateStreamMessages, int());
52 MOCK_METHOD0(Disconnect, void()); 55 MOCK_METHOD0(Disconnect, void());
53 56
54 private: 57 private:
55 DISALLOW_COPY_AND_ASSIGN(MockClientConnection); 58 DISALLOW_COPY_AND_ASSIGN(MockClientConnection);
56 }; 59 };
57 60
58 class MockClientConnectionEventHandler : public ClientConnection::EventHandler { 61 class MockClientConnectionEventHandler : public ClientConnection::EventHandler {
59 public: 62 public:
60 MockClientConnectionEventHandler() {} 63 MockClientConnectionEventHandler() {}
61 64
62 MOCK_METHOD2(HandleMessage, 65 MOCK_METHOD2(HandleMessage,
63 void(ClientConnection* viewer, 66 void(ClientConnection* viewer,
64 ChromotingClientMessage* message)); 67 ChromotingClientMessage* message));
65 MOCK_METHOD1(OnConnectionOpened, void(ClientConnection* viewer)); 68 MOCK_METHOD1(OnConnectionOpened, void(ClientConnection* viewer));
66 MOCK_METHOD1(OnConnectionClosed, void(ClientConnection* viewer)); 69 MOCK_METHOD1(OnConnectionClosed, void(ClientConnection* viewer));
67 MOCK_METHOD1(OnConnectionFailed, void(ClientConnection* viewer)); 70 MOCK_METHOD1(OnConnectionFailed, void(ClientConnection* viewer));
68 71
69 private: 72 private:
70 DISALLOW_COPY_AND_ASSIGN(MockClientConnectionEventHandler); 73 DISALLOW_COPY_AND_ASSIGN(MockClientConnectionEventHandler);
71 }; 74 };
72 75
73 } // namespace remoting 76 } // namespace remoting
74 77
75 #endif // REMOTING_HOST_MOCK_OBJECTS_H_ 78 #endif // REMOTING_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/client_connection_unittest.cc ('k') | remoting/host/session_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698