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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: sync/test/engine/fake_traffic_recorder.h
diff --git a/sync/test/engine/fake_traffic_recorder.h b/sync/test/engine/fake_traffic_recorder.h
new file mode 100644
index 0000000000000000000000000000000000000000..bd962a8bf55ed8031a270b3d915ecbdc2005119b
--- /dev/null
+++ b/sync/test/engine/fake_traffic_recorder.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SYNC_TEST_ENGINE_FAKE_TRAFFIC_RECORDER_H_
+#define SYNC_TEST_ENGINE_FAKE_TRAFFIC_RECORDER_H_
+
+#include "sync/engine/traffic_recorder.h"
+#include "base/time.h"
+
+namespace syncer {
+
+// Fake implementation of TrafficRecorder
+class FakeTrafficRecorder : public TrafficRecorder {
rlarocque 2013/01/31 19:13:10 I'm not a big fan of this sort of inheritance. No
+ public:
+ FakeTrafficRecorder(unsigned int max_messages, unsigned int max_message_size);
+ virtual ~FakeTrafficRecorder();
+
+ virtual base::Time GetTime() OVERRIDE;
+ void SetTime(int64 time);
+ void SetTime(base::Time time);
+
+ private:
+ base::Time time_;
+};
+
+} // namespace syncer
+
+#endif // SYNC_TEST_ENGINE_FAKE_TRAFFIC_RECORDER_H_
+

Powered by Google App Engine
This is Rietveld 408576698