OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 #ifndef CHROME_BROWSER_SIGNIN_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_ | 4 #ifndef CHROME_BROWSER_SIGNIN_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_ |
5 #define CHROME_BROWSER_SIGNIN_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_ | 5 #define CHROME_BROWSER_SIGNIN_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_ |
6 | 6 |
7 #include "components/signin/core/browser/gaia_cookie_manager_service.h" | 7 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
8 | 8 |
| 9 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "net/url_request/test_url_fetcher_factory.h" | 11 #include "net/url_request/test_url_fetcher_factory.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 class BrowserContext; | 14 class BrowserContext; |
14 } | 15 } |
15 | 16 |
16 class FakeGaiaCookieManagerService : public GaiaCookieManagerService { | 17 class FakeGaiaCookieManagerService : public GaiaCookieManagerService { |
17 public: | 18 public: |
18 FakeGaiaCookieManagerService(OAuth2TokenService* token_service, | 19 FakeGaiaCookieManagerService(OAuth2TokenService* token_service, |
(...skipping 23 matching lines...) Expand all Loading... |
42 static scoped_ptr<KeyedService> Build(content::BrowserContext* context); | 43 static scoped_ptr<KeyedService> Build(content::BrowserContext* context); |
43 | 44 |
44 private: | 45 private: |
45 // Provide a fake response for calls to /ListAccounts. | 46 // Provide a fake response for calls to /ListAccounts. |
46 net::FakeURLFetcherFactory* url_fetcher_factory_; | 47 net::FakeURLFetcherFactory* url_fetcher_factory_; |
47 | 48 |
48 DISALLOW_COPY_AND_ASSIGN(FakeGaiaCookieManagerService); | 49 DISALLOW_COPY_AND_ASSIGN(FakeGaiaCookieManagerService); |
49 }; | 50 }; |
50 | 51 |
51 #endif // CHROME_BROWSER_SIGNIN_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_ | 52 #endif // CHROME_BROWSER_SIGNIN_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_ |
OLD | NEW |