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