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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "components/view_manager/client_connection.h" | 9 #include "components/view_manager/client_connection.h" |
10 #include "components/view_manager/connection_manager.h" | 10 #include "components/view_manager/connection_manager.h" |
11 #include "components/view_manager/connection_manager_delegate.h" | 11 #include "components/view_manager/connection_manager_delegate.h" |
12 #include "components/view_manager/display_manager.h" | 12 #include "components/view_manager/display_manager.h" |
13 #include "components/view_manager/ids.h" | 13 #include "components/view_manager/ids.h" |
| 14 #include "components/view_manager/public/cpp/types.h" |
| 15 #include "components/view_manager/public/cpp/util.h" |
| 16 #include "components/view_manager/public/interfaces/view_manager.mojom.h" |
14 #include "components/view_manager/server_view.h" | 17 #include "components/view_manager/server_view.h" |
15 #include "components/view_manager/test_change_tracker.h" | 18 #include "components/view_manager/test_change_tracker.h" |
16 #include "components/view_manager/view_manager_service_impl.h" | 19 #include "components/view_manager/view_manager_service_impl.h" |
| 20 #include "components/window_manager/public/interfaces/window_manager.mojom.h" |
| 21 #include "components/window_manager/public/interfaces/window_manager_internal.mo
jom.h" |
17 #include "mojo/converters/geometry/geometry_type_converters.h" | 22 #include "mojo/converters/geometry/geometry_type_converters.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "third_party/mojo/src/mojo/public/interfaces/application/service_provid
er.mojom.h" | 24 #include "third_party/mojo/src/mojo/public/interfaces/application/service_provid
er.mojom.h" |
20 #include "third_party/mojo_services/src/view_manager/public/cpp/types.h" | |
21 #include "third_party/mojo_services/src/view_manager/public/cpp/util.h" | |
22 #include "third_party/mojo_services/src/view_manager/public/interfaces/view_mana
ger.mojom.h" | |
23 #include "third_party/mojo_services/src/window_manager/public/interfaces/window_
manager.mojom.h" | |
24 #include "third_party/mojo_services/src/window_manager/public/interfaces/window_
manager_internal.mojom.h" | |
25 #include "ui/gfx/geometry/rect.h" | 25 #include "ui/gfx/geometry/rect.h" |
26 | 26 |
27 using mojo::Array; | 27 using mojo::Array; |
28 using mojo::ERROR_CODE_NONE; | 28 using mojo::ERROR_CODE_NONE; |
29 using mojo::InterfaceRequest; | 29 using mojo::InterfaceRequest; |
30 using mojo::ServiceProvider; | 30 using mojo::ServiceProvider; |
31 using mojo::ServiceProviderPtr; | 31 using mojo::ServiceProviderPtr; |
32 using mojo::String; | 32 using mojo::String; |
33 using mojo::ViewDataPtr; | 33 using mojo::ViewDataPtr; |
34 | 34 |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 const ServerView* cloned_view = GetFirstCloned(v1->parent()); | 462 const ServerView* cloned_view = GetFirstCloned(v1->parent()); |
463 ASSERT_TRUE(cloned_view); | 463 ASSERT_TRUE(cloned_view); |
464 // |cloned_view| should have a child and its child should have a child. | 464 // |cloned_view| should have a child and its child should have a child. |
465 ASSERT_EQ(1u, cloned_view->GetChildren().size()); | 465 ASSERT_EQ(1u, cloned_view->GetChildren().size()); |
466 const ServerView* cloned_view_child = cloned_view->GetChildren()[0]; | 466 const ServerView* cloned_view_child = cloned_view->GetChildren()[0]; |
467 EXPECT_EQ(1u, cloned_view_child->GetChildren().size()); | 467 EXPECT_EQ(1u, cloned_view_child->GetChildren().size()); |
468 EXPECT_TRUE(cloned_view_child->id() == ClonedViewId()); | 468 EXPECT_TRUE(cloned_view_child->id() == ClonedViewId()); |
469 } | 469 } |
470 | 470 |
471 } // namespace view_manager | 471 } // namespace view_manager |
OLD | NEW |