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_ |