| 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/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "mojo/public/cpp/bindings/allocation_scope.h" | 13 #include "mojo/public/cpp/bindings/allocation_scope.h" |
| 14 #include "mojo/public/cpp/environment/environment.h" | 14 #include "mojo/public/cpp/environment/environment.h" |
| 15 #include "mojo/public/cpp/shell/service.h" | 15 #include "mojo/public/cpp/shell/connect.h" |
| 16 #include "mojo/services/public/cpp/view_manager/util.h" | 16 #include "mojo/services/public/cpp/view_manager/util.h" |
| 17 #include "mojo/services/public/cpp/view_manager/view_manager_types.h" | 17 #include "mojo/services/public/cpp/view_manager/view_manager_types.h" |
| 18 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" | 18 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" |
| 19 #include "mojo/shell/shell_test_helper.h" | 19 #include "mojo/shell/shell_test_helper.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 21 |
| 22 namespace mojo { | 22 namespace mojo { |
| 23 namespace services { | 23 namespace services { |
| 24 namespace view_manager { | 24 namespace view_manager { |
| 25 | 25 |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 GetNodeTree(view_manager2_.get(), CreateNodeId(1, 1), &nodes); | 747 GetNodeTree(view_manager2_.get(), CreateNodeId(1, 1), &nodes); |
| 748 ASSERT_EQ(2u, nodes.size()); | 748 ASSERT_EQ(2u, nodes.size()); |
| 749 EXPECT_EQ("node=1,1 parent=0,1 view=null", nodes[0].ToString()); | 749 EXPECT_EQ("node=1,1 parent=0,1 view=null", nodes[0].ToString()); |
| 750 EXPECT_EQ("node=1,11 parent=1,1 view=1,51", nodes[1].ToString()); | 750 EXPECT_EQ("node=1,11 parent=1,1 view=1,51", nodes[1].ToString()); |
| 751 } | 751 } |
| 752 } | 752 } |
| 753 | 753 |
| 754 } // namespace view_manager | 754 } // namespace view_manager |
| 755 } // namespace services | 755 } // namespace services |
| 756 } // namespace mojo | 756 } // namespace mojo |
| OLD | NEW |