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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 void OnStartWorkerStub(const EmbeddedWorkerMsg_StartWorker_Params& params); | 147 void OnStartWorkerStub(const EmbeddedWorkerMsg_StartWorker_Params& params); |
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( |
158 mojo::InterfaceRequest<mojo::InterfaceProvider> services, | 158 int thread_id, |
159 mojo::InterfaceProviderPtr exposed_services); | 159 mojo::shell::mojom::InterfaceProviderRequest services, |
| 160 mojo::shell::mojom::InterfaceProviderPtr exposed_services); |
160 | 161 |
161 MessagePortMessageFilter* NewMessagePortMessageFilter(); | 162 MessagePortMessageFilter* NewMessagePortMessageFilter(); |
162 | 163 |
163 scoped_ptr<TestBrowserContext> browser_context_; | 164 scoped_ptr<TestBrowserContext> browser_context_; |
164 scoped_ptr<MockRenderProcessHost> render_process_host_; | 165 scoped_ptr<MockRenderProcessHost> render_process_host_; |
165 | 166 |
166 scoped_refptr<ServiceWorkerContextWrapper> wrapper_; | 167 scoped_refptr<ServiceWorkerContextWrapper> wrapper_; |
167 | 168 |
168 IPC::TestSink sink_; | 169 IPC::TestSink sink_; |
169 IPC::TestSink inner_sink_; | 170 IPC::TestSink inner_sink_; |
(...skipping 17 matching lines...) Expand all Loading... |
187 message_port_message_filters_; | 188 message_port_message_filters_; |
188 | 189 |
189 base::WeakPtrFactory<EmbeddedWorkerTestHelper> weak_factory_; | 190 base::WeakPtrFactory<EmbeddedWorkerTestHelper> weak_factory_; |
190 | 191 |
191 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerTestHelper); | 192 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerTestHelper); |
192 }; | 193 }; |
193 | 194 |
194 } // namespace content | 195 } // namespace content |
195 | 196 |
196 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_ | 197 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_ |
OLD | NEW |