summaryrefslogtreecommitdiffstats
path: root/content/browser/in_process_webkit/webkit_thread_unittest.cc
blob: 6662ed43bbce1151620f45afc9dba3268ca57c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/in_process_webkit/webkit_thread.h"
#include "testing/gtest/include/gtest/gtest.h"

using content::BrowserThread;

TEST(WebKitThreadTest, DISABLED_ExposedInBrowserThread) {
  int* null = NULL;  // Help the template system out.
  EXPECT_FALSE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT,
                                         FROM_HERE, null));
  {
    WebKitThread thread;
    EXPECT_FALSE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT,
                                           FROM_HERE, null));
    thread.Initialize();
    EXPECT_TRUE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT,
                                          FROM_HERE, null));
  }
  EXPECT_FALSE(BrowserThread::DeleteSoon(BrowserThread::WEBKIT,
                                         FROM_HERE, null));
}