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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.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/css/resolver/SharedStyleFinder.h" 5 #include "core/css/resolver/SharedStyleFinder.h"
6 6
7 #include <memory>
7 #include "core/css/RuleFeature.h" 8 #include "core/css/RuleFeature.h"
8 #include "core/css/RuleSet.h" 9 #include "core/css/RuleSet.h"
9 #include "core/css/parser/CSSParser.h" 10 #include "core/css/parser/CSSParser.h"
10 #include "core/css/parser/CSSParserContext.h" 11 #include "core/css/parser/CSSParserContext.h"
11 #include "core/dom/Document.h" 12 #include "core/dom/Document.h"
12 #include "core/dom/shadow/ShadowRoot.h" 13 #include "core/dom/shadow/ShadowRoot.h"
13 #include "core/dom/shadow/ShadowRootInit.h" 14 #include "core/dom/shadow/ShadowRootInit.h"
14 #include "core/frame/FrameView.h" 15 #include "core/frame/FrameView.h"
15 #include "core/html/HTMLElement.h" 16 #include "core/html/HTMLElement.h"
16 #include "core/testing/DummyPageHolder.h" 17 #include "core/testing/DummyPageHolder.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 #include <memory>
19 19
20 namespace blink { 20 namespace blink {
21 21
22 class SharedStyleFinderTest : public ::testing::Test { 22 class SharedStyleFinderTest : public ::testing::Test {
23 protected: 23 protected:
24 SharedStyleFinderTest() = default; 24 SharedStyleFinderTest() = default;
25 ~SharedStyleFinderTest() override = default; 25 ~SharedStyleFinderTest() override = default;
26 26
27 Document& document() { return m_dummyPageHolder->document(); } 27 Document& document() { return m_dummyPageHolder->document(); }
28 28
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 Element* b = document().getElementById("b"); 208 Element* b = document().getElementById("b");
209 209
210 EXPECT_TRUE(a->assignedSlot()); 210 EXPECT_TRUE(a->assignedSlot());
211 EXPECT_TRUE(b->assignedSlot()); 211 EXPECT_TRUE(b->assignedSlot());
212 212
213 EXPECT_FALSE(matchesUncommonAttributeRuleSet(*a)); 213 EXPECT_FALSE(matchesUncommonAttributeRuleSet(*a));
214 EXPECT_TRUE(matchesUncommonAttributeRuleSet(*b)); 214 EXPECT_TRUE(matchesUncommonAttributeRuleSet(*b));
215 } 215 }
216 216
217 } // namespace blink 217 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698