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

Side by Side Diff: cc/blink/web_layer_impl_fixed_bounds_unittest.cc

Issue 660333004: cc cleanup: Update paths to geometry headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 2 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 | « cc/blink/web_layer_impl_fixed_bounds.h ('k') | cc/debug/debug_rect_history.h » ('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 <vector> 5 #include <vector>
6 #include "cc/blink/web_layer_impl_fixed_bounds.h" 6 #include "cc/blink/web_layer_impl_fixed_bounds.h"
7 #include "cc/layers/picture_image_layer.h" 7 #include "cc/layers/picture_image_layer.h"
8 #include "cc/test/fake_layer_tree_host.h" 8 #include "cc/test/fake_layer_tree_host.h"
9 #include "cc/test/geometry_test_utils.h" 9 #include "cc/test/geometry_test_utils.h"
10 #include "cc/trees/layer_tree_host_common.h" 10 #include "cc/trees/layer_tree_host_common.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "third_party/WebKit/public/platform/WebFloatPoint.h" 12 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
13 #include "third_party/WebKit/public/platform/WebSize.h" 13 #include "third_party/WebKit/public/platform/WebSize.h"
14 #include "third_party/skia/include/utils/SkMatrix44.h" 14 #include "third_party/skia/include/utils/SkMatrix44.h"
15 #include "ui/gfx/point3_f.h" 15 #include "ui/gfx/geometry/point3_f.h"
16 16
17 using blink::WebFloatPoint; 17 using blink::WebFloatPoint;
18 using blink::WebSize; 18 using blink::WebSize;
19 19
20 namespace cc_blink { 20 namespace cc_blink {
21 namespace { 21 namespace {
22 22
23 TEST(WebLayerImplFixedBoundsTest, IdentityBounds) { 23 TEST(WebLayerImplFixedBoundsTest, IdentityBounds) {
24 scoped_ptr<WebLayerImplFixedBounds> layer(new WebLayerImplFixedBounds()); 24 scoped_ptr<WebLayerImplFixedBounds> layer(new WebLayerImplFixedBounds());
25 layer->SetFixedBounds(gfx::Size(100, 100)); 25 layer->SetFixedBounds(gfx::Size(100, 100));
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0, 0), transform); 171 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0, 0), transform);
172 172
173 // With non-zero anchor point, WebLayerImplFixedBounds will fall back to 173 // With non-zero anchor point, WebLayerImplFixedBounds will fall back to
174 // WebLayerImpl. 174 // WebLayerImpl.
175 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0.4f, 0.6f), transform); 175 CompareFixedBoundsLayerAndNormalLayer(WebFloatPoint(0.4f, 0.6f), transform);
176 } 176 }
177 177
178 } // namespace 178 } // namespace
179 } // namespace cc_blink 179 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl_fixed_bounds.h ('k') | cc/debug/debug_rect_history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698