Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1582)

Unified Diff: mojo/public/cpp/bindings/binding_set.h

Issue 2280483002: Add FlushForTesting to InterfacePtr and Binding. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/cpp/bindings/binding.h ('k') | mojo/public/cpp/bindings/interface_endpoint_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/binding_set.h
diff --git a/mojo/public/cpp/bindings/binding_set.h b/mojo/public/cpp/bindings/binding_set.h
index dc66860b4e0d78fba19a3de4727f59bb6e235a59..69f17cc0f1cf1ecb0ec4e58e38d8952586e52511 100644
--- a/mojo/public/cpp/bindings/binding_set.h
+++ b/mojo/public/cpp/bindings/binding_set.h
@@ -95,6 +95,12 @@ class BindingSet {
return dispatch_context_;
}
+ void FlushForTesting() {
+ for (auto& binding : bindings_) {
+ binding.first->FlushForTesting();
+ }
+ }
+
private:
friend class Entry;
@@ -113,6 +119,8 @@ class BindingSet {
&Entry::OnConnectionError, base::Unretained(this)));
}
+ void FlushForTesting() { binding_.FlushForTesting(); }
+
private:
class DispatchFilter : public MessageReceiver {
public:
« no previous file with comments | « mojo/public/cpp/bindings/binding.h ('k') | mojo/public/cpp/bindings/interface_endpoint_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698