OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 4 |
5 #ifndef CHROME_BROWSER_MOCK_BROWSING_DATA_COOKIE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_COOKIE_HELPER_H_ |
6 #define CHROME_BROWSER_MOCK_BROWSING_DATA_COOKIE_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_COOKIE_HELPER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/browser/browsing_data_cookie_helper.h" | 11 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" |
12 #include "net/cookies/canonical_cookie.h" | 12 #include "net/cookies/canonical_cookie.h" |
13 | 13 |
14 // Mock for BrowsingDataCookieHelper. | 14 // Mock for BrowsingDataCookieHelper. |
15 class MockBrowsingDataCookieHelper : public BrowsingDataCookieHelper { | 15 class MockBrowsingDataCookieHelper : public BrowsingDataCookieHelper { |
16 public: | 16 public: |
17 explicit MockBrowsingDataCookieHelper( | 17 explicit MockBrowsingDataCookieHelper( |
18 net::URLRequestContextGetter* request_context_getter); | 18 net::URLRequestContextGetter* request_context_getter); |
19 | 19 |
20 // BrowsingDataCookieHelper methods. | 20 // BrowsingDataCookieHelper methods. |
21 virtual void StartFetching( | 21 virtual void StartFetching( |
(...skipping 17 matching lines...) Expand all Loading... |
39 virtual ~MockBrowsingDataCookieHelper(); | 39 virtual ~MockBrowsingDataCookieHelper(); |
40 | 40 |
41 net::CookieMonster::GetCookieListCallback callback_; | 41 net::CookieMonster::GetCookieListCallback callback_; |
42 | 42 |
43 net::CookieList cookie_list_; | 43 net::CookieList cookie_list_; |
44 | 44 |
45 // Stores which cookies exist. | 45 // Stores which cookies exist. |
46 std::map<const std::string, bool> cookies_; | 46 std::map<const std::string, bool> cookies_; |
47 }; | 47 }; |
48 | 48 |
49 #endif // CHROME_BROWSER_MOCK_BROWSING_DATA_COOKIE_HELPER_H_ | 49 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_COOKIE_HELPER_H_ |
OLD | NEW |