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

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

Issue 1392973005: Get rid of CookieMonster::Delegate typedef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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.h ('k') | no next file » | 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 #include "net/cookies/cookie_monster_store_test.h" 5 #include "net/cookies/cookie_monster_store_test.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/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 MockPersistentCookieStore::~MockPersistentCookieStore() { 87 MockPersistentCookieStore::~MockPersistentCookieStore() {
88 } 88 }
89 89
90 MockCookieMonsterDelegate::MockCookieMonsterDelegate() { 90 MockCookieMonsterDelegate::MockCookieMonsterDelegate() {
91 } 91 }
92 92
93 void MockCookieMonsterDelegate::OnCookieChanged( 93 void MockCookieMonsterDelegate::OnCookieChanged(
94 const CanonicalCookie& cookie, 94 const CanonicalCookie& cookie,
95 bool removed, 95 bool removed,
96 CookieMonster::Delegate::ChangeCause cause) { 96 CookieMonsterDelegate::ChangeCause cause) {
97 CookieNotification notification(cookie, removed); 97 CookieNotification notification(cookie, removed);
98 changes_.push_back(notification); 98 changes_.push_back(notification);
99 } 99 }
100 100
101 MockCookieMonsterDelegate::~MockCookieMonsterDelegate() { 101 MockCookieMonsterDelegate::~MockCookieMonsterDelegate() {
102 } 102 }
103 103
104 CanonicalCookie BuildCanonicalCookie(const std::string& key, 104 CanonicalCookie BuildCanonicalCookie(const std::string& key,
105 const std::string& cookie_line, 105 const std::string& cookie_line,
106 const base::Time& creation_time) { 106 const base::Time& creation_time) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 store->AddCookie(cc); 219 store->AddCookie(cc);
220 } 220 }
221 221
222 return new CookieMonster(store.get(), NULL); 222 return new CookieMonster(store.get(), NULL);
223 } 223 }
224 224
225 MockSimplePersistentCookieStore::~MockSimplePersistentCookieStore() { 225 MockSimplePersistentCookieStore::~MockSimplePersistentCookieStore() {
226 } 226 }
227 227
228 } // namespace net 228 } // namespace net
OLDNEW
« no previous file with comments | « net/cookies/cookie_monster.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698