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

Side by Side Diff: Source/core/html/parser/HTMLParserThreadTest.cpp

Issue 1171323003: Fix unit test style in core/{dom,editing,html}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: whitespace fix Created 5 years, 6 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "core/html/parser/HTMLParserThread.h" 6 #include "core/html/parser/HTMLParserThread.h"
7 7
8 #include <gtest/gtest.h> 8 #include <gtest/gtest.h>
9 9
10 namespace { 10 namespace blink {
11 11
12 using namespace blink; 12 TEST(HTMLParserThreadTest, Init)
13
14 TEST(HTMLParserThread, Init)
15 { 13 {
16 // The harness has already run init() for us, so tear down the parser first. 14 // The harness has already run init() for us, so tear down the parser first.
17 ASSERT_TRUE(HTMLParserThread::shared()); 15 ASSERT_TRUE(HTMLParserThread::shared());
18 HTMLParserThread::shutdown(); 16 HTMLParserThread::shutdown();
19 17
20 // Make sure starting the parser thread brings it back to life. 18 // Make sure starting the parser thread brings it back to life.
21 ASSERT_FALSE(HTMLParserThread::shared()); 19 ASSERT_FALSE(HTMLParserThread::shared());
22 HTMLParserThread::init(); 20 HTMLParserThread::init();
23 ASSERT_TRUE(HTMLParserThread::shared()); 21 ASSERT_TRUE(HTMLParserThread::shared());
24 } 22 }
25 23
26 } // namespace 24 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/forms/FileInputTypeTest.cpp ('k') | Source/core/html/parser/HTMLPreloadScannerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698