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

Side by Side Diff: mojo/public/tests/bindings/simple_bindings_support.cc

Issue 134823005: Mojo: re-organize public tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix common tests Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698