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

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

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.cc
diff --git a/chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.cc b/chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.cc
deleted file mode 100644
index 21ab0616a8ba47c666b9edcf5b9ffe5208946b1e..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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.
-
-#include "chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.h"
-
-#include "chrome/browser/sync/test/engine/fake_model_worker.h"
-
-namespace browser_sync {
-
-FakeModelSafeWorkerRegistrar::FakeModelSafeWorkerRegistrar(
- const ModelSafeRoutingInfo& routes) : routes_(routes) {
- std::set<ModelSafeGroup> groups;
- for (ModelSafeRoutingInfo::const_iterator it = routes_.begin();
- it != routes_.end(); ++it) {
- groups.insert(it->second);
- }
- // Sessions always expect a passive worker to be present.
- groups.insert(GROUP_PASSIVE);
-
- for (std::set<ModelSafeGroup>::const_iterator it = groups.begin();
- it != groups.end(); ++it) {
- workers_.push_back(make_scoped_refptr(new FakeModelWorker(*it)));
- }
-}
-
-FakeModelSafeWorkerRegistrar::~FakeModelSafeWorkerRegistrar() {}
-
-void FakeModelSafeWorkerRegistrar::GetWorkers(
- std::vector<ModelSafeWorker*>* out) {
- for (std::vector<scoped_refptr<ModelSafeWorker> >::const_iterator it =
- workers_.begin(); it != workers_.end(); ++it) {
- out->push_back(it->get());
- }
-}
-
-void FakeModelSafeWorkerRegistrar::GetModelSafeRoutingInfo(
- ModelSafeRoutingInfo* out) {
- *out = routes_;
-}
-
-} // namespace browser_sync

Powered by Google App Engine
This is Rietveld 408576698