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

Side by Side Diff: services/view_manager/view_coordinate_conversions_unittest.cc

Issue 774473003: Move view_manager service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
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 "mojo/services/view_manager/server_view.h" 5 #include "services/view_manager/server_view.h"
6 #include "mojo/services/view_manager/server_view_delegate.h" 6 #include "services/view_manager/server_view_delegate.h"
7 #include "mojo/services/view_manager/view_coordinate_conversions.h" 7 #include "services/view_manager/view_coordinate_conversions.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/gfx/geometry/rect.h" 9 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/geometry/vector2d.h" 10 #include "ui/gfx/geometry/vector2d.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 namespace service { 13 namespace service {
14 namespace { 14 namespace {
15 15
16 class MockServerViewDelegate : public ServerViewDelegate { 16 class MockServerViewDelegate : public ServerViewDelegate {
17 public: 17 public:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 EXPECT_EQ(gfx::Rect(2, 1, 8, 9), 61 EXPECT_EQ(gfx::Rect(2, 1, 8, 9),
62 ConvertRectBetweenViews(&v1, &v3, gfx::Rect(10, 11, 8, 9))); 62 ConvertRectBetweenViews(&v1, &v3, gfx::Rect(10, 11, 8, 9)));
63 63
64 EXPECT_EQ(gfx::Rect(18, 21, 8, 9), 64 EXPECT_EQ(gfx::Rect(18, 21, 8, 9),
65 ConvertRectBetweenViews(&v3, &v1, gfx::Rect(10, 11, 8, 9))); 65 ConvertRectBetweenViews(&v3, &v1, gfx::Rect(10, 11, 8, 9)));
66 } 66 }
67 67
68 } // namespace service 68 } // namespace service
69 } // namespace mojo 69 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698