| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "remoting/client/desktop_viewport.h" | 5 #include "remoting/client/ui/desktop_viewport.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 namespace remoting { | 12 namespace remoting { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 new_transformation.MapPoint({1.2f, 1.3f}); | 286 new_transformation.MapPoint({1.2f, 1.3f}); |
| 287 ASSERT_FLOAT_EQ(surface_point.x, new_surface_point.x); | 287 ASSERT_FLOAT_EQ(surface_point.x, new_surface_point.x); |
| 288 ASSERT_FLOAT_EQ(surface_point.y, new_surface_point.y); | 288 ASSERT_FLOAT_EQ(surface_point.y, new_surface_point.y); |
| 289 | 289 |
| 290 // Verify the scale is correct. | 290 // Verify the scale is correct. |
| 291 ASSERT_FLOAT_EQ(old_transformation.GetScale() * 1.1f, | 291 ASSERT_FLOAT_EQ(old_transformation.GetScale() * 1.1f, |
| 292 new_transformation.GetScale()); | 292 new_transformation.GetScale()); |
| 293 } | 293 } |
| 294 | 294 |
| 295 } // namespace remoting | 295 } // namespace remoting |
| OLD | NEW |