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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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/paint/PaintLayerScrollableArea.h" 5 #include "core/paint/PaintLayerScrollableArea.h"
6 6
7 #include "core/frame/LocalFrameView.h" 7 #include "core/frame/LocalFrameView.h"
8 #include "core/layout/LayoutBoxModelObject.h" 8 #include "core/layout/LayoutBoxModelObject.h"
9 #include "core/layout/LayoutTestHelper.h" 9 #include "core/layout/LayoutTestHelper.h"
10 #include "core/paint/PaintLayer.h" 10 #include "core/paint/PaintLayer.h"
(...skipping 11 matching lines...) Expand all
22 class MockChromeClient : public EmptyChromeClient { 22 class MockChromeClient : public EmptyChromeClient {
23 public: 23 public:
24 MOCK_METHOD3(MockSetToolTip, void(LocalFrame*, const String&, TextDirection)); 24 MOCK_METHOD3(MockSetToolTip, void(LocalFrame*, const String&, TextDirection));
25 void SetToolTip(LocalFrame& frame, 25 void SetToolTip(LocalFrame& frame,
26 const String& tooltip_text, 26 const String& tooltip_text,
27 TextDirection dir) override { 27 TextDirection dir) override {
28 MockSetToolTip(&frame, tooltip_text, dir); 28 MockSetToolTip(&frame, tooltip_text, dir);
29 } 29 }
30 }; 30 };
31 31
32 } // namespace { 32 } // namespace
33 33
34 class PaintLayerScrollableAreaTest : public RenderingTest { 34 class PaintLayerScrollableAreaTest : public RenderingTest {
35 public: 35 public:
36 PaintLayerScrollableAreaTest() 36 PaintLayerScrollableAreaTest()
37 : RenderingTest(EmptyLocalFrameClient::Create()), 37 : RenderingTest(EmptyLocalFrameClient::Create()),
38 chrome_client_(new MockChromeClient) {} 38 chrome_client_(new MockChromeClient) {}
39 39
40 ~PaintLayerScrollableAreaTest() { 40 ~PaintLayerScrollableAreaTest() {
41 testing::Mock::VerifyAndClearExpectations(&GetChromeClient()); 41 testing::Mock::VerifyAndClearExpectations(&GetChromeClient());
42 } 42 }
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 " </div>" 617 " </div>"
618 "</div>"); 618 "</div>");
619 GetDocument().View()->UpdateAllLifecyclePhases(); 619 GetDocument().View()->UpdateAllLifecyclePhases();
620 Element* container = GetDocument().getElementById("container"); 620 Element* container = GetDocument().getElementById("container");
621 ASSERT_TRUE(container); 621 ASSERT_TRUE(container);
622 PaintLayerScrollableArea* scrollable_area = 622 PaintLayerScrollableArea* scrollable_area =
623 ToLayoutBoxModelObject(container->GetLayoutObject())->GetScrollableArea(); 623 ToLayoutBoxModelObject(container->GetLayoutObject())->GetScrollableArea();
624 ASSERT_TRUE(scrollable_area); 624 ASSERT_TRUE(scrollable_area);
625 EXPECT_FALSE(scrollable_area->HasHorizontalScrollbar()); 625 EXPECT_FALSE(scrollable_area->HasHorizontalScrollbar());
626 } 626 }
627 } 627 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698