| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/base/cookie_store_test_helpers.h" | 5 #include "net/base/cookie_store_test_helpers.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 cookie_info_ = cookie_info; | 26 cookie_info_ = cookie_info; |
| 27 did_run_ = true; | 27 did_run_ = true; |
| 28 } | 28 } |
| 29 | 29 |
| 30 void DelayedCookieMonster::SetCookiesInternalCallback(bool result) { | 30 void DelayedCookieMonster::SetCookiesInternalCallback(bool result) { |
| 31 result_ = result; | 31 result_ = result; |
| 32 did_run_ = true; | 32 did_run_ = true; |
| 33 } | 33 } |
| 34 | 34 |
| 35 void DelayedCookieMonster::GetCookiesWithOptionsInternalCallback( | 35 void DelayedCookieMonster::GetCookiesWithOptionsInternalCallback( |
| 36 const std::string& cookie) { | 36 std::string cookie) { |
| 37 cookie_ = cookie; | 37 cookie_ = cookie; |
| 38 did_run_ = true; | 38 did_run_ = true; |
| 39 } | 39 } |
| 40 | 40 |
| 41 void DelayedCookieMonster::GetCookiesWithInfoAsync( | 41 void DelayedCookieMonster::GetCookiesWithInfoAsync( |
| 42 const GURL& url, | 42 const GURL& url, |
| 43 const CookieOptions& options, | 43 const CookieOptions& options, |
| 44 const CookieMonster::GetCookieInfoCallback& callback) { | 44 const CookieMonster::GetCookieInfoCallback& callback) { |
| 45 did_run_ = false; | 45 did_run_ = false; |
| 46 cookie_monster_->GetCookiesWithInfoAsync( | 46 cookie_monster_->GetCookiesWithInfoAsync( |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 const std::string& cookie_name, | 138 const std::string& cookie_name, |
| 139 const base::Closure& callback) { | 139 const base::Closure& callback) { |
| 140 ADD_FAILURE(); | 140 ADD_FAILURE(); |
| 141 } | 141 } |
| 142 | 142 |
| 143 CookieMonster* DelayedCookieMonster::GetCookieMonster() { | 143 CookieMonster* DelayedCookieMonster::GetCookieMonster() { |
| 144 return cookie_monster_; | 144 return cookie_monster_; |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace net | 147 } // namespace net |
| OLD | NEW |