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