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

Side by Side Diff: Source/web/tests/PinchViewportTest.cpp

Issue 499543002: Removing duplicate 'using namespace blink;' in platform and web (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/web/tests/PaintAggregatorTest.cpp ('k') | Source/web/tests/ProgrammaticScrollTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 6
7 #include "core/frame/PinchViewport.h" 7 #include "core/frame/PinchViewport.h"
8 8
9 #include "core/frame/FrameHost.h" 9 #include "core/frame/FrameHost.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #define EXPECT_FLOAT_RECT_EQ(expected, actual) \ 61 #define EXPECT_FLOAT_RECT_EQ(expected, actual) \
62 do { \ 62 do { \
63 EXPECT_FLOAT_EQ((expected).x(), (actual).x()); \ 63 EXPECT_FLOAT_EQ((expected).x(), (actual).x()); \
64 EXPECT_FLOAT_EQ((expected).y(), (actual).y()); \ 64 EXPECT_FLOAT_EQ((expected).y(), (actual).y()); \
65 EXPECT_FLOAT_EQ((expected).width(), (actual).width()); \ 65 EXPECT_FLOAT_EQ((expected).width(), (actual).width()); \
66 EXPECT_FLOAT_EQ((expected).height(), (actual).height()); \ 66 EXPECT_FLOAT_EQ((expected).height(), (actual).height()); \
67 } while (false) 67 } while (false)
68 68
69 69
70 using namespace blink; 70 using namespace blink;
71 using namespace blink;
72 71
73 using ::testing::_; 72 using ::testing::_;
74 using ::testing::PrintToString; 73 using ::testing::PrintToString;
75 using ::testing::Mock; 74 using ::testing::Mock;
76 75
77 namespace blink { 76 namespace blink {
78 ::std::ostream& operator<<(::std::ostream& os, const WebContextMenuData& data) 77 ::std::ostream& operator<<(::std::ostream& os, const WebContextMenuData& data)
79 { 78 {
80 return os << "Context menu location: [" 79 return os << "Context menu location: ["
81 << data.mousePosition.x << ", " << data.mousePosition.y << "]"; 80 << data.mousePosition.x << ", " << data.mousePosition.y << "]";
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 pinchViewport.scrollIntoView(FloatRect(50, 75, 50, 75)); 793 pinchViewport.scrollIntoView(FloatRect(50, 75, 50, 75));
795 EXPECT_POINT_EQ(IntPoint(50, 75), frame()->view()->scrollPosition()); 794 EXPECT_POINT_EQ(IntPoint(50, 75), frame()->view()->scrollPosition());
796 EXPECT_FLOAT_POINT_EQ(FloatPoint(), pinchViewport.visibleRect().location()); 795 EXPECT_FLOAT_POINT_EQ(FloatPoint(), pinchViewport.visibleRect().location());
797 796
798 pinchViewport.scrollIntoView(FloatRect(190, 290, 10, 10)); 797 pinchViewport.scrollIntoView(FloatRect(190, 290, 10, 10));
799 EXPECT_POINT_EQ(IntPoint(100, 150), frame()->view()->scrollPosition()); 798 EXPECT_POINT_EQ(IntPoint(100, 150), frame()->view()->scrollPosition());
800 EXPECT_FLOAT_POINT_EQ(FloatPoint(50, 75), pinchViewport.visibleRect().locati on()); 799 EXPECT_FLOAT_POINT_EQ(FloatPoint(50, 75), pinchViewport.visibleRect().locati on());
801 } 800 }
802 801
803 } // namespace 802 } // namespace
OLDNEW
« no previous file with comments | « Source/web/tests/PaintAggregatorTest.cpp ('k') | Source/web/tests/ProgrammaticScrollTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698