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

Side by Side Diff: content/browser/net/sqlite_persistent_cookie_store_unittest.cc

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
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 "content/browser/net/sqlite_persistent_cookie_store.h" 5 #include "content/browser/net/sqlite_persistent_cookie_store.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void SetUp() OVERRIDE { 128 virtual void SetUp() OVERRIDE {
129 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 129 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
130 } 130 }
131 131
132 virtual void TearDown() OVERRIDE { 132 virtual void TearDown() OVERRIDE {
133 DestroyStore(); 133 DestroyStore();
134 pool_owner_->pool()->Shutdown(); 134 pool_owner_->pool()->Shutdown();
135 } 135 }
136 136
137 protected: 137 protected:
138 MessageLoop main_loop_; 138 base::MessageLoop main_loop_;
139 scoped_ptr<base::SequencedWorkerPoolOwner> pool_owner_; 139 scoped_ptr<base::SequencedWorkerPoolOwner> pool_owner_;
140 base::WaitableEvent loaded_event_; 140 base::WaitableEvent loaded_event_;
141 base::WaitableEvent key_loaded_event_; 141 base::WaitableEvent key_loaded_event_;
142 base::WaitableEvent db_thread_event_; 142 base::WaitableEvent db_thread_event_;
143 CanonicalCookieVector cookies_; 143 CanonicalCookieVector cookies_;
144 base::ScopedTempDir temp_dir_; 144 base::ScopedTempDir temp_dir_;
145 scoped_refptr<SQLitePersistentCookieStore> store_; 145 scoped_refptr<SQLitePersistentCookieStore> store_;
146 }; 146 };
147 147
148 TEST_F(SQLitePersistentCookieStoreTest, TestInvalidMetaTableRecovery) { 148 TEST_F(SQLitePersistentCookieStoreTest, TestInvalidMetaTableRecovery) {
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 EXPECT_EQ(net::COOKIE_PRIORITY_MEDIUM, cookie_map[kMediumName]->Priority()); 479 EXPECT_EQ(net::COOKIE_PRIORITY_MEDIUM, cookie_map[kMediumName]->Priority());
480 480
481 it = cookie_map.find(kHighName); 481 it = cookie_map.find(kHighName);
482 ASSERT_TRUE(it != cookie_map.end()); 482 ASSERT_TRUE(it != cookie_map.end());
483 EXPECT_EQ(net::COOKIE_PRIORITY_HIGH, cookie_map[kHighName]->Priority()); 483 EXPECT_EQ(net::COOKIE_PRIORITY_HIGH, cookie_map[kHighName]->Priority());
484 484
485 STLDeleteElements(&cookies); 485 STLDeleteElements(&cookies);
486 } 486 }
487 487
488 } // namespace content 488 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/webrtc_internals_unittest.cc ('k') | content/browser/net/view_http_cache_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698