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

Side by Side Diff: net/cookies/cookie_monster_store_test.h

Issue 2349823003: Pass a RemovalCause to CookieChangedCallback (Closed)
Patch Set: rebase Created 4 years, 2 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 | « net/cookies/cookie_monster.cc ('k') | net/cookies/cookie_monster_store_test.cc » ('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 (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 // This file contains test infrastructure for multiple files 5 // This file contains test infrastructure for multiple files
6 // (current cookie_monster_unittest.cc and cookie_monster_perftest.cc) 6 // (current cookie_monster_unittest.cc and cookie_monster_perftest.cc)
7 // that need to test out CookieMonster interactions with the backing store. 7 // that need to test out CookieMonster interactions with the backing store.
8 // It should only be included by test code. 8 // It should only be included by test code.
9 9
10 #ifndef NET_COOKIES_COOKIE_MONSTER_STORE_TEST_H_ 10 #ifndef NET_COOKIES_COOKIE_MONSTER_STORE_TEST_H_
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 typedef std::pair<CanonicalCookie, bool> CookieNotification; 150 typedef std::pair<CanonicalCookie, bool> CookieNotification;
151 151
152 MockCookieMonsterDelegate(); 152 MockCookieMonsterDelegate();
153 153
154 const std::vector<CookieNotification>& changes() const { return changes_; } 154 const std::vector<CookieNotification>& changes() const { return changes_; }
155 155
156 void reset() { changes_.clear(); } 156 void reset() { changes_.clear(); }
157 157
158 void OnCookieChanged(const CanonicalCookie& cookie, 158 void OnCookieChanged(const CanonicalCookie& cookie,
159 bool removed, 159 bool removed,
160 CookieMonsterDelegate::ChangeCause cause) override; 160 CookieStore::ChangeCause cause) override;
161 161
162 private: 162 private:
163 ~MockCookieMonsterDelegate() override; 163 ~MockCookieMonsterDelegate() override;
164 164
165 std::vector<CookieNotification> changes_; 165 std::vector<CookieNotification> changes_;
166 166
167 DISALLOW_COPY_AND_ASSIGN(MockCookieMonsterDelegate); 167 DISALLOW_COPY_AND_ASSIGN(MockCookieMonsterDelegate);
168 }; 168 };
169 169
170 // Helper to build a single CanonicalCookie. 170 // Helper to build a single CanonicalCookie.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 std::unique_ptr<CookieMonster> CreateMonsterFromStoreForGC( 226 std::unique_ptr<CookieMonster> CreateMonsterFromStoreForGC(
227 int num_secure_cookies, 227 int num_secure_cookies,
228 int num_old_secure_cookies, 228 int num_old_secure_cookies,
229 int num_non_secure_cookies, 229 int num_non_secure_cookies,
230 int num_old_non_secure_cookies, 230 int num_old_non_secure_cookies,
231 int days_old); 231 int days_old);
232 232
233 } // namespace net 233 } // namespace net
234 234
235 #endif // NET_COOKIES_COOKIE_MONSTER_STORE_TEST_H_ 235 #endif // NET_COOKIES_COOKIE_MONSTER_STORE_TEST_H_
OLDNEW
« no previous file with comments | « net/cookies/cookie_monster.cc ('k') | net/cookies/cookie_monster_store_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698