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

Side by Side Diff: chrome/browser/signin/fake_gaia_cookie_manager_service.h

Issue 1075273002: Handle ListAccount fetches from within the GaiaCookieManagerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef CHROME_BROWSER_SIGNIN_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_
5 #define CHROME_BROWSER_SIGNIN_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_
6
7 #include "components/signin/core/browser/gaia_cookie_manager_service.h"
8
9 #include "net/url_request/test_url_fetcher_factory.h"
10
11 namespace content {
12 class BrowserContext;
13 }
14
15 class FakeGaiaCookieManagerService : public GaiaCookieManagerService {
16 public:
17 FakeGaiaCookieManagerService(OAuth2TokenService* token_service,
18 const std::string& source,
19 SigninClient* client);
20
21 // Helper function to be used with KeyedService::SetTestingFactory().
22 static KeyedService* Build(content::BrowserContext* context);
23
24 private:
25 // Provide a fake response for calls to /ListAccounts.
26 net::FakeURLFetcherFactory url_fetcher_factory_;
Roger Tawa OOO till Jul 10th 2015/04/15 18:51:05 I think it would be better to keep this member out
Mike Lerman 2015/04/16 13:13:46 Good point. I'll accept a FakeURLFetcherFactory as
27
28 DISALLOW_COPY_AND_ASSIGN(FakeGaiaCookieManagerService);
29 };
30
31 #endif // CHROME_BROWSER_SIGNIN_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698