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

Side by Side Diff: sync/test/engine/fake_traffic_recorder.h

Issue 12088080: [Sync] Add timestamp to TrafficRecorder records (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SYNC_TEST_ENGINE_FAKE_TRAFFIC_RECORDER_H_
6 #define SYNC_TEST_ENGINE_FAKE_TRAFFIC_RECORDER_H_
7
8 #include "sync/engine/traffic_recorder.h"
9 #include "base/time.h"
10
11 namespace syncer {
12
13 // Fake implementation of TrafficRecorder
14 class FakeTrafficRecorder : public TrafficRecorder {
rlarocque 2013/01/31 19:13:10 I'm not a big fan of this sort of inheritance. No
15 public:
16 FakeTrafficRecorder(unsigned int max_messages, unsigned int max_message_size);
17 virtual ~FakeTrafficRecorder();
18
19 virtual base::Time GetTime() OVERRIDE;
20 void SetTime(int64 time);
21 void SetTime(base::Time time);
22
23 private:
24 base::Time time_;
25 };
26
27 } // namespace syncer
28
29 #endif // SYNC_TEST_ENGINE_FAKE_TRAFFIC_RECORDER_H_
30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698