| OLD | NEW |
| 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 "content/browser/in_process_webkit/webkit_thread.h" | 5 #include "content/browser/in_process_webkit/webkit_thread.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 using content::BrowserThread; | 8 namespace content { |
| 9 | 9 |
| 10 TEST(WebKitThreadTest, DISABLED_ExposedInBrowserThread) { | 10 TEST(WebKitThreadTest, DISABLED_ExposedInBrowserThread) { |
| 11 int* null = NULL; // Help the template system out. | 11 int* null = NULL; // Help the template system out. |
| 12 EXPECT_FALSE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT, | 12 EXPECT_FALSE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT, |
| 13 FROM_HERE, null)); | 13 FROM_HERE, null)); |
| 14 { | 14 { |
| 15 WebKitThread thread; | 15 WebKitThread thread; |
| 16 EXPECT_FALSE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT, | 16 EXPECT_FALSE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT, |
| 17 FROM_HERE, null)); | 17 FROM_HERE, null)); |
| 18 thread.Initialize(); | 18 thread.Initialize(); |
| 19 EXPECT_TRUE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT, | 19 EXPECT_TRUE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT, |
| 20 FROM_HERE, null)); | 20 FROM_HERE, null)); |
| 21 } | 21 } |
| 22 EXPECT_FALSE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT, | 22 EXPECT_FALSE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT, |
| 23 FROM_HERE, null)); | 23 FROM_HERE, null)); |
| 24 } | 24 } |
| 25 |
| 26 } // namespace content |
| OLD | NEW |