|
ServiceWorker: Introduce SWMessageSender in order to mock IPC messaging
This CL introduces ServiceWorkerMessageSender that is a thin wrapper
of ThreadSafeSender so that unittests can inject a mock sender, and
adds some unittests related to reference counting using the mock.
BUG= 452403
TEST=content_unittests --gtest_filter=ServiceWorkerDispatcherTest.*
Committed: https://crrev.com/4d44fa9f7fb3d97b916781a6051ed4dcc69c3668
Cr-Commit-Position: refs/heads/master@{#320885}
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+401 lines, -117 lines) |
Patch |
 |
M |
content/child/service_worker/service_worker_dispatcher.h
|
View
|
1
2
|
6 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/service_worker_dispatcher.cc
|
View
|
1
2
|
13 chunks |
+19 lines, -27 lines |
0 comments
|
Download
|
 |
A |
content/child/service_worker/service_worker_dispatcher_unittest.cc
|
View
|
|
1 chunk |
+217 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/service_worker_handle_reference.h
|
View
|
|
4 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/service_worker_handle_reference.cc
|
View
|
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/service_worker_message_filter.h
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/service_worker_message_filter.cc
|
View
|
1
|
8 chunks |
+14 lines, -18 lines |
0 comments
|
Download
|
 |
A |
content/child/service_worker/service_worker_message_sender.h
|
View
|
1
2
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/child/service_worker/service_worker_message_sender.cc
|
View
|
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/service_worker_provider_context.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/service_worker_provider_context.cc
|
View
|
1
|
5 chunks |
+14 lines, -16 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/service_worker_registration_handle_reference.h
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/service_worker_registration_handle_reference.cc
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/web_service_worker_impl.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/web_service_worker_impl.cc
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/web_service_worker_provider_impl.h
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/child/service_worker/web_service_worker_provider_impl.cc
|
View
|
1
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/child/service_worker/web_service_worker_registration_impl.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/common/service_worker/service_worker_types.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/content_child.gypi
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/content_tests.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/embedded_worker_context_client.h
|
View
|
1
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/embedded_worker_context_client.cc
|
View
|
1
|
5 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/service_worker/service_worker_script_context.cc
|
View
|
1
|
5 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
Total messages: 17 (6 generated)
|