| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |