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

Unified Diff: components/signin/core/browser/test_signin_client.h

Issue 234573003: Upstream PO2TS_IOS unit test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 8 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 | « components/signin/core/browser/DEPS ('k') | components/signin/core/browser/test_signin_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/test_signin_client.h
diff --git a/components/signin/core/browser/test_signin_client.h b/components/signin/core/browser/test_signin_client.h
index 03e0b880c02d708e923c74f996d74d86292584e2..0f66ef88f562b02cabf659e5477766af1f036de1 100644
--- a/components/signin/core/browser/test_signin_client.h
+++ b/components/signin/core/browser/test_signin_client.h
@@ -9,9 +9,14 @@
#include "base/compiler_specific.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "components/signin/core/browser/signin_client.h"
#include "net/url_request/url_request_test_util.h"
+#if defined(OS_IOS)
+#include "ios/public/test/fake_profile_oauth2_token_service_ios_provider.h"
+#endif
+
// An implementation of SigninClient for use in unittests. Instantiates test
// versions of the various objects that SigninClient is required to provide as
// part of its interface.
@@ -50,6 +55,10 @@ class TestSigninClient : public SigninClient {
virtual void SetCookieChangedCallback(const CookieChangedCallback& callback)
OVERRIDE;
+#if defined(OS_IOS)
+ ios::FakeProfileOAuth2TokenServiceIOSProvider* GetIOSProviderAsFake();
+#endif
+
private:
// Loads the token database.
void LoadDatabase();
@@ -58,6 +67,10 @@ class TestSigninClient : public SigninClient {
scoped_refptr<net::TestURLRequestContextGetter> request_context_;
scoped_refptr<TokenWebData> database_;
+#if defined(OS_IOS)
+ scoped_ptr<ios::FakeProfileOAuth2TokenServiceIOSProvider> iosProvider_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(TestSigninClient);
};
« no previous file with comments | « components/signin/core/browser/DEPS ('k') | components/signin/core/browser/test_signin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698