Chromium Code Reviews| 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: |