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

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

Issue 1825273002: Add more out of line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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_store_test.h ('k') | net/quic/crypto/quic_compressed_certs_cache.h » ('j') | 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 16 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « net/cookies/cookie_monster_store_test.h ('k') | net/quic/crypto/quic_compressed_certs_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698