| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 void OnStopWorkerStub(int embedded_worker_id); | 148 void OnStopWorkerStub(int embedded_worker_id); |
| 149 void OnMessageToWorkerStub(int thread_id, | 149 void OnMessageToWorkerStub(int thread_id, |
| 150 int embedded_worker_id, | 150 int embedded_worker_id, |
| 151 const IPC::Message& message); | 151 const IPC::Message& message); |
| 152 void OnActivateEventStub(int request_id); | 152 void OnActivateEventStub(int request_id); |
| 153 void OnInstallEventStub(int request_id); | 153 void OnInstallEventStub(int request_id); |
| 154 void OnFetchEventStub(int request_id, | 154 void OnFetchEventStub(int request_id, |
| 155 const ServiceWorkerFetchRequest& request); | 155 const ServiceWorkerFetchRequest& request); |
| 156 void OnPushEventStub(int request_id, const PushEventPayload& payload); | 156 void OnPushEventStub(int request_id, const PushEventPayload& payload); |
| 157 void OnSetupMojoStub(int thread_id, | 157 void OnSetupMojoStub(int thread_id, |
| 158 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 158 mojo::InterfaceRequest<mojo::InterfaceProvider> services, |
| 159 mojo::ServiceProviderPtr exposed_services); | 159 mojo::InterfaceProviderPtr exposed_services); |
| 160 | 160 |
| 161 MessagePortMessageFilter* NewMessagePortMessageFilter(); | 161 MessagePortMessageFilter* NewMessagePortMessageFilter(); |
| 162 | 162 |
| 163 scoped_ptr<TestBrowserContext> browser_context_; | 163 scoped_ptr<TestBrowserContext> browser_context_; |
| 164 scoped_ptr<MockRenderProcessHost> render_process_host_; | 164 scoped_ptr<MockRenderProcessHost> render_process_host_; |
| 165 | 165 |
| 166 scoped_refptr<ServiceWorkerContextWrapper> wrapper_; | 166 scoped_refptr<ServiceWorkerContextWrapper> wrapper_; |
| 167 | 167 |
| 168 IPC::TestSink sink_; | 168 IPC::TestSink sink_; |
| 169 IPC::TestSink inner_sink_; | 169 IPC::TestSink inner_sink_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 187 message_port_message_filters_; | 187 message_port_message_filters_; |
| 188 | 188 |
| 189 base::WeakPtrFactory<EmbeddedWorkerTestHelper> weak_factory_; | 189 base::WeakPtrFactory<EmbeddedWorkerTestHelper> weak_factory_; |
| 190 | 190 |
| 191 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerTestHelper); | 191 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerTestHelper); |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 } // namespace content | 194 } // namespace content |
| 195 | 195 |
| 196 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_ | 196 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_ |
| OLD | NEW |