| 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 #ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 int embedded_worker_id, | 155 int embedded_worker_id, |
| 156 const IPC::Message& message); | 156 const IPC::Message& message); |
| 157 void OnActivateEventStub(int request_id); | 157 void OnActivateEventStub(int request_id); |
| 158 void OnExtendableMessageEventStub( | 158 void OnExtendableMessageEventStub( |
| 159 int request_id, | 159 int request_id, |
| 160 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); | 160 const ServiceWorkerMsg_ExtendableMessageEvent_Params& params); |
| 161 void OnInstallEventStub(int request_id); | 161 void OnInstallEventStub(int request_id); |
| 162 void OnFetchEventStub(int request_id, | 162 void OnFetchEventStub(int request_id, |
| 163 const ServiceWorkerFetchRequest& request); | 163 const ServiceWorkerFetchRequest& request); |
| 164 void OnPushEventStub(int request_id, const PushEventPayload& payload); | 164 void OnPushEventStub(int request_id, const PushEventPayload& payload); |
| 165 void OnSetupMojoStub( | 165 void OnSetupMojoStub(int thread_id, |
| 166 int thread_id, | 166 shell::mojom::InterfaceProviderRequest services, |
| 167 mojo::shell::mojom::InterfaceProviderRequest services, | 167 shell::mojom::InterfaceProviderPtr exposed_services); |
| 168 mojo::shell::mojom::InterfaceProviderPtr exposed_services); | |
| 169 | 168 |
| 170 MessagePortMessageFilter* NewMessagePortMessageFilter(); | 169 MessagePortMessageFilter* NewMessagePortMessageFilter(); |
| 171 | 170 |
| 172 std::unique_ptr<TestBrowserContext> browser_context_; | 171 std::unique_ptr<TestBrowserContext> browser_context_; |
| 173 std::unique_ptr<MockRenderProcessHost> render_process_host_; | 172 std::unique_ptr<MockRenderProcessHost> render_process_host_; |
| 174 | 173 |
| 175 scoped_refptr<ServiceWorkerContextWrapper> wrapper_; | 174 scoped_refptr<ServiceWorkerContextWrapper> wrapper_; |
| 176 | 175 |
| 177 IPC::TestSink sink_; | 176 IPC::TestSink sink_; |
| 178 IPC::TestSink inner_sink_; | 177 IPC::TestSink inner_sink_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 196 message_port_message_filters_; | 195 message_port_message_filters_; |
| 197 | 196 |
| 198 base::WeakPtrFactory<EmbeddedWorkerTestHelper> weak_factory_; | 197 base::WeakPtrFactory<EmbeddedWorkerTestHelper> weak_factory_; |
| 199 | 198 |
| 200 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerTestHelper); | 199 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerTestHelper); |
| 201 }; | 200 }; |
| 202 | 201 |
| 203 } // namespace content | 202 } // namespace content |
| 204 | 203 |
| 205 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_ | 204 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_ |
| OLD | NEW |