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

Side by Side Diff: net/cookies/cookie_store_test_helpers.cc

Issue 1741123002: Add removal filter support for Cookies, Storage, and Content Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios fix, and fixed test Created 4 years, 9 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
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 } 190 }
191 191
192 void DelayedCookieMonster::DeleteAllCreatedBetweenForHostAsync( 192 void DelayedCookieMonster::DeleteAllCreatedBetweenForHostAsync(
193 const base::Time delete_begin, 193 const base::Time delete_begin,
194 const base::Time delete_end, 194 const base::Time delete_end,
195 const GURL& url, 195 const GURL& url,
196 const DeleteCallback& callback) { 196 const DeleteCallback& callback) {
197 ADD_FAILURE(); 197 ADD_FAILURE();
198 } 198 }
199 199
200 void DelayedCookieMonster::DeleteAllCreatedBetweenWithPredicateAsync(
201 const base::Time& delete_begin,
202 const base::Time& delete_end,
203 const base::Callback<bool(const CanonicalCookie&)>& predicate,
204 const DeleteCallback& callback) {
205 ADD_FAILURE();
206 }
207
200 void DelayedCookieMonster::DeleteSessionCookiesAsync(const DeleteCallback&) { 208 void DelayedCookieMonster::DeleteSessionCookiesAsync(const DeleteCallback&) {
201 ADD_FAILURE(); 209 ADD_FAILURE();
202 } 210 }
203 211
204 void DelayedCookieMonster::FlushStore(const base::Closure& callback) { 212 void DelayedCookieMonster::FlushStore(const base::Closure& callback) {
205 ADD_FAILURE(); 213 ADD_FAILURE();
206 } 214 }
207 215
208 scoped_ptr<CookieStore::CookieChangedSubscription> 216 scoped_ptr<CookieStore::CookieChangedSubscription>
209 DelayedCookieMonster::AddCallbackForCookie( 217 DelayedCookieMonster::AddCallbackForCookie(
(...skipping 19 matching lines...) Expand all
229 237
230 std::string CookieURLHelper::Format(const std::string& format_string) const { 238 std::string CookieURLHelper::Format(const std::string& format_string) const {
231 std::string new_string = format_string; 239 std::string new_string = format_string;
232 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D", 240 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D",
233 domain_and_registry_); 241 domain_and_registry_);
234 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_); 242 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_);
235 return new_string; 243 return new_string;
236 } 244 }
237 245
238 } // namespace net 246 } // namespace net
OLDNEW
« net/cookies/cookie_store.cc ('K') | « net/cookies/cookie_store_test_helpers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698