|
Add FlushForTesting to InterfacePtr and Binding.
Previously, when unit testing a class that is a client of a mojo
interface, there was no reliable way to detect that no message was sent.
This adds a FlushForTesting() method to mojo message pipe bindings,
which can be used to wait for a round trip, after which any messages
already sent will have been delivered; this can be used to test for the
absence of messages sent in response to some stimulus.
Committed: https://crrev.com/462458f4b533d44bfad95ea07dc99257eaf028cb
Cr-Commit-Position: refs/heads/master@{#415920}
Total comments: 2
Total comments: 14
Total comments: 20
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+646 lines, -203 lines) |
Patch |
|
M |
mojo/public/cpp/bindings/associated_binding.h
|
View
|
1
2
3
|
3 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/associated_interface_ptr.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/binding.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/binding_set.h
|
View
|
1
2
3
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/interface_endpoint_client.h
|
View
|
1
2
|
4 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/interface_ptr.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h
|
View
|
1
2
3
4
|
4 chunks |
+14 lines, -10 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/binding_state.h
|
View
|
1
2
|
6 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/binding_state.cc
|
View
|
1
2
3
|
6 chunks |
+18 lines, -4 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/control_message_handler.cc
|
View
|
1
2
3
4
|
4 chunks |
+46 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/control_message_proxy.h
|
View
|
1
2
3
|
2 chunks |
+12 lines, -2 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/control_message_proxy.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+57 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/interface_endpoint_client.cc
|
View
|
1
2
3
|
6 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/interface_ptr_state.h
|
View
|
1
2
3
4
|
7 chunks |
+28 lines, -21 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/router.h
|
View
|
1
2
|
4 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/router.cc
|
View
|
1
2
3
|
6 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/validation_util.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/lib/validation_util.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -32 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/strong_binding.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/tests/associated_interface_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+202 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/tests/binding_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+84 lines, -1 line |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+37 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/tests/multiplex_router_unittest.cc
|
View
|
1
2
3
|
6 chunks |
+19 lines, -45 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/bindings/tests/router_unittest.cc
|
View
|
1
2
3
|
5 chunks |
+12 lines, -38 lines |
0 comments
|
Download
|
|
M |
mojo/public/interfaces/bindings/interface_control_messages.mojom
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl
|
View
|
1
2
|
6 chunks |
+8 lines, -19 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/generators/cpp_templates/interface_proxy_declaration.tmpl
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/generators/cpp_templates/interface_stub_declaration.tmpl
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 76 (63 generated)
|