Index: mojo/public/cpp/bindings/binding.h |
diff --git a/mojo/public/cpp/bindings/binding.h b/mojo/public/cpp/bindings/binding.h |
index ab1cab30819778c9f40266dc76f95a5d398e2c8b..d9859b5df5ad28da27a6accbf41ffe6274e06463 100644 |
--- a/mojo/public/cpp/bindings/binding.h |
+++ b/mojo/public/cpp/bindings/binding.h |
@@ -248,6 +248,12 @@ class Binding { |
return internal_state_.associated_group(); |
} |
+ // Sends a no-op 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(); } |
+ |
// Exposed for testing, should not generally be used. |
void EnableTestingMode() { internal_state_.EnableTestingMode(); } |