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

Unified Diff: ios/chrome/browser/signin/fake_oauth2_token_service_builder.h

Issue 1251463002: iOS factories for ProfileOAuth2TokenService and AccountTrackerService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@componentizeOAuth2
Patch Set: Review comments Created 5 years, 5 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/signin/fake_oauth2_token_service_builder.h
diff --git a/ios/chrome/browser/signin/fake_oauth2_token_service_builder.h b/ios/chrome/browser/signin/fake_oauth2_token_service_builder.h
new file mode 100644
index 0000000000000000000000000000000000000000..fde891d91673729650b715e2bb2a6828325412b9
--- /dev/null
+++ b/ios/chrome/browser/signin/fake_oauth2_token_service_builder.h
@@ -0,0 +1,22 @@
+// 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_CHROME_BROWSER_SIGNIN_FAKE_OAUTH2_TOKEN_SERVICE_BUILDER_H_
+#define IOS_CHROME_BROWSER_SIGNIN_FAKE_OAUTH2_TOKEN_SERVICE_BUILDER_H_
+
+#include "base/memory/scoped_ptr.h"
+
+namespace web {
+class BrowserState;
+}
+
+class KeyedService;
+
+// Helper function to be used with
+// BrowserStateKeyedServiceFactory::SetTestingFactory() that returns a
+// FakeProfileOAuth2TokenService object.
+scoped_ptr<KeyedService> BuildFakeOAuth2TokenService(
+ web::BrowserState* context);
+
+#endif // IOS_CHROME_BROWSER_SIGNIN_FAKE_OAUTH2_TOKEN_SERVICE_BUILDER_H_

Powered by Google App Engine
This is Rietveld 408576698