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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 CookieStoreCommand::CookieStoreCommand( | 28 CookieStoreCommand::CookieStoreCommand( |
29 Type type, | 29 Type type, |
30 const CookieMonster::PersistentCookieStore::LoadedCallback& loaded_callback, | 30 const CookieMonster::PersistentCookieStore::LoadedCallback& loaded_callback, |
31 const std::string& key) | 31 const std::string& key) |
32 : type(type), loaded_callback(loaded_callback), key(key) {} | 32 : type(type), loaded_callback(loaded_callback), key(key) {} |
33 | 33 |
34 CookieStoreCommand::CookieStoreCommand(Type type, const CanonicalCookie& cookie) | 34 CookieStoreCommand::CookieStoreCommand(Type type, const CanonicalCookie& cookie) |
35 : type(type), cookie(cookie) {} | 35 : type(type), cookie(cookie) {} |
36 | 36 |
| 37 CookieStoreCommand::CookieStoreCommand(const CookieStoreCommand& other) = |
| 38 default; |
| 39 |
37 CookieStoreCommand::~CookieStoreCommand() {} | 40 CookieStoreCommand::~CookieStoreCommand() {} |
38 | 41 |
39 MockPersistentCookieStore::MockPersistentCookieStore() | 42 MockPersistentCookieStore::MockPersistentCookieStore() |
40 : store_load_commands_(false), load_return_value_(true), loaded_(false) {} | 43 : store_load_commands_(false), load_return_value_(true), loaded_(false) {} |
41 | 44 |
42 void MockPersistentCookieStore::SetLoadExpectation( | 45 void MockPersistentCookieStore::SetLoadExpectation( |
43 bool return_value, | 46 bool return_value, |
44 const std::vector<CanonicalCookie*>& result) { | 47 const std::vector<CanonicalCookie*>& result) { |
45 load_return_value_ = return_value; | 48 load_return_value_ = return_value; |
46 load_result_ = result; | 49 load_result_ = result; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 store->AddCookie(cc); | 256 store->AddCookie(cc); |
254 } | 257 } |
255 | 258 |
256 return make_scoped_ptr(new CookieMonster(store.get(), nullptr)); | 259 return make_scoped_ptr(new CookieMonster(store.get(), nullptr)); |
257 } | 260 } |
258 | 261 |
259 MockSimplePersistentCookieStore::~MockSimplePersistentCookieStore() { | 262 MockSimplePersistentCookieStore::~MockSimplePersistentCookieStore() { |
260 } | 263 } |
261 | 264 |
262 } // namespace net | 265 } // namespace net |
OLD | NEW |