| 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 "net/cookies/cookie_store_test_helpers.h" | 5 #include "net/cookies/cookie_store_test_helpers.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 const base::Time delete_end, | 143 const base::Time delete_end, |
| 144 const GURL& url, | 144 const GURL& url, |
| 145 const DeleteCallback& callback) { | 145 const DeleteCallback& callback) { |
| 146 ADD_FAILURE(); | 146 ADD_FAILURE(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void DelayedCookieMonster::DeleteSessionCookiesAsync(const DeleteCallback&) { | 149 void DelayedCookieMonster::DeleteSessionCookiesAsync(const DeleteCallback&) { |
| 150 ADD_FAILURE(); | 150 ADD_FAILURE(); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void DelayedCookieMonster::FlushStore(const base::Closure& callback) { |
| 154 ADD_FAILURE(); |
| 155 } |
| 156 |
| 153 CookieMonster* DelayedCookieMonster::GetCookieMonster() { | 157 CookieMonster* DelayedCookieMonster::GetCookieMonster() { |
| 154 return cookie_monster_.get(); | 158 return cookie_monster_.get(); |
| 155 } | 159 } |
| 156 | 160 |
| 157 scoped_ptr<CookieStore::CookieChangedSubscription> | 161 scoped_ptr<CookieStore::CookieChangedSubscription> |
| 158 DelayedCookieMonster::AddCallbackForCookie( | 162 DelayedCookieMonster::AddCallbackForCookie( |
| 159 const GURL& url, | 163 const GURL& url, |
| 160 const std::string& name, | 164 const std::string& name, |
| 161 const CookieChangedCallback& callback) { | 165 const CookieChangedCallback& callback) { |
| 162 ADD_FAILURE(); | 166 ADD_FAILURE(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 178 | 182 |
| 179 std::string CookieURLHelper::Format(const std::string& format_string) const { | 183 std::string CookieURLHelper::Format(const std::string& format_string) const { |
| 180 std::string new_string = format_string; | 184 std::string new_string = format_string; |
| 181 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D", | 185 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D", |
| 182 domain_and_registry_); | 186 domain_and_registry_); |
| 183 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_); | 187 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_); |
| 184 return new_string; | 188 return new_string; |
| 185 } | 189 } |
| 186 | 190 |
| 187 } // namespace net | 191 } // namespace net |
| OLD | NEW |