blob: a0702e15e93af805c5b7c2c920892ebedcd7705e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// 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_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_
#define SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_
#include "base/compiler_specific.h"
#include "base/threading/non_thread_safe.h"
#include "sync/util/extensions_activity_monitor.h"
namespace syncer {
// Fake non-thread-safe implementation of ExtensionsActivityMonitor
// suitable to be used in single-threaded sync tests.
class FakeExtensionsActivityMonitor
: public ExtensionsActivityMonitor,
public base::NonThreadSafe {
public:
FakeExtensionsActivityMonitor();
virtual ~FakeExtensionsActivityMonitor();
// ExtensionsActivityMonitor implementation.
virtual void GetAndClearRecords(Records* buffer) OVERRIDE;
virtual void PutRecords(const Records& records) OVERRIDE;
private:
Records records_;
};
} // namespace syncer
#endif // SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_
|