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

Side by Side Diff: chrome/browser/chrome_thread_unittest.cc

Issue 13052: Cleanup: move base/platform_test.h -> testing/ (Closed)
Patch Set: fix mark's comment Created 12 years 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
« no previous file with comments | « base/worker_pool_unittest.cc ('k') | chrome/browser/history/text_database_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <vector> 5 #include <vector>
6 6
7 #include "base/platform_test.h"
8 #include "chrome/browser/chrome_thread.h" 7 #include "chrome/browser/chrome_thread.h"
9 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "testing/platform_test.h"
10 10
11 typedef PlatformTest ChromeThreadTest; 11 typedef PlatformTest ChromeThreadTest;
12 12
13 TEST_F(ChromeThreadTest, Get) { 13 TEST_F(ChromeThreadTest, Get) {
14 scoped_ptr<ChromeThread> io_thread; 14 scoped_ptr<ChromeThread> io_thread;
15 scoped_ptr<ChromeThread> file_thread; 15 scoped_ptr<ChromeThread> file_thread;
16 scoped_ptr<ChromeThread> db_thread; 16 scoped_ptr<ChromeThread> db_thread;
17 scoped_ptr<ChromeThread> history_thread; 17 scoped_ptr<ChromeThread> history_thread;
18 18
19 EXPECT_TRUE(ChromeThread::GetMessageLoop(ChromeThread::IO) == NULL); 19 EXPECT_TRUE(ChromeThread::GetMessageLoop(ChromeThread::IO) == NULL);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 io_thread.reset(); 71 io_thread.reset();
72 file_thread.reset(); 72 file_thread.reset();
73 db_thread.reset(); 73 db_thread.reset();
74 history_thread.reset(); 74 history_thread.reset();
75 75
76 EXPECT_TRUE(ChromeThread::GetMessageLoop(ChromeThread::IO) == NULL); 76 EXPECT_TRUE(ChromeThread::GetMessageLoop(ChromeThread::IO) == NULL);
77 EXPECT_TRUE(ChromeThread::GetMessageLoop(ChromeThread::FILE) == NULL); 77 EXPECT_TRUE(ChromeThread::GetMessageLoop(ChromeThread::FILE) == NULL);
78 EXPECT_TRUE(ChromeThread::GetMessageLoop(ChromeThread::DB) == NULL); 78 EXPECT_TRUE(ChromeThread::GetMessageLoop(ChromeThread::DB) == NULL);
79 EXPECT_TRUE(ChromeThread::GetMessageLoop(ChromeThread::HISTORY) == NULL); 79 EXPECT_TRUE(ChromeThread::GetMessageLoop(ChromeThread::HISTORY) == NULL);
80 } 80 }
OLDNEW
« no previous file with comments | « base/worker_pool_unittest.cc ('k') | chrome/browser/history/text_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698