| Index: mojo/public/cpp/bindings/strong_binding.h
|
| diff --git a/mojo/public/cpp/bindings/strong_binding.h b/mojo/public/cpp/bindings/strong_binding.h
|
| index 8788479bab512af42847e0c460d86275688d9a61..0a022240f5f0adb359941d1a1b8696a1c36cd3cb 100644
|
| --- a/mojo/public/cpp/bindings/strong_binding.h
|
| +++ b/mojo/public/cpp/bindings/strong_binding.h
|
| @@ -114,6 +114,12 @@ class StrongBinding {
|
| delete binding_.impl();
|
| }
|
|
|
| + // 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() { binding_.FlushForTesting(); }
|
| +
|
| private:
|
| base::Closure connection_error_handler_;
|
| Binding<Interface> binding_;
|
|
|