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

Side by Side Diff: ios/net/cookies/cookie_store_ios_unittest.mm

Issue 1666513002: Promote CookieMonster::DeleteCanonicalCookieAsync to CookieStore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cookie_monster13
Patch Set: Rebase Created 4 years, 10 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
« no previous file with comments | « ios/net/cookies/cookie_store_ios.mm ('k') | net/cookies/cookie_monster.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "ios/net/cookies/cookie_store_ios.h" 5 #include "ios/net/cookies/cookie_store_ios.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 store_->GetAllCookiesAsync(callback); 127 store_->GetAllCookiesAsync(callback);
128 } 128 }
129 129
130 void DeleteCookieAsync(const GURL& url, 130 void DeleteCookieAsync(const GURL& url,
131 const std::string& cookie_name, 131 const std::string& cookie_name,
132 const base::Closure& callback) override { 132 const base::Closure& callback) override {
133 RoundTrip(); 133 RoundTrip();
134 store_->DeleteCookieAsync(url, cookie_name, callback); 134 store_->DeleteCookieAsync(url, cookie_name, callback);
135 } 135 }
136 136
137 void DeleteCanonicalCookieAsync(
138 const CanonicalCookie& cookie,
139 const DeleteCallback& callback) override {
140 RoundTrip();
141 store_->DeleteCanonicalCookieAsync(cookie, callback);
142 }
143
137 net::CookieMonster* GetCookieMonster() override { return nullptr; } 144 net::CookieMonster* GetCookieMonster() override { return nullptr; }
138 145
139 void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin, 146 void DeleteAllCreatedBetweenAsync(const base::Time& delete_begin,
140 const base::Time& delete_end, 147 const base::Time& delete_end,
141 const DeleteCallback& callback) override { 148 const DeleteCallback& callback) override {
142 RoundTrip(); 149 RoundTrip();
143 store_->DeleteAllCreatedBetweenAsync(delete_begin, delete_end, callback); 150 store_->DeleteAllCreatedBetweenAsync(delete_begin, delete_end, callback);
144 } 151 }
145 152
146 void DeleteAllCreatedBetweenForHostAsync( 153 void DeleteAllCreatedBetweenForHostAsync(
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 EXPECT_EQ(2U, cookies.size()); 987 EXPECT_EQ(2U, cookies.size());
981 // this deletes the callback 988 // this deletes the callback
982 handle.reset(); 989 handle.reset();
983 SetSystemCookie(kTestCookieURL, "abc", "jkl"); 990 SetSystemCookie(kTestCookieURL, "abc", "jkl");
984 EXPECT_EQ(2U, cookies.size()); 991 EXPECT_EQ(2U, cookies.size());
985 DeleteSystemCookie(kTestCookieURL, "abc"); 992 DeleteSystemCookie(kTestCookieURL, "abc");
986 store_->UnSynchronize(); 993 store_->UnSynchronize();
987 } 994 }
988 995
989 } // namespace net 996 } // namespace net
OLDNEW
« no previous file with comments | « ios/net/cookies/cookie_store_ios.mm ('k') | net/cookies/cookie_monster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698