Loosen up heuristics for detecting account creation forms.
[chromium-blink-merge.git] / sync / test / fake_extensions_activity_monitor.h
bloba0702e15e93af805c5b7c2c920892ebedcd7705e
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"
12 namespace syncer {
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 {
19 public:
20 FakeExtensionsActivityMonitor();
21 virtual ~FakeExtensionsActivityMonitor();
23 // ExtensionsActivityMonitor implementation.
24 virtual void GetAndClearRecords(Records* buffer) OVERRIDE;
25 virtual void PutRecords(const Records& records) OVERRIDE;
27 private:
28 Records records_;
31 } // namespace syncer
33 #endif // SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_