| Index: mojo/public/cpp/bindings/associated_interface_ptr.h
|
| diff --git a/mojo/public/cpp/bindings/associated_interface_ptr.h b/mojo/public/cpp/bindings/associated_interface_ptr.h
|
| index 10494cecb051173081dc540034029c2cfac17f99..e8e455ae3cc9e6df81099fc0c552d2c076a9f6f2 100644
|
| --- a/mojo/public/cpp/bindings/associated_interface_ptr.h
|
| +++ b/mojo/public/cpp/bindings/associated_interface_ptr.h
|
| @@ -107,6 +107,12 @@ class AssociatedInterfacePtr {
|
| internal_state_.RequireVersion(version);
|
| }
|
|
|
| + // Sends a message on the underlying message pipe and runs the current
|
| + // message loop until its response is received. This can be used in tests to
|
| + // verify that no message was sent on a message pipe in response to some
|
| + // stimulus.
|
| + void FlushForTesting() { internal_state_.FlushForTesting(); }
|
| +
|
| // Closes the associated interface (if any) and returns the pointer to the
|
| // unbound state.
|
| void reset() {
|
|
|