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

Side by Side Diff: services/view_manager/view_manager_service_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 <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/public/cpp/view_manager/types.h" 11 #include "mojo/services/public/cpp/view_manager/types.h"
12 #include "mojo/services/public/cpp/view_manager/util.h" 12 #include "mojo/services/public/cpp/view_manager/util.h"
13 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" 13 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
14 #include "mojo/services/public/interfaces/window_manager/window_manager.mojom.h" 14 #include "mojo/services/public/interfaces/window_manager/window_manager.mojom.h"
15 #include "mojo/services/public/interfaces/window_manager/window_manager_internal .mojom.h" 15 #include "mojo/services/public/interfaces/window_manager/window_manager_internal .mojom.h"
16 #include "mojo/services/view_manager/client_connection.h" 16 #include "services/view_manager/client_connection.h"
17 #include "mojo/services/view_manager/connection_manager.h" 17 #include "services/view_manager/connection_manager.h"
18 #include "mojo/services/view_manager/connection_manager_delegate.h" 18 #include "services/view_manager/connection_manager_delegate.h"
19 #include "mojo/services/view_manager/display_manager.h" 19 #include "services/view_manager/display_manager.h"
20 #include "mojo/services/view_manager/ids.h" 20 #include "services/view_manager/ids.h"
21 #include "mojo/services/view_manager/server_view.h" 21 #include "services/view_manager/server_view.h"
22 #include "mojo/services/view_manager/test_change_tracker.h" 22 #include "services/view_manager/test_change_tracker.h"
23 #include "mojo/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"
26 26
27 namespace mojo { 27 namespace mojo {
28 namespace service { 28 namespace service {
29 namespace { 29 namespace {
30 30
31 // ----------------------------------------------------------------------------- 31 // -----------------------------------------------------------------------------
32 32
33 // ViewManagerClient implementation that logs all calls to a TestChangeTracker. 33 // ViewManagerClient implementation that logs all calls to a TestChangeTracker.
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 ASSERT_TRUE(cloned_view); 431 ASSERT_TRUE(cloned_view);
432 // |cloned_view| should have a child and its child should have a child. 432 // |cloned_view| should have a child and its child should have a child.
433 ASSERT_EQ(1u, cloned_view->GetChildren().size()); 433 ASSERT_EQ(1u, cloned_view->GetChildren().size());
434 const ServerView* cloned_view_child = cloned_view->GetChildren()[0]; 434 const ServerView* cloned_view_child = cloned_view->GetChildren()[0];
435 EXPECT_EQ(1u, cloned_view_child->GetChildren().size()); 435 EXPECT_EQ(1u, cloned_view_child->GetChildren().size());
436 EXPECT_TRUE(cloned_view_child->id() == ClonedViewId()); 436 EXPECT_TRUE(cloned_view_child->id() == ClonedViewId());
437 } 437 }
438 438
439 } // namespace service 439 } // namespace service
440 } // namespace mojo 440 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698