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 "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "mojo/public/bindings/allocation_scope.h" | 6 #include "mojo/public/cpp/bindings/allocation_scope.h" |
7 #include "mojo/public/bindings/remote_ptr.h" | 7 #include "mojo/public/cpp/bindings/remote_ptr.h" |
8 #include "mojo/public/cpp/environment/environment.h" | 8 #include "mojo/public/cpp/environment/environment.h" |
9 #include "mojo/public/cpp/shell/application.h" | 9 #include "mojo/public/cpp/shell/application.h" |
10 #include "mojo/public/interfaces/shell/shell.mojom.h" | 10 #include "mojo/public/interfaces/shell/shell.mojom.h" |
11 #include "mojo/service_manager/service_loader.h" | 11 #include "mojo/service_manager/service_loader.h" |
12 #include "mojo/service_manager/service_manager.h" | 12 #include "mojo/service_manager/service_manager.h" |
13 #include "mojo/service_manager/test.mojom.h" | 13 #include "mojo/service_manager/test.mojom.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 namespace { | 17 namespace { |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 // http::test1 should go to default loader. | 186 // http::test1 should go to default loader. |
187 InterfacePipe<TestService, AnyInterface> pipe3; | 187 InterfacePipe<TestService, AnyInterface> pipe3; |
188 sm.Connect(GURL("http:test1"), pipe3.handle_to_peer.Pass()); | 188 sm.Connect(GURL("http:test1"), pipe3.handle_to_peer.Pass()); |
189 EXPECT_EQ(1, url_loader.num_loads()); | 189 EXPECT_EQ(1, url_loader.num_loads()); |
190 EXPECT_EQ(1, scheme_loader.num_loads()); | 190 EXPECT_EQ(1, scheme_loader.num_loads()); |
191 EXPECT_EQ(1, default_loader.num_loads()); | 191 EXPECT_EQ(1, default_loader.num_loads()); |
192 } | 192 } |
193 | 193 |
194 } // namespace mojo | 194 } // namespace mojo |
OLD | NEW |