| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "mojo/public/tests/simple_bindings_support.h" | 5 #include "mojo/public/tests/bindings/simple_bindings_support.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 namespace mojo { | 11 namespace mojo { |
| 12 namespace test { | 12 namespace test { |
| 13 | 13 |
| 14 SimpleBindingsSupport::SimpleBindingsSupport() | 14 SimpleBindingsSupport::SimpleBindingsSupport() |
| 15 : buf_(NULL) { | 15 : buf_(NULL) { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 92 } |
| 93 | 93 |
| 94 bool SimpleBindingsSupport::IsReady(const Handle& handle, MojoWaitFlags flags, | 94 bool SimpleBindingsSupport::IsReady(const Handle& handle, MojoWaitFlags flags, |
| 95 MojoResult* result) { | 95 MojoResult* result) { |
| 96 *result = Wait(handle, flags, 0); | 96 *result = Wait(handle, flags, 0); |
| 97 return *result != MOJO_RESULT_DEADLINE_EXCEEDED; | 97 return *result != MOJO_RESULT_DEADLINE_EXCEEDED; |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace test | 100 } // namespace test |
| 101 } // namespace mojo | 101 } // namespace mojo |
| OLD | NEW |