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

Side by Side Diff: mojo/services/view_manager/view_manager_connection_unittest.cc

Issue 275363002: Internalize ServiceConnector<> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OnConnectionEstablished() Created 6 years, 7 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 | Annotate | Revision Log
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/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 view_manager { 23 namespace view_manager {
24 namespace service { 24 namespace service {
25 25
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 GetNodeTree(view_manager2_.get(), CreateNodeId(1, 1), &nodes); 773 GetNodeTree(view_manager2_.get(), CreateNodeId(1, 1), &nodes);
774 ASSERT_EQ(2u, nodes.size()); 774 ASSERT_EQ(2u, nodes.size());
775 EXPECT_EQ("node=1,1 parent=0,1 view=null", nodes[0].ToString()); 775 EXPECT_EQ("node=1,1 parent=0,1 view=null", nodes[0].ToString());
776 EXPECT_EQ("node=1,11 parent=1,1 view=1,51", nodes[1].ToString()); 776 EXPECT_EQ("node=1,11 parent=1,1 view=1,51", nodes[1].ToString());
777 } 777 }
778 } 778 }
779 779
780 } // namespace service 780 } // namespace service
781 } // namespace view_manager 781 } // namespace view_manager
782 } // namespace mojo 782 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698