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

Side by Side Diff: cc/layers/contents_scaling_layer_unittest.cc

Issue 12603013: Part 10 of cc/ directory shuffles: layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/contents_scaling_layer.cc ('k') | cc/layers/delegated_renderer_layer.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/contents_scaling_layer.h" 5 #include "cc/layers/contents_scaling_layer.h"
6 6
7 #include "cc/test/geometry_test_utils.h" 7 #include "cc/test/geometry_test_utils.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace cc { 10 namespace cc {
11 namespace { 11 namespace {
12 12
13 class MockContentsScalingLayer : public ContentsScalingLayer { 13 class MockContentsScalingLayer : public ContentsScalingLayer {
14 public: 14 public:
15 MockContentsScalingLayer() 15 MockContentsScalingLayer()
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 EXPECT_EQ(20, test_layer->content_bounds().width()); 79 EXPECT_EQ(20, test_layer->content_bounds().width());
80 EXPECT_EQ(40, test_layer->content_bounds().height()); 80 EXPECT_EQ(40, test_layer->content_bounds().height());
81 81
82 CalcDrawProps(root, 1.33f); 82 CalcDrawProps(root, 1.33f);
83 EXPECT_EQ(14, test_layer->content_bounds().width()); 83 EXPECT_EQ(14, test_layer->content_bounds().width());
84 EXPECT_EQ(27, test_layer->content_bounds().height()); 84 EXPECT_EQ(27, test_layer->content_bounds().height());
85 } 85 }
86 86
87 } // namespace 87 } // namespace
88 } // namespace cc 88 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/contents_scaling_layer.cc ('k') | cc/layers/delegated_renderer_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698