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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSLazyParsingTest.cpp

Issue 2580793005: Split the CSSParserContext class out of CSSParserMode into its own file. (Closed)
Patch Set: fix compile Created 3 years, 12 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/css/CSSStyleSheet.h" 5 #include "core/css/CSSStyleSheet.h"
6 #include "core/css/StyleRule.h" 6 #include "core/css/StyleRule.h"
7 #include "core/css/StyleSheetContents.h" 7 #include "core/css/StyleSheetContents.h"
8 #include "core/css/parser/CSSLazyParsingState.h" 8 #include "core/css/parser/CSSLazyParsingState.h"
9 #include "core/css/parser/CSSParser.h" 9 #include "core/css/parser/CSSParser.h"
10 #include "core/css/parser/CSSParserMode.h" 10 #include "core/css/parser/CSSParserContext.h"
11 #include "core/frame/FrameHost.h" 11 #include "core/frame/FrameHost.h"
12 #include "core/testing/DummyPageHolder.h" 12 #include "core/testing/DummyPageHolder.h"
13 #include "platform/heap/Heap.h" 13 #include "platform/heap/Heap.h"
14 #include "platform/testing/HistogramTester.h" 14 #include "platform/testing/HistogramTester.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "wtf/text/WTFString.h" 16 #include "wtf/text/WTFString.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class CSSLazyParsingTest : public testing::Test { 20 class CSSLazyParsingTest : public testing::Test {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Parsing the last rule bumps both Gt90 and All buckets. 210 // Parsing the last rule bumps both Gt90 and All buckets.
211 ruleAt(styleSheet, 4)->properties(); 211 ruleAt(styleSheet, 4)->properties();
212 m_histogramTester.expectTotalCount(metricName, 7); 212 m_histogramTester.expectTotalCount(metricName, 7);
213 m_histogramTester.expectBucketCount(metricName, 213 m_histogramTester.expectBucketCount(metricName,
214 CSSLazyParsingState::UsageGt90, 1); 214 CSSLazyParsingState::UsageGt90, 1);
215 m_histogramTester.expectBucketCount(metricName, CSSLazyParsingState::UsageAll, 215 m_histogramTester.expectBucketCount(metricName, CSSLazyParsingState::UsageAll,
216 1); 216 1);
217 } 217 }
218 218
219 } // namespace blink 219 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698