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 "mojo/shell/application_manager.h" | 5 #include "mojo/shell/application_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "mojo/application/public/cpp/application_connection.h" | |
16 #include "mojo/application/public/cpp/application_delegate.h" | |
17 #include "mojo/application/public/cpp/application_impl.h" | |
18 #include "mojo/application/public/cpp/interface_factory.h" | |
19 #include "mojo/application/public/interfaces/service_provider.mojom.h" | |
20 #include "mojo/public/cpp/bindings/strong_binding.h" | 15 #include "mojo/public/cpp/bindings/strong_binding.h" |
21 #include "mojo/shell/application_loader.h" | 16 #include "mojo/shell/application_loader.h" |
22 #include "mojo/shell/connect_util.h" | 17 #include "mojo/shell/connect_util.h" |
23 #include "mojo/shell/fetcher.h" | 18 #include "mojo/shell/fetcher.h" |
24 #include "mojo/shell/package_manager.h" | 19 #include "mojo/shell/package_manager.h" |
| 20 #include "mojo/shell/public/cpp/application_connection.h" |
| 21 #include "mojo/shell/public/cpp/application_delegate.h" |
| 22 #include "mojo/shell/public/cpp/application_impl.h" |
| 23 #include "mojo/shell/public/cpp/interface_factory.h" |
| 24 #include "mojo/shell/public/interfaces/service_provider.mojom.h" |
25 #include "mojo/shell/test.mojom.h" | 25 #include "mojo/shell/test.mojom.h" |
26 #include "mojo/shell/test_package_manager.h" | 26 #include "mojo/shell/test_package_manager.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 | 28 |
29 namespace mojo { | 29 namespace mojo { |
30 namespace shell { | 30 namespace shell { |
31 namespace test { | 31 namespace test { |
32 | 32 |
33 const char kTestURLString[] = "test:testService"; | 33 const char kTestURLString[] = "test:testService"; |
34 const char kTestAURLString[] = "test:TestA"; | 34 const char kTestAURLString[] = "test:TestA"; |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 | 626 |
627 // A different identity because the domain is different. | 627 // A different identity because the domain is different. |
628 ConnectToService(application_manager_.get(), | 628 ConnectToService(application_manager_.get(), |
629 GURL("http://www.another_domain.org/abc"), &test_service); | 629 GURL("http://www.another_domain.org/abc"), &test_service); |
630 EXPECT_EQ(4, test_loader_->num_loads()); | 630 EXPECT_EQ(4, test_loader_->num_loads()); |
631 } | 631 } |
632 | 632 |
633 } // namespace test | 633 } // namespace test |
634 } // namespace shell | 634 } // namespace shell |
635 } // namespace mojo | 635 } // namespace mojo |
OLD | NEW |