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

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

Issue 836183002: Rename sequence_number to timestamp. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « remoting/protocol/message_decoder_unittest.cc ('k') | no next file » | 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) 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 MockConnectionToClientEventHandler(); 52 MockConnectionToClientEventHandler();
53 virtual ~MockConnectionToClientEventHandler(); 53 virtual ~MockConnectionToClientEventHandler();
54 54
55 MOCK_METHOD1(OnConnectionAuthenticating, 55 MOCK_METHOD1(OnConnectionAuthenticating,
56 void(ConnectionToClient* connection)); 56 void(ConnectionToClient* connection));
57 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection)); 57 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection));
58 MOCK_METHOD1(OnConnectionChannelsConnected, 58 MOCK_METHOD1(OnConnectionChannelsConnected,
59 void(ConnectionToClient* connection)); 59 void(ConnectionToClient* connection));
60 MOCK_METHOD2(OnConnectionClosed, void(ConnectionToClient* connection, 60 MOCK_METHOD2(OnConnectionClosed, void(ConnectionToClient* connection,
61 ErrorCode error)); 61 ErrorCode error));
62 MOCK_METHOD2(OnSequenceNumberUpdated, void(ConnectionToClient* connection, 62 MOCK_METHOD2(OnEventTimestamp,
63 int64 sequence_number)); 63 void(ConnectionToClient* connection, int64 timestamp));
64 MOCK_METHOD3(OnRouteChange, void(ConnectionToClient* connection, 64 MOCK_METHOD3(OnRouteChange, void(ConnectionToClient* connection,
65 const std::string& channel_name, 65 const std::string& channel_name,
66 const TransportRoute& route)); 66 const TransportRoute& route));
67 67
68 private: 68 private:
69 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); 69 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler);
70 }; 70 };
71 71
72 class MockClipboardStub : public ClipboardStub { 72 class MockClipboardStub : public ClipboardStub {
73 public: 73 public:
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // Runs tasks synchronously instead of posting them to |task_runner|. 254 // Runs tasks synchronously instead of posting them to |task_runner|.
255 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 255 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
256 const tracked_objects::Location& from_here, 256 const tracked_objects::Location& from_here,
257 const base::Closure& task) override; 257 const base::Closure& task) override;
258 }; 258 };
259 259
260 } // namespace protocol 260 } // namespace protocol
261 } // namespace remoting 261 } // namespace remoting
262 262
263 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 263 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/protocol/message_decoder_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698