OLD | NEW |
---|---|
(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 | |
OLD | NEW |