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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/scoped_temp_dir.h" 9 #include "base/scoped_temp_dir.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "base/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "base/test/thread_test_helper.h" 12 #include "base/test/thread_test_helper.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" 14 #include "chrome/browser/net/sqlite_persistent_cookie_store.h"
15 #include "chrome/common/chrome_constants.h" 15 #include "chrome/common/chrome_constants.h"
16 #include "content/test/test_browser_thread.h" 16 #include "content/test/test_browser_thread.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 using content::BrowserThread;
21
20 class SQLitePersistentCookieStoreTest : public testing::Test { 22 class SQLitePersistentCookieStoreTest : public testing::Test {
21 public: 23 public:
22 SQLitePersistentCookieStoreTest() 24 SQLitePersistentCookieStoreTest()
23 : ui_thread_(BrowserThread::UI), 25 : ui_thread_(BrowserThread::UI),
24 db_thread_(BrowserThread::DB), 26 db_thread_(BrowserThread::DB),
25 io_thread_(BrowserThread::IO), 27 io_thread_(BrowserThread::IO),
26 loaded_event_(false, false), 28 loaded_event_(false, false),
27 key_loaded_event_(false, false), 29 key_loaded_event_(false, false),
28 db_thread_event_(false, false) { 30 db_thread_event_(false, false) {
29 } 31 }
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 293
292 store_->Flush(NewRunnableMethod(counter.get(), &CallbackCounter::Callback)); 294 store_->Flush(NewRunnableMethod(counter.get(), &CallbackCounter::Callback));
293 295
294 scoped_refptr<base::ThreadTestHelper> helper( 296 scoped_refptr<base::ThreadTestHelper> helper(
295 new base::ThreadTestHelper( 297 new base::ThreadTestHelper(
296 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB))); 298 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)));
297 ASSERT_TRUE(helper->Run()); 299 ASSERT_TRUE(helper->Run());
298 300
299 ASSERT_EQ(1, counter->callback_count()); 301 ASSERT_EQ(1, counter->callback_count());
300 } 302 }
OLDNEW
« no previous file with comments | « chrome/browser/net/sqlite_persistent_cookie_store_perftest.cc ('k') | chrome/browser/net/ssl_config_service_manager_pref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698