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

Unified Diff: ios/public/test/test_keyed_service_provider.h

Issue 1158223003: [iOS] Add FakeSyncService and factory for testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 6 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
« no previous file with comments | « ios/public/test/test_chrome_browser_provider.mm ('k') | ios/public/test/test_keyed_service_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/test/test_keyed_service_provider.h
diff --git a/ios/public/test/test_keyed_service_provider.h b/ios/public/test/test_keyed_service_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..b2867ec8194a7dda2b21161d7fa22e4e8202afef
--- /dev/null
+++ b/ios/public/test/test_keyed_service_provider.h
@@ -0,0 +1,29 @@
+// Copyright 2015 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 IOS_PUBLIC_TEST_TEST_KEYED_SERVICE_PROVIDER_H_
+#define IOS_PUBLIC_TEST_TEST_KEYED_SERVICE_PROVIDER_H_
+
+#include "base/macros.h"
+#include "ios/public/provider/chrome/browser/keyed_service_provider.h"
+
+namespace ios {
+
+class TestKeyedServiceProvider : public KeyedServiceProvider {
+ public:
+ TestKeyedServiceProvider();
+ ~TestKeyedServiceProvider() override;
+
+ // KeyedServiceProvider implementation:
+ KeyedServiceBaseFactory* GetSyncServiceFactory() override;
+ sync_driver::SyncService* GetSyncServiceForBrowserState(
+ ChromeBrowserState* browser_state) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestKeyedServiceProvider);
+};
+
+} // namespace ios
+
+#endif // IOS_PUBLIC_TEST_TEST_KEYED_SERVICE_PROVIDER_H_
« no previous file with comments | « ios/public/test/test_chrome_browser_provider.mm ('k') | ios/public/test/test_keyed_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698