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

Side by Side Diff: third_party/WebKit/Source/core/events/EventPathTest.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (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/events/EventPath.h" 5 #include "core/events/EventPath.h"
6 6
7 #include "core/HTMLNames.h" 7 #include "core/HTMLNames.h"
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/PseudoElement.h" 9 #include "core/dom/PseudoElement.h"
10 #include "core/style/ComputedStyleConstants.h" 10 #include "core/style/ComputedStyleConstants.h"
(...skipping 12 matching lines...) Expand all
23 OwnPtr<DummyPageHolder> m_dummyPageHolder; 23 OwnPtr<DummyPageHolder> m_dummyPageHolder;
24 }; 24 };
25 25
26 void EventPathTest::SetUp() 26 void EventPathTest::SetUp()
27 { 27 {
28 m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600)); 28 m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600));
29 } 29 }
30 30
31 TEST_F(EventPathTest, ShouldBeEmptyForPseudoElementWithoutParentElement) 31 TEST_F(EventPathTest, ShouldBeEmptyForPseudoElementWithoutParentElement)
32 { 32 {
33 RefPtrWillBeRawPtr<Element> div = document().createElement(HTMLNames::divTag , false); 33 RawPtr<Element> div = document().createElement(HTMLNames::divTag, false);
34 RefPtrWillBeRawPtr<PseudoElement> pseudo = PseudoElement::create(div.get(), PseudoIdFirstLetter); 34 RawPtr<PseudoElement> pseudo = PseudoElement::create(div.get(), PseudoIdFirs tLetter);
35 pseudo->dispose(); 35 pseudo->dispose();
36 EventPath eventPath(*pseudo); 36 EventPath eventPath(*pseudo);
37 EXPECT_TRUE(eventPath.isEmpty()); 37 EXPECT_TRUE(eventPath.isEmpty());
38 } 38 }
39 39
40 } // namespace blink 40 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/EventPath.cpp ('k') | third_party/WebKit/Source/core/events/EventQueue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698