| Index: sync/test/engine/fake_traffic_recorder.cc
|
| diff --git a/sync/test/engine/fake_traffic_recorder.cc b/sync/test/engine/fake_traffic_recorder.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9170917aa0c0004080e594531f5356c39623d90e
|
| --- /dev/null
|
| +++ b/sync/test/engine/fake_traffic_recorder.cc
|
| @@ -0,0 +1,32 @@
|
| +// 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.
|
| +
|
| +#include "sync/test/engine/fake_traffic_recorder.h"
|
| +#include "sync/util/time.h"
|
| +
|
| +namespace syncer {
|
| +
|
| +FakeTrafficRecorder::FakeTrafficRecorder(
|
| + unsigned int max_messages,
|
| + unsigned int max_message_size)
|
| + : TrafficRecorder::TrafficRecorder(max_messages, max_message_size) {
|
| + SetTime(0);
|
| +}
|
| +
|
| +FakeTrafficRecorder::~FakeTrafficRecorder() {
|
| +}
|
| +
|
| +base::Time FakeTrafficRecorder::GetTime() {
|
| + return time_;
|
| +}
|
| +
|
| +void FakeTrafficRecorder::SetTime(int64 time) {
|
| + time_ = ProtoTimeToTime(time);
|
| +}
|
| +
|
| +void FakeTrafficRecorder::SetTime(base::Time time) {
|
| + time_ = time;
|
| +}
|
| +
|
| +} // namespace syncer
|
|
|