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

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

Issue 15380003: Rename test callbacks for CookieStore to represent the argument type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « net/cookies/cookie_store_test_callbacks.h ('k') | net/cookies/cookie_store_unittest.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_store_test_callbacks.h" 5 #include "net/cookies/cookie_store_test_callbacks.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 21 matching lines...) Expand all
32 } else if (run_in_loop_) { 32 } else if (run_in_loop_) {
33 expected_loop = run_in_loop_; 33 expected_loop = run_in_loop_;
34 } 34 }
35 ASSERT_TRUE(expected_loop != NULL); 35 ASSERT_TRUE(expected_loop != NULL);
36 36
37 did_run_ = true; 37 did_run_ = true;
38 EXPECT_EQ(expected_loop, MessageLoop::current()); 38 EXPECT_EQ(expected_loop, MessageLoop::current());
39 loop_to_quit_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); 39 loop_to_quit_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
40 } 40 }
41 41
42 SetCookieCallback::SetCookieCallback() : result_(false) {} 42 BoolResultCookieCallback::BoolResultCookieCallback() : result_(false) {}
43 SetCookieCallback::SetCookieCallback(base::Thread* run_in_thread) 43 BoolResultCookieCallback::BoolResultCookieCallback(base::Thread* run_in_thread)
44 : CookieCallback(run_in_thread), 44 : CookieCallback(run_in_thread),
45 result_(false) {} 45 result_(false) {}
46 46
47 GetCookieStringCallback::GetCookieStringCallback() {} 47 StringResultCookieCallback::StringResultCookieCallback() {}
48 GetCookieStringCallback::GetCookieStringCallback(base::Thread* run_in_thread) 48 StringResultCookieCallback::StringResultCookieCallback(
49 base::Thread* run_in_thread)
49 : CookieCallback(run_in_thread) {} 50 : CookieCallback(run_in_thread) {}
50 51
51 DeleteCallback::DeleteCallback() : num_deleted_(0) {} 52 IntResultCookieCallback::IntResultCookieCallback() : result_(0) {}
52 DeleteCallback::DeleteCallback(base::Thread* run_in_thread) 53 IntResultCookieCallback::IntResultCookieCallback(base::Thread* run_in_thread)
53 : CookieCallback(run_in_thread), 54 : CookieCallback(run_in_thread),
54 num_deleted_(0) {} 55 result_(0) {}
55 56
56 DeleteCookieCallback::DeleteCookieCallback() {} 57 NoResultCookieCallback::NoResultCookieCallback() {}
57 DeleteCookieCallback::DeleteCookieCallback(base::Thread* run_in_thread) 58 NoResultCookieCallback::NoResultCookieCallback(base::Thread* run_in_thread)
58 : CookieCallback(run_in_thread) {} 59 : CookieCallback(run_in_thread) {}
59 60
60 } // namespace net 61 } // namespace net
OLDNEW
« no previous file with comments | « net/cookies/cookie_store_test_callbacks.h ('k') | net/cookies/cookie_store_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698