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

Unified Diff: chrome/browser/cookies_tree_model_unittest.cc

Issue 387055: Always destruct url request context getter on io thread.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « no previous file | chrome/browser/gtk/options/cookies_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cookies_tree_model_unittest.cc
===================================================================
--- chrome/browser/cookies_tree_model_unittest.cc (revision 32111)
+++ chrome/browser/cookies_tree_model_unittest.cc (working copy)
@@ -50,10 +50,14 @@
scoped_refptr<URLRequestContextGetter> url_request_context_getter_;
};
+class CookiesTreeModelTest : public testing::Test {
+ public:
+ CookiesTreeModelTest() : io_thread_(ChromeThread::IO, &message_loop_) {
+ }
+ virtual ~CookiesTreeModelTest() {
+ }
-class CookiesTreeModelTest : public testing::Test {
- public:
virtual void SetUp() {
profile_.reset(new CookieTestingProfile());
}
@@ -109,11 +113,12 @@
delete parent_node->GetModel()->Remove(parent_node, ct_node_index);
}
protected:
- MessageLoopForUI message_loop_;
+ MessageLoop message_loop_;
+ ChromeThread io_thread_;
+
scoped_ptr<CookieTestingProfile> profile_;
};
-
TEST_F(CookiesTreeModelTest, RemoveAll) {
net::CookieMonster* monster = profile_->GetCookieMonster();
monster->SetCookie(GURL("http://foo"), "A=1");
« no previous file with comments | « no previous file | chrome/browser/gtk/options/cookies_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698