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

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

Issue 416203002: Convert BeginReadData...() to use the new user pointer handling (see r285350). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 5 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/data_pipe.h » ('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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 virtual MojoResult ReadDataImplNoLock(void* /*elements*/, 116 virtual MojoResult ReadDataImplNoLock(void* /*elements*/,
117 uint32_t* /*num_bytes*/, 117 uint32_t* /*num_bytes*/,
118 MojoReadDataFlags /*flags*/) OVERRIDE { 118 MojoReadDataFlags /*flags*/) OVERRIDE {
119 info_->IncrementReadDataCallCount(); 119 info_->IncrementReadDataCallCount();
120 lock().AssertAcquired(); 120 lock().AssertAcquired();
121 return MOJO_RESULT_UNIMPLEMENTED; 121 return MOJO_RESULT_UNIMPLEMENTED;
122 } 122 }
123 123
124 virtual MojoResult BeginReadDataImplNoLock( 124 virtual MojoResult BeginReadDataImplNoLock(
125 const void** /*buffer*/, 125 UserPointer<const void*> /*buffer*/,
126 uint32_t* /*buffer_num_bytes*/, 126 UserPointer<uint32_t> /*buffer_num_bytes*/,
127 MojoReadDataFlags /*flags*/) OVERRIDE { 127 MojoReadDataFlags /*flags*/) OVERRIDE {
128 info_->IncrementBeginReadDataCallCount(); 128 info_->IncrementBeginReadDataCallCount();
129 lock().AssertAcquired(); 129 lock().AssertAcquired();
130 return MOJO_RESULT_UNIMPLEMENTED; 130 return MOJO_RESULT_UNIMPLEMENTED;
131 } 131 }
132 132
133 virtual MojoResult EndReadDataImplNoLock( 133 virtual MojoResult EndReadDataImplNoLock(
134 uint32_t /*num_bytes_read*/) OVERRIDE { 134 uint32_t /*num_bytes_read*/) OVERRIDE {
135 info_->IncrementEndReadDataCallCount(); 135 info_->IncrementEndReadDataCallCount();
136 lock().AssertAcquired(); 136 lock().AssertAcquired();
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 } 348 }
349 349
350 void CoreTestBase_MockHandleInfo::IncrementCancelAllWaitersCallCount() { 350 void CoreTestBase_MockHandleInfo::IncrementCancelAllWaitersCallCount() {
351 base::AutoLock locker(lock_); 351 base::AutoLock locker(lock_);
352 cancel_all_waiters_call_count_++; 352 cancel_all_waiters_call_count_++;
353 } 353 }
354 354
355 } // namespace test 355 } // namespace test
356 } // namespace system 356 } // namespace system
357 } // namespace mojo 357 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/system/core.cc ('k') | mojo/system/data_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698