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

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

Issue 8662001: Remove AccessVerifier interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years 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/protocol/jingle_session_unittest.cc ('k') | remoting/protocol/session.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "remoting/proto/internal.pb.h" 10 #include "remoting/proto/internal.pb.h"
(...skipping 26 matching lines...) Expand all
37 }; 37 };
38 38
39 class MockConnectionToClientEventHandler : 39 class MockConnectionToClientEventHandler :
40 public ConnectionToClient::EventHandler { 40 public ConnectionToClient::EventHandler {
41 public: 41 public:
42 MockConnectionToClientEventHandler(); 42 MockConnectionToClientEventHandler();
43 virtual ~MockConnectionToClientEventHandler(); 43 virtual ~MockConnectionToClientEventHandler();
44 44
45 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection)); 45 MOCK_METHOD1(OnConnectionOpened, void(ConnectionToClient* connection));
46 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection)); 46 MOCK_METHOD1(OnConnectionClosed, void(ConnectionToClient* connection));
47 MOCK_METHOD1(OnConnectionFailed, void(ConnectionToClient* connection)); 47 MOCK_METHOD2(OnConnectionFailed, void(ConnectionToClient* connection,
48 Session::Error error));
48 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection, 49 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection,
49 int64 sequence_number)); 50 int64 sequence_number));
50 51
51 private: 52 private:
52 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); 53 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler);
53 }; 54 };
54 55
55 class MockInputStub : public InputStub { 56 class MockInputStub : public InputStub {
56 public: 57 public:
57 MockInputStub(); 58 MockInputStub();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 MOCK_METHOD0(Close, void()); 127 MOCK_METHOD0(Close, void());
127 128
128 private: 129 private:
129 DISALLOW_COPY_AND_ASSIGN(MockSession); 130 DISALLOW_COPY_AND_ASSIGN(MockSession);
130 }; 131 };
131 132
132 } // namespace protocol 133 } // namespace protocol
133 } // namespace remoting 134 } // namespace remoting
134 135
135 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 136 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_session_unittest.cc ('k') | remoting/protocol/session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698