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.
5 #ifndef SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_
6 #define SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_
8 #include "base/compiler_specific.h"
9 #include "base/threading/non_thread_safe.h"
10 #include "sync/util/extensions_activity_monitor.h"
14 // Fake non-thread-safe implementation of ExtensionsActivityMonitor
15 // suitable to be used in single-threaded sync tests.
16 class FakeExtensionsActivityMonitor
17 : public ExtensionsActivityMonitor
,
18 public base::NonThreadSafe
{
20 FakeExtensionsActivityMonitor();
21 virtual ~FakeExtensionsActivityMonitor();
23 // ExtensionsActivityMonitor implementation.
24 virtual void GetAndClearRecords(Records
* buffer
) OVERRIDE
;
25 virtual void PutRecords(const Records
& records
) OVERRIDE
;
33 #endif // SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_