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_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 Loading... |
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 Loading... |
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 |
OLD | NEW |