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

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversalTest.cpp

Issue 1866663002: Remove unnecessary includes from dom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/dom/shadow/FlatTreeTraversal.h" 5 #include "core/dom/shadow/FlatTreeTraversal.h"
6 6
7 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 7 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/Element.h" 9 #include "core/dom/Element.h"
10 #include "core/dom/Node.h" 10 #include "core/dom/Node.h"
11 #include "core/dom/NodeTraversal.h" 11 #include "core/dom/NodeTraversal.h"
12 #include "core/dom/shadow/ShadowRoot.h" 12 #include "core/dom/shadow/ShadowRoot.h"
13 #include "core/frame/FrameView.h" 13 #include "core/frame/FrameView.h"
14 #include "core/html/HTMLDocument.h" 14 #include "core/html/HTMLDocument.h"
15 #include "core/html/HTMLElement.h" 15 #include "core/html/HTMLElement.h"
16 #include "core/testing/DummyPageHolder.h" 16 #include "core/testing/DummyPageHolder.h"
17 #include "platform/geometry/IntSize.h" 17 #include "platform/geometry/IntSize.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "wtf/Compiler.h" 19 #include "wtf/Compiler.h"
20 #include "wtf/OwnPtr.h" 20 #include "wtf/OwnPtr.h"
21 #include "wtf/PassRefPtr.h"
22 #include "wtf/RefPtr.h"
23 #include "wtf/StdLibExtras.h" 21 #include "wtf/StdLibExtras.h"
24 #include "wtf/Vector.h" 22 #include "wtf/Vector.h"
25 23
26 namespace blink { 24 namespace blink {
27 25
28 class FlatTreeTraversalTest : public ::testing::Test { 26 class FlatTreeTraversalTest : public ::testing::Test {
29 protected: 27 protected:
30 HTMLDocument& document() const; 28 HTMLDocument& document() const;
31 29
32 // Sets |mainHTML| to BODY element with |innerHTML| property and attaches 30 // Sets |mainHTML| to BODY element with |innerHTML| property and attaches
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 562
565 EXPECT_EQ(d11.get(), FlatTreeTraversal::parent(*d111)); 563 EXPECT_EQ(d11.get(), FlatTreeTraversal::parent(*d111));
566 EXPECT_EQ(d11.get(), FlatTreeTraversal::parent(*d112)); 564 EXPECT_EQ(d11.get(), FlatTreeTraversal::parent(*d112));
567 EXPECT_EQ(d11.get(), FlatTreeTraversal::parent(*d2)); 565 EXPECT_EQ(d11.get(), FlatTreeTraversal::parent(*d2));
568 EXPECT_EQ(d11.get(), FlatTreeTraversal::parent(*d14)); 566 EXPECT_EQ(d11.get(), FlatTreeTraversal::parent(*d14));
569 EXPECT_EQ(nullptr, FlatTreeTraversal::parent(*d3)); 567 EXPECT_EQ(nullptr, FlatTreeTraversal::parent(*d3));
570 EXPECT_EQ(nullptr, FlatTreeTraversal::parent(*d4)); 568 EXPECT_EQ(nullptr, FlatTreeTraversal::parent(*d4));
571 } 569 }
572 570
573 } // namespace blink 571 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698