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 #include "chrome/browser/mock_browsing_data_cookie_helper.h" | 5 #include "chrome/browser/browsing_data/mock_browsing_data_cookie_helper.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "net/cookies/canonical_cookie.h" | 8 #include "net/cookies/canonical_cookie.h" |
9 #include "net/cookies/parsed_cookie.h" | 9 #include "net/cookies/parsed_cookie.h" |
10 | 10 |
11 MockBrowsingDataCookieHelper::MockBrowsingDataCookieHelper( | 11 MockBrowsingDataCookieHelper::MockBrowsingDataCookieHelper( |
12 net::URLRequestContextGetter* request_context_getter) | 12 net::URLRequestContextGetter* request_context_getter) |
13 : BrowsingDataCookieHelper(request_context_getter) { | 13 : BrowsingDataCookieHelper(request_context_getter) { |
14 } | 14 } |
15 | 15 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 i->second = true; | 59 i->second = true; |
60 } | 60 } |
61 | 61 |
62 bool MockBrowsingDataCookieHelper::AllDeleted() { | 62 bool MockBrowsingDataCookieHelper::AllDeleted() { |
63 for (std::map<const std::string, bool>::const_iterator i = cookies_.begin(); | 63 for (std::map<const std::string, bool>::const_iterator i = cookies_.begin(); |
64 i != cookies_.end(); ++i) | 64 i != cookies_.end(); ++i) |
65 if (i->second) | 65 if (i->second) |
66 return false; | 66 return false; |
67 return true; | 67 return true; |
68 } | 68 } |
OLD | NEW |