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

Side by Side Diff: sync/test/engine/fake_model_safe_worker_registrar.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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/DEPS ('k') | sync/test/engine/fake_model_safe_worker_registrar.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) 2011 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 CHROME_BROWSER_SYNC_TEST_ENGINE_FAKE_MODEL_SAFE_WORKER_REGISTRAR_H_ 5 #ifndef SYNC_TEST_ENGINE_FAKE_MODEL_SAFE_WORKER_REGISTRAR_H_
6 #define CHROME_BROWSER_SYNC_TEST_ENGINE_FAKE_MODEL_SAFE_WORKER_REGISTRAR_H_ 6 #define SYNC_TEST_ENGINE_FAKE_MODEL_SAFE_WORKER_REGISTRAR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "chrome/browser/sync/engine/model_safe_worker.h" 14 #include "sync/engine/model_safe_worker.h"
15 15
16 namespace browser_sync { 16 namespace browser_sync {
17 17
18 class FakeModelSafeWorkerRegistrar : public ModelSafeWorkerRegistrar { 18 class FakeModelSafeWorkerRegistrar : public ModelSafeWorkerRegistrar {
19 public: 19 public:
20 explicit FakeModelSafeWorkerRegistrar(const ModelSafeRoutingInfo& routes); 20 explicit FakeModelSafeWorkerRegistrar(const ModelSafeRoutingInfo& routes);
21 21
22 virtual ~FakeModelSafeWorkerRegistrar(); 22 virtual ~FakeModelSafeWorkerRegistrar();
23 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE; 23 virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE;
24 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE; 24 virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE;
25 25
26 private: 26 private:
27 const ModelSafeRoutingInfo routes_; 27 const ModelSafeRoutingInfo routes_;
28 std::vector<scoped_refptr<ModelSafeWorker> > workers_; 28 std::vector<scoped_refptr<ModelSafeWorker> > workers_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(FakeModelSafeWorkerRegistrar); 30 DISALLOW_COPY_AND_ASSIGN(FakeModelSafeWorkerRegistrar);
31 }; 31 };
32 32
33 } // namespace browser_sync 33 } // namespace browser_sync
34 34
35 #endif // CHROME_BROWSER_SYNC_TEST_ENGINE_FAKE_MODEL_SAFE_WORKER_REGISTRAR_H_ 35 #endif // SYNC_TEST_ENGINE_FAKE_MODEL_SAFE_WORKER_REGISTRAR_H_
36 36
OLDNEW
« no previous file with comments | « sync/test/DEPS ('k') | sync/test/engine/fake_model_safe_worker_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698