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

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

Issue 2280483002: Add FlushForTesting to InterfacePtr and Binding. (Closed)
Patch Set: Created 4 years, 4 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
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..6acf04ce15826ccba601cc06c4a4301fde66244a 100644
--- a/mojo/public/cpp/bindings/binding_set.h
+++ b/mojo/public/cpp/bindings/binding_set.h
@@ -95,6 +95,13 @@ class BindingSet {
return dispatch_context_;
}
+ void FlushForTesting() {
+ for (auto& binding : bindings_) {
+ if (binding)
+ binding->FlushForTesting();
yzshen1 2016/08/29 23:24:58 I guess this won't work because bindings_ is a map
Sam McNally 2016/08/30 03:05:51 It worked just fine last week ;)
+ }
+ }
+
private:
friend class Entry;
@@ -113,6 +120,8 @@ class BindingSet {
&Entry::OnConnectionError, base::Unretained(this)));
}
+ void FlushForTesting() { binding_.FlushForTesting(); }
+
private:
class DispatchFilter : public MessageReceiver {
public:

Powered by Google App Engine
This is Rietveld 408576698