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

Unified Diff: ios/public/test/test_chrome_browser_provider.mm

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.h ('k') | ios/public/test/test_keyed_service_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/test/test_chrome_browser_provider.mm
diff --git a/ios/public/test/test_chrome_browser_provider.mm b/ios/public/test/test_chrome_browser_provider.mm
index afcf24ca596e548470fae0a27f21833056610942..df12eaad28e265a6395fa783ed8969016fd57c30 100644
--- a/ios/public/test/test_chrome_browser_provider.mm
+++ b/ios/public/test/test_chrome_browser_provider.mm
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "ios/public/test/fake_string_provider.h"
+#import "ios/public/test/test_keyed_service_provider.h"
namespace {
const char kUIScheme[] = "uischeme";
@@ -14,7 +15,8 @@ const char kUIScheme[] = "uischeme";
namespace ios {
TestChromeBrowserProvider::TestChromeBrowserProvider()
- : string_provider_(new FakeStringProvider) {
+ : string_provider_(new FakeStringProvider),
+ test_keyed_service_provider_(new TestKeyedServiceProvider) {
}
TestChromeBrowserProvider::~TestChromeBrowserProvider() {
@@ -31,6 +33,10 @@ StringProvider* TestChromeBrowserProvider::GetStringProvider() {
return string_provider_.get();
}
+KeyedServiceProvider* TestChromeBrowserProvider::GetKeyedServiceProvider() {
+ return test_keyed_service_provider_.get();
+}
+
const char* TestChromeBrowserProvider::GetChromeUIScheme() {
return kUIScheme;
}
« no previous file with comments | « ios/public/test/test_chrome_browser_provider.h ('k') | ios/public/test/test_keyed_service_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698