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

Unified Diff: chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.h

Issue 8625005: [Sync] Make ModelSafeWorker a true interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.h
diff --git a/chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.h b/chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.h
new file mode 100644
index 0000000000000000000000000000000000000000..d0e44094e160bce9b9d15d840a5a28c8365019c2
--- /dev/null
+++ b/chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2011 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 CHROME_BROWSER_SYNC_TEST_ENGINE_FAKE_MODEL_SAFE_WORKER_REGISTRAR_H_
+#define CHROME_BROWSER_SYNC_TEST_ENGINE_FAKE_MODEL_SAFE_WORKER_REGISTRAR_H_
+#pragma once
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
+#include "chrome/browser/sync/engine/model_safe_worker.h"
+
+namespace browser_sync {
+
+class FakeModelSafeWorkerRegistrar : public ModelSafeWorkerRegistrar {
+ public:
+ explicit FakeModelSafeWorkerRegistrar(const ModelSafeRoutingInfo& routes);
+
+ virtual ~FakeModelSafeWorkerRegistrar();
+ virtual void GetWorkers(std::vector<ModelSafeWorker*>* out) OVERRIDE;
+ virtual void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) OVERRIDE;
+
+ private:
+ const ModelSafeRoutingInfo routes_;
+ std::vector<scoped_refptr<ModelSafeWorker> > workers_;
+
+ DISALLOW_COPY_AND_ASSIGN(FakeModelSafeWorkerRegistrar);
+};
+
+} // namespace browser_sync
+
+#endif // CHROME_BROWSER_SYNC_TEST_ENGINE_FAKE_MODEL_SAFE_WORKER_REGISTRAR_H_
+

Powered by Google App Engine
This is Rietveld 408576698