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

Side by Side Diff: content/renderer/pepper/pepper_graphics_2d_host_unittest.cc

Issue 392013005: [#1] Delete reduntdant 19 header files in ui/gfx (8 of 19 by this) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorted includes Created 6 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/pepper/pepper_graphics_2d_host.h" 5 #include "content/renderer/pepper/pepper_graphics_2d_host.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "content/renderer/pepper/gfx_conversion.h" 9 #include "content/renderer/pepper/gfx_conversion.h"
10 #include "content/renderer/pepper/mock_renderer_ppapi_host.h" 10 #include "content/renderer/pepper/mock_renderer_ppapi_host.h"
11 #include "content/renderer/pepper/ppb_image_data_impl.h" 11 #include "content/renderer/pepper/ppb_image_data_impl.h"
12 #include "ppapi/shared_impl/ppb_view_shared.h" 12 #include "ppapi/shared_impl/ppb_view_shared.h"
13 #include "ppapi/shared_impl/proxy_lock.h" 13 #include "ppapi/shared_impl/proxy_lock.h"
14 #include "ppapi/shared_impl/test_globals.h" 14 #include "ppapi/shared_impl/test_globals.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "third_party/WebKit/public/platform/WebCanvas.h" 16 #include "third_party/WebKit/public/platform/WebCanvas.h"
17 #include "third_party/skia/include/core/SkCanvas.h" 17 #include "third_party/skia/include/core/SkCanvas.h"
18 #include "ui/events/latency_info.h" 18 #include "ui/events/latency_info.h"
19 #include "ui/gfx/point.h" 19 #include "ui/gfx/geometry/point.h"
20 #include "ui/gfx/rect.h" 20 #include "ui/gfx/rect.h"
21 21
22 using blink::WebCanvas; 22 using blink::WebCanvas;
23 23
24 namespace content { 24 namespace content {
25 25
26 class PepperGraphics2DHostTest : public testing::Test { 26 class PepperGraphics2DHostTest : public testing::Test {
27 public: 27 public:
28 static bool ConvertToLogicalPixels(float scale, 28 static bool ConvertToLogicalPixels(float scale,
29 gfx::Rect* op_rect, 29 gfx::Rect* op_rect,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 EXPECT_EQ(delta, gfx::Point(tests[i].dx2, tests[i].dy2)); 159 EXPECT_EQ(delta, gfx::Point(tests[i].dx2, tests[i].dy2));
160 } 160 }
161 // Reverse the scale and ensure all the original pixels are still inside 161 // Reverse the scale and ensure all the original pixels are still inside
162 // the result. 162 // the result.
163 ConvertToLogicalPixels(1.0f / tests[i].scale, &r1, NULL); 163 ConvertToLogicalPixels(1.0f / tests[i].scale, &r1, NULL);
164 EXPECT_TRUE(r1.Contains(orig)); 164 EXPECT_TRUE(r1.Contains(orig));
165 } 165 }
166 } 166 }
167 167
168 } // namespace content 168 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698