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

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

Issue 1365663003: Add UMA histograms for more detailed latency tracking on the CRD host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed tests Created 5 years, 2 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/performance_tracker.cc ('k') | tools/metrics/histograms/histograms.xml » ('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) 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 MockConnectionToClientEventHandler(); 74 MockConnectionToClientEventHandler();
75 ~MockConnectionToClientEventHandler() override; 75 ~MockConnectionToClientEventHandler() override;
76 76
77 MOCK_METHOD1(OnConnectionAuthenticating, 77 MOCK_METHOD1(OnConnectionAuthenticating,
78 void(ConnectionToClient* connection)); 78 void(ConnectionToClient* connection));
79 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection)); 79 MOCK_METHOD1(OnConnectionAuthenticated, void(ConnectionToClient* connection));
80 MOCK_METHOD1(OnConnectionChannelsConnected, 80 MOCK_METHOD1(OnConnectionChannelsConnected,
81 void(ConnectionToClient* connection)); 81 void(ConnectionToClient* connection));
82 MOCK_METHOD2(OnConnectionClosed, 82 MOCK_METHOD2(OnConnectionClosed,
83 void(ConnectionToClient* connection, ErrorCode error)); 83 void(ConnectionToClient* connection, ErrorCode error));
84 MOCK_METHOD2(OnEventTimestamp, 84 MOCK_METHOD2(OnInputEventReceived,
85 void(ConnectionToClient* connection, int64 timestamp)); 85 void(ConnectionToClient* connection, int64_t timestamp));
86 MOCK_METHOD3(OnRouteChange, 86 MOCK_METHOD3(OnRouteChange,
87 void(ConnectionToClient* connection, 87 void(ConnectionToClient* connection,
88 const std::string& channel_name, 88 const std::string& channel_name,
89 const TransportRoute& route)); 89 const TransportRoute& route));
90 90
91 private: 91 private:
92 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler); 92 DISALLOW_COPY_AND_ASSIGN(MockConnectionToClientEventHandler);
93 }; 93 };
94 94
95 class MockClipboardStub : public ClipboardStub { 95 class MockClipboardStub : public ClipboardStub {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Runs tasks synchronously instead of posting them to |task_runner|. 277 // Runs tasks synchronously instead of posting them to |task_runner|.
278 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 278 void PostTask(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
279 const tracked_objects::Location& from_here, 279 const tracked_objects::Location& from_here,
280 const base::Closure& task) override; 280 const base::Closure& task) override;
281 }; 281 };
282 282
283 } // namespace protocol 283 } // namespace protocol
284 } // namespace remoting 284 } // namespace remoting
285 285
286 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_ 286 #endif // REMOTING_PROTOCOL_PROTOCOL_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/protocol/performance_tracker.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698