| OLD | NEW |
| 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 "mojo/services/window_manager/view_target.h" | 5 #include "services/window_manager/view_target.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "mojo/services/public/cpp/view_manager/view.h" | 9 #include "mojo/services/public/cpp/view_manager/view.h" |
| 10 #include "mojo/services/window_manager/window_manager_test_util.h" | 10 #include "services/window_manager/window_manager_test_util.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 | 15 |
| 16 using ViewTargetTest = testing::Test; | 16 using ViewTargetTest = testing::Test; |
| 17 | 17 |
| 18 // V1 | 18 // V1 |
| 19 // +-- V2 | 19 // +-- V2 |
| 20 // +-- V3 | 20 // +-- V3 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 gfx::Point point1_in_t1_coords(25, 25); | 72 gfx::Point point1_in_t1_coords(25, 25); |
| 73 EXPECT_EQ(point1_in_t1_coords, point1_in_t3_coords); | 73 EXPECT_EQ(point1_in_t1_coords, point1_in_t3_coords); |
| 74 | 74 |
| 75 gfx::Point point2_in_t1_coords(5, 5); | 75 gfx::Point point2_in_t1_coords(5, 5); |
| 76 ViewTarget::ConvertPointToTarget(t1, t3, &point2_in_t1_coords); | 76 ViewTarget::ConvertPointToTarget(t1, t3, &point2_in_t1_coords); |
| 77 gfx::Point point2_in_t3_coords(-15, -15); | 77 gfx::Point point2_in_t3_coords(-15, -15); |
| 78 EXPECT_EQ(point2_in_t3_coords, point2_in_t1_coords); | 78 EXPECT_EQ(point2_in_t3_coords, point2_in_t1_coords); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace mojo | 81 } // namespace mojo |
| OLD | NEW |