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

Unified Diff: ios/chrome/browser/sync/fake_sync_service_factory.cc

Issue 1663783002: Remove the //ios/public/test target. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios_tests
Patch Set: Add missing forwarding-header Created 4 years, 11 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: ios/chrome/browser/sync/fake_sync_service_factory.cc
diff --git a/ios/public/test/fake_sync_service_factory.cc b/ios/chrome/browser/sync/fake_sync_service_factory.cc
similarity index 84%
rename from ios/public/test/fake_sync_service_factory.cc
rename to ios/chrome/browser/sync/fake_sync_service_factory.cc
index 317f5f4fae91503b80a94a2d715520fd6b6a0a50..923c7294a9528b596b416c5868844f1144663135 100644
--- a/ios/public/test/fake_sync_service_factory.cc
+++ b/ios/chrome/browser/sync/fake_sync_service_factory.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ios/public/test/fake_sync_service_factory.h"
+#include "ios/chrome/browser/sync/fake_sync_service_factory.h"
#include "base/logging.h"
#include "base/memory/singleton.h"
@@ -39,7 +39,8 @@ sync_driver::FakeSyncService* FakeSyncServiceFactory::GetForBrowserState(
ios::ChromeBrowserState* browser_state) {
return static_cast<KeyedFakeSyncService*>(
FakeSyncServiceFactory::GetInstance()->GetServiceForBrowserState(
- browser_state, true))->fake_sync_service();
+ browser_state, true))
+ ->fake_sync_service();
}
// static
@@ -48,17 +49,16 @@ FakeSyncServiceFactory::GetForBrowserStateIfExists(
ios::ChromeBrowserState* browser_state) {
return static_cast<KeyedFakeSyncService*>(
FakeSyncServiceFactory::GetInstance()->GetServiceForBrowserState(
- browser_state, false))->fake_sync_service();
+ browser_state, false))
+ ->fake_sync_service();
}
FakeSyncServiceFactory::FakeSyncServiceFactory()
: BrowserStateKeyedServiceFactory(
"FakeSyncService",
- BrowserStateDependencyManager::GetInstance()) {
-}
+ BrowserStateDependencyManager::GetInstance()) {}
-FakeSyncServiceFactory::~FakeSyncServiceFactory() {
-}
+FakeSyncServiceFactory::~FakeSyncServiceFactory() {}
scoped_ptr<KeyedService> FakeSyncServiceFactory::BuildServiceInstanceFor(
web::BrowserState* context) const {
« no previous file with comments | « ios/chrome/browser/sync/fake_sync_service_factory.h ('k') | ios/chrome/browser/translate/translate_service_ios_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698