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

Side by Side Diff: mojo/system/core_test_base.cc

Issue 345463003: Mojo: MojoWaitFlags -> MojoHandleSignals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « mojo/system/core.cc ('k') | mojo/system/core_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/system/core_test_base.h" 5 #include "mojo/system/core_test_base.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 123 }
124 124
125 virtual MojoResult EndReadDataImplNoLock( 125 virtual MojoResult EndReadDataImplNoLock(
126 uint32_t /*num_bytes_read*/) OVERRIDE { 126 uint32_t /*num_bytes_read*/) OVERRIDE {
127 info_->IncrementEndReadDataCallCount(); 127 info_->IncrementEndReadDataCallCount();
128 lock().AssertAcquired(); 128 lock().AssertAcquired();
129 return MOJO_RESULT_UNIMPLEMENTED; 129 return MOJO_RESULT_UNIMPLEMENTED;
130 } 130 }
131 131
132 virtual MojoResult AddWaiterImplNoLock(Waiter* /*waiter*/, 132 virtual MojoResult AddWaiterImplNoLock(Waiter* /*waiter*/,
133 MojoWaitFlags /*flags*/, 133 MojoHandleSignals /*signals*/,
134 uint32_t /*context*/) OVERRIDE { 134 uint32_t /*context*/) OVERRIDE {
135 info_->IncrementAddWaiterCallCount(); 135 info_->IncrementAddWaiterCallCount();
136 lock().AssertAcquired(); 136 lock().AssertAcquired();
137 return MOJO_RESULT_FAILED_PRECONDITION; 137 return MOJO_RESULT_FAILED_PRECONDITION;
138 } 138 }
139 139
140 virtual void RemoveWaiterImplNoLock(Waiter* /*waiter*/) OVERRIDE { 140 virtual void RemoveWaiterImplNoLock(Waiter* /*waiter*/) OVERRIDE {
141 info_->IncrementRemoveWaiterCallCount(); 141 info_->IncrementRemoveWaiterCallCount();
142 lock().AssertAcquired(); 142 lock().AssertAcquired();
143 } 143 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 } 340 }
341 341
342 void CoreTestBase_MockHandleInfo::IncrementCancelAllWaitersCallCount() { 342 void CoreTestBase_MockHandleInfo::IncrementCancelAllWaitersCallCount() {
343 base::AutoLock locker(lock_); 343 base::AutoLock locker(lock_);
344 cancel_all_waiters_call_count_++; 344 cancel_all_waiters_call_count_++;
345 } 345 }
346 346
347 } // namespace test 347 } // namespace test
348 } // namespace system 348 } // namespace system
349 } // namespace mojo 349 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/system/core.cc ('k') | mojo/system/core_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698