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

Side by Side Diff: content/browser/in_process_webkit/webkit_thread_unittest.cc

Issue 8879013: Deprecate WEBKIT thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update after rebase Created 9 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 | 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 "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 namespace content { 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_DEPRECATED,
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_DEPRECATED,
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_DEPRECATED,
20 FROM_HERE, null)); 20 FROM_HERE, null));
21 } 21 }
22 EXPECT_FALSE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT, 22 EXPECT_FALSE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT_DEPRECATED,
23 FROM_HERE, null)); 23 FROM_HERE, null));
24 } 24 }
25 25
26 } // namespace content 26 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/webkit_thread.cc ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698