OLD | NEW |
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 "config.h" | |
6 | |
7 #include "cc/test/layer_test_common.h" | 5 #include "cc/test/layer_test_common.h" |
8 | 6 |
9 #include "cc/draw_quad.h" | 7 #include "cc/draw_quad.h" |
10 #include "cc/math_util.h" | 8 #include "cc/math_util.h" |
11 #include "cc/region.h" | 9 #include "cc/region.h" |
12 #include "cc/render_pass.h" | 10 #include "cc/render_pass.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
15 #include "ui/gfx/point_conversions.h" | 13 #include "ui/gfx/point_conversions.h" |
16 #include "ui/gfx/rect_conversions.h" | 14 #include "ui/gfx/rect_conversions.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 48 |
51 EXPECT_TRUE(rect.Contains(quadRect)) << quadString << i; | 49 EXPECT_TRUE(rect.Contains(quadRect)) << quadString << i; |
52 EXPECT_TRUE(remaining.Contains(quadRect)) << quadString << i; | 50 EXPECT_TRUE(remaining.Contains(quadRect)) << quadString << i; |
53 remaining.Subtract(quadRect); | 51 remaining.Subtract(quadRect); |
54 } | 52 } |
55 | 53 |
56 EXPECT_TRUE(remaining.IsEmpty()); | 54 EXPECT_TRUE(remaining.IsEmpty()); |
57 } | 55 } |
58 | 56 |
59 } // namespace LayerTestCommon | 57 } // namespace LayerTestCommon |
OLD | NEW |