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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParserTest.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "core/html/parser/HTMLDocumentParser.h" 5 #include "core/html/parser/HTMLDocumentParser.h"
6 6
7 #include <memory>
7 #include "core/html/HTMLDocument.h" 8 #include "core/html/HTMLDocument.h"
8 #include "core/html/parser/TextResourceDecoder.h" 9 #include "core/html/parser/TextResourceDecoder.h"
9 #include "core/loader/PrerendererClient.h" 10 #include "core/loader/PrerendererClient.h"
10 #include "core/loader/TextResourceDecoderBuilder.h" 11 #include "core/loader/TextResourceDecoderBuilder.h"
11 #include "core/testing/DummyPageHolder.h" 12 #include "core/testing/DummyPageHolder.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 #include <memory>
14 14
15 namespace blink { 15 namespace blink {
16 16
17 namespace { 17 namespace {
18 18
19 class TestPrerendererClient : public GarbageCollected<TestPrerendererClient>, 19 class TestPrerendererClient : public GarbageCollected<TestPrerendererClient>,
20 public PrerendererClient { 20 public PrerendererClient {
21 USING_GARBAGE_COLLECTED_MIXIN(TestPrerendererClient); 21 USING_GARBAGE_COLLECTED_MIXIN(TestPrerendererClient);
22 22
23 public: 23 public:
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const char bytes[] = "<ht"; 77 const char bytes[] = "<ht";
78 parser->appendBytes(bytes, sizeof(bytes)); 78 parser->appendBytes(bytes, sizeof(bytes));
79 // The bytes are forwarded to the tokenizer. 79 // The bytes are forwarded to the tokenizer.
80 HTMLParserScriptRunnerHost* scriptRunnerHost = 80 HTMLParserScriptRunnerHost* scriptRunnerHost =
81 parser->asHTMLParserScriptRunnerHostForTesting(); 81 parser->asHTMLParserScriptRunnerHostForTesting();
82 EXPECT_FALSE(scriptRunnerHost->hasPreloadScanner()); 82 EXPECT_FALSE(scriptRunnerHost->hasPreloadScanner());
83 EXPECT_EQ(HTMLTokenizer::TagNameState, parser->tokenizer()->getState()); 83 EXPECT_EQ(HTMLTokenizer::TagNameState, parser->tokenizer()->getState());
84 } 84 }
85 85
86 } // namespace blink 86 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698