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

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

Issue 4136010: Cleanups in the video encoding decoding code. Reenable VP8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed arm build 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_METHOD0(SendBeginUpdateStreamMessage, void()); 50 MOCK_METHOD1(SendVideoPacket, void(const VideoPacket& packet));
51 MOCK_METHOD1(SendUpdateStreamPacketMessage,
52 void(const ChromotingHostMessage& message));
53 MOCK_METHOD0(SendEndUpdateStreamMessage, void());
54 MOCK_METHOD0(GetPendingUpdateStreamMessages, int()); 51 MOCK_METHOD0(GetPendingUpdateStreamMessages, int());
55 MOCK_METHOD0(Disconnect, void()); 52 MOCK_METHOD0(Disconnect, void());
56 53
57 private: 54 private:
58 DISALLOW_COPY_AND_ASSIGN(MockClientConnection); 55 DISALLOW_COPY_AND_ASSIGN(MockClientConnection);
59 }; 56 };
60 57
61 class MockClientConnectionEventHandler : public ClientConnection::EventHandler { 58 class MockClientConnectionEventHandler : public ClientConnection::EventHandler {
62 public: 59 public:
63 MockClientConnectionEventHandler() {} 60 MockClientConnectionEventHandler() {}
64 61
65 MOCK_METHOD2(HandleMessage, 62 MOCK_METHOD2(HandleMessage,
66 void(ClientConnection* viewer, 63 void(ClientConnection* viewer,
67 ChromotingClientMessage* message)); 64 ChromotingClientMessage* message));
68 MOCK_METHOD1(OnConnectionOpened, void(ClientConnection* viewer)); 65 MOCK_METHOD1(OnConnectionOpened, void(ClientConnection* viewer));
69 MOCK_METHOD1(OnConnectionClosed, void(ClientConnection* viewer)); 66 MOCK_METHOD1(OnConnectionClosed, void(ClientConnection* viewer));
70 MOCK_METHOD1(OnConnectionFailed, void(ClientConnection* viewer)); 67 MOCK_METHOD1(OnConnectionFailed, void(ClientConnection* viewer));
71 68
72 private: 69 private:
73 DISALLOW_COPY_AND_ASSIGN(MockClientConnectionEventHandler); 70 DISALLOW_COPY_AND_ASSIGN(MockClientConnectionEventHandler);
74 }; 71 };
75 72
76 } // namespace remoting 73 } // namespace remoting
77 74
78 #endif // REMOTING_HOST_MOCK_OBJECTS_H_ 75 #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