Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: content/browser/service_worker/embedded_worker_test_helper.h

Issue 2665583002: PaymentApp: Rename PaymentAppRequestData to PaymentAppRequest. (Closed)
Patch Set: PaymentApp: Rename PaymentAppRequestData to PaymentAppRequest. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 virtual void OnFetchEvent(int embedded_worker_id, 191 virtual void OnFetchEvent(int embedded_worker_id,
192 int fetch_event_id, 192 int fetch_event_id,
193 const ServiceWorkerFetchRequest& request, 193 const ServiceWorkerFetchRequest& request,
194 mojom::FetchEventPreloadHandlePtr preload_handle, 194 mojom::FetchEventPreloadHandlePtr preload_handle,
195 const FetchCallback& callback); 195 const FetchCallback& callback);
196 virtual void OnPushEvent( 196 virtual void OnPushEvent(
197 const PushEventPayload& payload, 197 const PushEventPayload& payload,
198 const mojom::ServiceWorkerEventDispatcher::DispatchPushEventCallback& 198 const mojom::ServiceWorkerEventDispatcher::DispatchPushEventCallback&
199 callback); 199 callback);
200 virtual void OnPaymentRequestEvent( 200 virtual void OnPaymentRequestEvent(
201 payments::mojom::PaymentAppRequestDataPtr data, 201 payments::mojom::PaymentAppRequestPtr data,
202 const mojom::ServiceWorkerEventDispatcher:: 202 const mojom::ServiceWorkerEventDispatcher::
203 DispatchPaymentRequestEventCallback& callback); 203 DispatchPaymentRequestEventCallback& callback);
204 204
205 // These functions simulate sending an EmbeddedHostMsg message through the 205 // These functions simulate sending an EmbeddedHostMsg message through the
206 // legacy IPC system to the browser. 206 // legacy IPC system to the browser.
207 void SimulateWorkerReadyForInspection(int embedded_worker_id); 207 void SimulateWorkerReadyForInspection(int embedded_worker_id);
208 void SimulateWorkerScriptCached(int embedded_worker_id); 208 void SimulateWorkerScriptCached(int embedded_worker_id);
209 void SimulateWorkerScriptLoaded(int embedded_worker_id); 209 void SimulateWorkerScriptLoaded(int embedded_worker_id);
210 void SimulateWorkerThreadStarted(int thread_id, int embedded_worker_id); 210 void SimulateWorkerThreadStarted(int thread_id, int embedded_worker_id);
211 void SimulateWorkerScriptEvaluated(int embedded_worker_id, bool success); 211 void SimulateWorkerScriptEvaluated(int embedded_worker_id, bool success);
(...skipping 23 matching lines...) Expand all
235 void OnFetchEventStub(int thread_id, 235 void OnFetchEventStub(int thread_id,
236 int fetch_event_id, 236 int fetch_event_id,
237 const ServiceWorkerFetchRequest& request, 237 const ServiceWorkerFetchRequest& request,
238 mojom::FetchEventPreloadHandlePtr preload_handle, 238 mojom::FetchEventPreloadHandlePtr preload_handle,
239 const FetchCallback& callback); 239 const FetchCallback& callback);
240 void OnPushEventStub( 240 void OnPushEventStub(
241 const PushEventPayload& payload, 241 const PushEventPayload& payload,
242 const mojom::ServiceWorkerEventDispatcher::DispatchPushEventCallback& 242 const mojom::ServiceWorkerEventDispatcher::DispatchPushEventCallback&
243 callback); 243 callback);
244 void OnPaymentRequestEventStub( 244 void OnPaymentRequestEventStub(
245 payments::mojom::PaymentAppRequestDataPtr data, 245 payments::mojom::PaymentAppRequestPtr data,
246 const mojom::ServiceWorkerEventDispatcher:: 246 const mojom::ServiceWorkerEventDispatcher::
247 DispatchPaymentRequestEventCallback& callback); 247 DispatchPaymentRequestEventCallback& callback);
248 248
249 MessagePortMessageFilter* NewMessagePortMessageFilter(); 249 MessagePortMessageFilter* NewMessagePortMessageFilter();
250 250
251 std::unique_ptr<service_manager::InterfaceRegistry> CreateInterfaceRegistry( 251 std::unique_ptr<service_manager::InterfaceRegistry> CreateInterfaceRegistry(
252 MockRenderProcessHost* rph); 252 MockRenderProcessHost* rph);
253 253
254 std::unique_ptr<TestBrowserContext> browser_context_; 254 std::unique_ptr<TestBrowserContext> browser_context_;
255 std::unique_ptr<MockRenderProcessHost> render_process_host_; 255 std::unique_ptr<MockRenderProcessHost> render_process_host_;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 std::unique_ptr<MockType> mock = 294 std::unique_ptr<MockType> mock =
295 base::MakeUnique<MockType>(std::forward<Args>(args)...); 295 base::MakeUnique<MockType>(std::forward<Args>(args)...);
296 MockType* mock_rawptr = mock.get(); 296 MockType* mock_rawptr = mock.get();
297 RegisterMockInstanceClient(std::move(mock)); 297 RegisterMockInstanceClient(std::move(mock));
298 return mock_rawptr; 298 return mock_rawptr;
299 } 299 }
300 300
301 } // namespace content 301 } // namespace content
302 302
303 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_ 303 #endif // CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698