| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stdint.h> | 5 #include <stdint.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/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 16 #include "mojo/application/public/cpp/application_connection.h" | |
| 17 #include "mojo/application/public/cpp/application_delegate.h" | |
| 18 #include "mojo/application/public/cpp/application_impl.h" | |
| 19 #include "mojo/application/public/cpp/interface_factory.h" | |
| 20 #include "mojo/application/public/interfaces/content_handler.mojom.h" | |
| 21 #include "mojo/application/public/interfaces/service_provider.mojom.h" | |
| 22 #include "mojo/public/cpp/bindings/strong_binding.h" | 16 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 23 #include "mojo/shell/application_loader.h" | 17 #include "mojo/shell/application_loader.h" |
| 24 #include "mojo/shell/application_manager.h" | 18 #include "mojo/shell/application_manager.h" |
| 25 #include "mojo/shell/connect_util.h" | 19 #include "mojo/shell/connect_util.h" |
| 26 #include "mojo/shell/fetcher.h" | 20 #include "mojo/shell/fetcher.h" |
| 27 #include "mojo/shell/package_manager/package_manager_impl.h" | 21 #include "mojo/shell/package_manager/package_manager_impl.h" |
| 22 #include "mojo/shell/public/cpp/application_connection.h" |
| 23 #include "mojo/shell/public/cpp/application_delegate.h" |
| 24 #include "mojo/shell/public/cpp/application_impl.h" |
| 25 #include "mojo/shell/public/cpp/interface_factory.h" |
| 26 #include "mojo/shell/public/interfaces/content_handler.mojom.h" |
| 27 #include "mojo/shell/public/interfaces/service_provider.mojom.h" |
| 28 #include "mojo/shell/test_package_manager.h" | 28 #include "mojo/shell/test_package_manager.h" |
| 29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
| 30 | 30 |
| 31 namespace mojo { | 31 namespace mojo { |
| 32 namespace shell { | 32 namespace shell { |
| 33 namespace test { | 33 namespace test { |
| 34 namespace { | 34 namespace { |
| 35 | 35 |
| 36 const char kTestMimeType[] = "test/mime-type"; | 36 const char kTestMimeType[] = "test/mime-type"; |
| 37 | 37 |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 params->SetTargetURL(GURL("test:test")); | 315 params->SetTargetURL(GURL("test:test")); |
| 316 params->set_connect_callback( | 316 params->set_connect_callback( |
| 317 [&content_handler_id](uint32_t t) { content_handler_id = t; }); | 317 [&content_handler_id](uint32_t t) { content_handler_id = t; }); |
| 318 application_manager_->ConnectToApplication(std::move(params)); | 318 application_manager_->ConnectToApplication(std::move(params)); |
| 319 EXPECT_EQ(0u, content_handler_id); | 319 EXPECT_EQ(0u, content_handler_id); |
| 320 } | 320 } |
| 321 | 321 |
| 322 } // namespace test | 322 } // namespace test |
| 323 } // namespace package_manager | 323 } // namespace package_manager |
| 324 } // namespace mojo | 324 } // namespace mojo |
| OLD | NEW |