Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: sync/test/fake_extensions_activity_monitor.h

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/test/fake_encryptor.cc ('k') | sync/test/fake_extensions_activity_monitor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_ 5 #ifndef SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_
6 #define SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_ 6 #define SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
11 #include "sync/util/extensions_activity_monitor.h" 11 #include "sync/util/extensions_activity_monitor.h"
12 12
13 namespace csync { 13 namespace syncer {
14 14
15 // Fake non-thread-safe implementation of ExtensionsActivityMonitor 15 // Fake non-thread-safe implementation of ExtensionsActivityMonitor
16 // suitable to be used in single-threaded sync tests. 16 // suitable to be used in single-threaded sync tests.
17 class FakeExtensionsActivityMonitor 17 class FakeExtensionsActivityMonitor
18 : public ExtensionsActivityMonitor, 18 : public ExtensionsActivityMonitor,
19 public base::NonThreadSafe { 19 public base::NonThreadSafe {
20 public: 20 public:
21 FakeExtensionsActivityMonitor(); 21 FakeExtensionsActivityMonitor();
22 virtual ~FakeExtensionsActivityMonitor(); 22 virtual ~FakeExtensionsActivityMonitor();
23 23
24 // ExtensionsActivityMonitor implementation. 24 // ExtensionsActivityMonitor implementation.
25 virtual void GetAndClearRecords(Records* buffer) OVERRIDE; 25 virtual void GetAndClearRecords(Records* buffer) OVERRIDE;
26 virtual void PutRecords(const Records& records) OVERRIDE; 26 virtual void PutRecords(const Records& records) OVERRIDE;
27 27
28 private: 28 private:
29 Records records_; 29 Records records_;
30 }; 30 };
31 31
32 } // namespace csync 32 } // namespace syncer
33 33
34 #endif // SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_ 34 #endif // SYNC_TEST_FAKE_EXTENSIONS_ACTIVITY_MONITOR_H_
OLDNEW
« no previous file with comments | « sync/test/fake_encryptor.cc ('k') | sync/test/fake_extensions_activity_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698