OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ | 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ |
6 #define MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ | 6 #define MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 // Sends a no-op message on the underlying message pipe and runs the current | 264 // Sends a no-op message on the underlying message pipe and runs the current |
265 // message loop until its response is received. This can be used in tests to | 265 // message loop until its response is received. This can be used in tests to |
266 // verify that no message was sent on a message pipe in response to some | 266 // verify that no message was sent on a message pipe in response to some |
267 // stimulus. | 267 // stimulus. |
268 void FlushForTesting() { internal_state_.FlushForTesting(); } | 268 void FlushForTesting() { internal_state_.FlushForTesting(); } |
269 | 269 |
270 // Exposed for testing, should not generally be used. | 270 // Exposed for testing, should not generally be used. |
271 void EnableTestingMode() { internal_state_.EnableTestingMode(); } | 271 void EnableTestingMode() { internal_state_.EnableTestingMode(); } |
272 | 272 |
273 private: | 273 private: |
274 internal::BindingState<Interface, true> internal_state_; | 274 internal::BindingState<Interface, Interface::PassesAssociatedKinds_> |
| 275 internal_state_; |
275 | 276 |
276 DISALLOW_COPY_AND_ASSIGN(Binding); | 277 DISALLOW_COPY_AND_ASSIGN(Binding); |
277 }; | 278 }; |
278 | 279 |
279 } // namespace mojo | 280 } // namespace mojo |
280 | 281 |
281 #endif // MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ | 282 #endif // MOJO_PUBLIC_CPP_BINDINGS_BINDING_H_ |
OLD | NEW |