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 "content/browser/service_worker/embedded_worker_test_helper.h" | 5 #include "content/browser/service_worker/embedded_worker_test_helper.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "content/common/service_worker/embedded_worker_messages.h" | 22 #include "content/common/service_worker/embedded_worker_messages.h" |
23 #include "content/common/service_worker/embedded_worker_setup.mojom.h" | 23 #include "content/common/service_worker/embedded_worker_setup.mojom.h" |
24 #include "content/common/service_worker/embedded_worker_start_params.h" | 24 #include "content/common/service_worker/embedded_worker_start_params.h" |
25 #include "content/common/service_worker/fetch_event_dispatcher.mojom.h" | 25 #include "content/common/service_worker/fetch_event_dispatcher.mojom.h" |
26 #include "content/common/service_worker/service_worker_messages.h" | 26 #include "content/common/service_worker/service_worker_messages.h" |
27 #include "content/public/common/push_event_payload.h" | 27 #include "content/public/common/push_event_payload.h" |
28 #include "content/public/test/mock_render_process_host.h" | 28 #include "content/public/test/mock_render_process_host.h" |
29 #include "content/public/test/test_browser_context.h" | 29 #include "content/public/test/test_browser_context.h" |
30 #include "mojo/public/cpp/bindings/interface_request.h" | 30 #include "mojo/public/cpp/bindings/interface_request.h" |
31 #include "mojo/public/cpp/bindings/strong_binding.h" | 31 #include "mojo/public/cpp/bindings/strong_binding.h" |
32 #include "services/shell/public/cpp/interface_provider.h" | 32 #include "services/service_manager/public/cpp/interface_provider.h" |
33 #include "services/shell/public/cpp/interface_registry.h" | 33 #include "services/service_manager/public/cpp/interface_registry.h" |
34 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
35 | 35 |
36 namespace content { | 36 namespace content { |
37 | 37 |
38 namespace { | 38 namespace { |
39 | 39 |
40 class MockMessagePortMessageFilter : public MessagePortMessageFilter { | 40 class MockMessagePortMessageFilter : public MessagePortMessageFilter { |
41 public: | 41 public: |
42 MockMessagePortMessageFilter() | 42 MockMessagePortMessageFilter() |
43 : MessagePortMessageFilter( | 43 : MessagePortMessageFilter( |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 registry->Bind(mojo::GetProxy(&interfaces)); | 557 registry->Bind(mojo::GetProxy(&interfaces)); |
558 | 558 |
559 std::unique_ptr<shell::InterfaceProvider> remote_interfaces( | 559 std::unique_ptr<shell::InterfaceProvider> remote_interfaces( |
560 new shell::InterfaceProvider); | 560 new shell::InterfaceProvider); |
561 remote_interfaces->Bind(std::move(interfaces)); | 561 remote_interfaces->Bind(std::move(interfaces)); |
562 rph->SetRemoteInterfaces(std::move(remote_interfaces)); | 562 rph->SetRemoteInterfaces(std::move(remote_interfaces)); |
563 return registry; | 563 return registry; |
564 } | 564 } |
565 | 565 |
566 } // namespace content | 566 } // namespace content |
OLD | NEW |