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

Unified Diff: net/base/cookie_store_test_callbacks.cc

Issue 9703011: Move the cookie store implementation into its own directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net/base/cookies/ -> net/cookies/ Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/cookie_store_test_callbacks.h ('k') | net/base/cookie_store_test_helpers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/cookie_store_test_callbacks.cc
diff --git a/net/base/cookie_store_test_callbacks.cc b/net/base/cookie_store_test_callbacks.cc
deleted file mode 100644
index e16df069ba2fa2690453616cb730ae37b63fdee2..0000000000000000000000000000000000000000
--- a/net/base/cookie_store_test_callbacks.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/base/cookie_store_test_callbacks.h"
-
-#include "base/message_loop.h"
-#include "base/threading/thread.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace net {
-
-CookieCallback::CookieCallback(base::Thread* run_in_thread)
- : did_run_(false),
- run_in_thread_(run_in_thread),
- run_in_loop_(NULL),
- parent_loop_(MessageLoop::current()),
- loop_to_quit_(MessageLoop::current()) {}
-
-CookieCallback::CookieCallback()
- : did_run_(false),
- run_in_thread_(NULL),
- run_in_loop_(MessageLoop::current()),
- parent_loop_(NULL),
- loop_to_quit_(MessageLoop::current()) {}
-
-void CookieCallback::CallbackEpilogue() {
- MessageLoop* expected_loop = NULL;
- if (run_in_thread_) {
- DCHECK(!run_in_loop_);
- expected_loop = run_in_thread_->message_loop();
- } else if (run_in_loop_) {
- expected_loop = run_in_loop_;
- }
- ASSERT_TRUE(expected_loop != NULL);
-
- did_run_ = true;
- EXPECT_EQ(expected_loop, MessageLoop::current());
- loop_to_quit_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
-}
-
-SetCookieCallback::SetCookieCallback() : result_(false) {}
-SetCookieCallback::SetCookieCallback(base::Thread* run_in_thread)
- : CookieCallback(run_in_thread),
- result_(false) {}
-
-GetCookieStringCallback::GetCookieStringCallback() {}
-GetCookieStringCallback::GetCookieStringCallback(base::Thread* run_in_thread)
- : CookieCallback(run_in_thread) {}
-
-GetCookiesWithInfoCallback::GetCookiesWithInfoCallback() {}
-GetCookiesWithInfoCallback::GetCookiesWithInfoCallback(
- base::Thread* run_in_thread) : CookieCallback(run_in_thread) {}
-GetCookiesWithInfoCallback::~GetCookiesWithInfoCallback() {}
-
-DeleteCallback::DeleteCallback() : num_deleted_(0) {}
-DeleteCallback::DeleteCallback(base::Thread* run_in_thread)
- : CookieCallback(run_in_thread),
- num_deleted_(0) {}
-
-DeleteCookieCallback::DeleteCookieCallback() {}
-DeleteCookieCallback::DeleteCookieCallback(base::Thread* run_in_thread)
- : CookieCallback(run_in_thread) {}
-
-} // namespace net
« no previous file with comments | « net/base/cookie_store_test_callbacks.h ('k') | net/base/cookie_store_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698