| 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/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 MockPersistentCookieStore::~MockPersistentCookieStore() { | 110 MockPersistentCookieStore::~MockPersistentCookieStore() { |
| 111 } | 111 } |
| 112 | 112 |
| 113 MockCookieMonsterDelegate::MockCookieMonsterDelegate() { | 113 MockCookieMonsterDelegate::MockCookieMonsterDelegate() { |
| 114 } | 114 } |
| 115 | 115 |
| 116 void MockCookieMonsterDelegate::OnCookieChanged( | 116 void MockCookieMonsterDelegate::OnCookieChanged( |
| 117 const CanonicalCookie& cookie, | 117 const CanonicalCookie& cookie, |
| 118 bool removed, | 118 bool removed, |
| 119 CookieMonsterDelegate::ChangeCause cause) { | 119 CookieStore::ChangeCause cause) { |
| 120 CookieNotification notification(cookie, removed); | 120 CookieNotification notification(cookie, removed); |
| 121 changes_.push_back(notification); | 121 changes_.push_back(notification); |
| 122 } | 122 } |
| 123 | 123 |
| 124 MockCookieMonsterDelegate::~MockCookieMonsterDelegate() { | 124 MockCookieMonsterDelegate::~MockCookieMonsterDelegate() { |
| 125 } | 125 } |
| 126 | 126 |
| 127 std::unique_ptr<CanonicalCookie> BuildCanonicalCookie( | 127 std::unique_ptr<CanonicalCookie> BuildCanonicalCookie( |
| 128 const GURL& url, | 128 const GURL& url, |
| 129 const std::string& cookie_line, | 129 const std::string& cookie_line, |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 store->AddCookie(*cc); | 260 store->AddCookie(*cc); |
| 261 } | 261 } |
| 262 | 262 |
| 263 return base::MakeUnique<CookieMonster>(store.get(), nullptr); | 263 return base::MakeUnique<CookieMonster>(store.get(), nullptr); |
| 264 } | 264 } |
| 265 | 265 |
| 266 MockSimplePersistentCookieStore::~MockSimplePersistentCookieStore() { | 266 MockSimplePersistentCookieStore::~MockSimplePersistentCookieStore() { |
| 267 } | 267 } |
| 268 | 268 |
| 269 } // namespace net | 269 } // namespace net |
| OLD | NEW |