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

Unified Diff: chrome/browser/signin/fake_account_reconcilor.h

Issue 369353002: Create a FakeAccountReconcilor that doesn't perform network requests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: chrome/browser/signin/fake_account_reconcilor.h
diff --git a/chrome/browser/signin/fake_account_reconcilor.h b/chrome/browser/signin/fake_account_reconcilor.h
new file mode 100644
index 0000000000000000000000000000000000000000..49e81dc71fcb5d9cc88d88a4830af0ba4ecfda3e
--- /dev/null
+++ b/chrome/browser/signin/fake_account_reconcilor.h
@@ -0,0 +1,31 @@
+// Copyright 2014 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 CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_
+#define CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_
+
+#include "components/signin/core/browser/account_reconcilor.h"
+
+namespace content {
+class BrowserContext;
+}
+
+class FakeAccountReconcilor : public AccountReconcilor {
+ public:
+ FakeAccountReconcilor(ProfileOAuth2TokenService* token_service,
+ SigninManagerBase* signin_manager,
+ SigninClient* client);
+
+ // Helper function to be used with KeyedService::SetTestingFactory().
+ static KeyedService* Build(content::BrowserContext* context);
+
+ protected:
+ // Override this method to perform no network call, instead the callback
+ // is called immediately
+ virtual void GetAccountsFromCookie(GetAccountsFromCookieCallback callback)
+ OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(FakeAccountReconcilor);
+};
+
+#endif // CHROME_BROWSER_SIGNIN_FAKE_ACCOUNT_RECONCILOR_H_
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_apitest.cc ('k') | chrome/browser/signin/fake_account_reconcilor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698