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

Side by Side Diff: chrome/browser/sync/glue/browser_thread_model_worker_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/callback.h" 6 #include "base/callback.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/test/test_timeouts.h" 9 #include "base/test/test_timeouts.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 #include "base/timer.h" 11 #include "base/timer.h"
12 #include "chrome/browser/sync/glue/browser_thread_model_worker.h" 12 #include "chrome/browser/sync/glue/browser_thread_model_worker.h"
13 #include "chrome/browser/sync/util/unrecoverable_error_info.h" 13 #include "chrome/browser/sync/util/unrecoverable_error_info.h"
14 #include "content/test/test_browser_thread.h" 14 #include "content/test/test_browser_thread.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 using base::OneShotTimer; 17 using base::OneShotTimer;
18 using base::Thread; 18 using base::Thread;
19 using base::TimeDelta; 19 using base::TimeDelta;
20 using content::BrowserThread;
20 21
21 namespace browser_sync { 22 namespace browser_sync {
22 23
23 namespace { 24 namespace {
24 25
25 class BrowserThreadModelWorkerTest : public testing::Test { 26 class BrowserThreadModelWorkerTest : public testing::Test {
26 public: 27 public:
27 BrowserThreadModelWorkerTest() : 28 BrowserThreadModelWorkerTest() :
28 did_do_work_(false), 29 did_do_work_(false),
29 db_thread_(BrowserThread::DB), 30 db_thread_(BrowserThread::DB),
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 TEST_F(BrowserThreadModelWorkerTest, DoesWorkOnDatabaseThread) { 96 TEST_F(BrowserThreadModelWorkerTest, DoesWorkOnDatabaseThread) {
96 MessageLoop::current()->PostTask(FROM_HERE, factory()->NewRunnableMethod( 97 MessageLoop::current()->PostTask(FROM_HERE, factory()->NewRunnableMethod(
97 &BrowserThreadModelWorkerTest::ScheduleWork)); 98 &BrowserThreadModelWorkerTest::ScheduleWork));
98 MessageLoop::current()->Run(); 99 MessageLoop::current()->Run();
99 EXPECT_TRUE(did_do_work()); 100 EXPECT_TRUE(did_do_work());
100 } 101 }
101 102
102 } // namespace 103 } // namespace
103 104
104 } // namespace browser_sync 105 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/browser_thread_model_worker.cc ('k') | chrome/browser/sync/glue/data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698