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

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

Issue 1391243003: Move //mojo/services/X/public/... to //mojo/services/X/... (part 4). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_3-x-no_public_2-x-no_public_1
Patch Set: copyright header Created 5 years, 2 months 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
« no previous file with comments | « services/view_manager/view_manager_service_impl.cc ('k') | services/window_manager/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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 "mojo/converters/geometry/geometry_type_converters.h" 9 #include "mojo/converters/geometry/geometry_type_converters.h"
10 #include "mojo/public/interfaces/application/service_provider.mojom.h" 10 #include "mojo/public/interfaces/application/service_provider.mojom.h"
11 #include "mojo/services/view_manager/public/cpp/types.h" 11 #include "mojo/services/view_manager/cpp/types.h"
12 #include "mojo/services/view_manager/public/cpp/util.h" 12 #include "mojo/services/view_manager/cpp/util.h"
13 #include "mojo/services/view_manager/public/interfaces/view_manager.mojom.h" 13 #include "mojo/services/view_manager/interfaces/view_manager.mojom.h"
14 #include "mojo/services/window_manager/public/interfaces/window_manager.mojom.h" 14 #include "mojo/services/window_manager/interfaces/window_manager.mojom.h"
15 #include "mojo/services/window_manager/public/interfaces/window_manager_internal .mojom.h" 15 #include "mojo/services/window_manager/interfaces/window_manager_internal.mojom. h"
16 #include "services/view_manager/client_connection.h" 16 #include "services/view_manager/client_connection.h"
17 #include "services/view_manager/connection_manager.h" 17 #include "services/view_manager/connection_manager.h"
18 #include "services/view_manager/connection_manager_delegate.h" 18 #include "services/view_manager/connection_manager_delegate.h"
19 #include "services/view_manager/display_manager.h" 19 #include "services/view_manager/display_manager.h"
20 #include "services/view_manager/ids.h" 20 #include "services/view_manager/ids.h"
21 #include "services/view_manager/server_view.h" 21 #include "services/view_manager/server_view.h"
22 #include "services/view_manager/test_change_tracker.h" 22 #include "services/view_manager/test_change_tracker.h"
23 #include "services/view_manager/view_manager_service_impl.h" 23 #include "services/view_manager/view_manager_service_impl.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 #include "ui/gfx/geometry/rect.h" 25 #include "ui/gfx/geometry/rect.h"
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « services/view_manager/view_manager_service_impl.cc ('k') | services/window_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698