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

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

Issue 417113010: Convert ReadData...() to use the new user pointer handling (see r285350). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 return MOJO_RESULT_UNIMPLEMENTED; 101 return MOJO_RESULT_UNIMPLEMENTED;
102 } 102 }
103 103
104 virtual MojoResult EndWriteDataImplNoLock( 104 virtual MojoResult EndWriteDataImplNoLock(
105 uint32_t /*num_bytes_written*/) OVERRIDE { 105 uint32_t /*num_bytes_written*/) OVERRIDE {
106 info_->IncrementEndWriteDataCallCount(); 106 info_->IncrementEndWriteDataCallCount();
107 lock().AssertAcquired(); 107 lock().AssertAcquired();
108 return MOJO_RESULT_UNIMPLEMENTED; 108 return MOJO_RESULT_UNIMPLEMENTED;
109 } 109 }
110 110
111 virtual MojoResult ReadDataImplNoLock(void* /*elements*/, 111 virtual MojoResult ReadDataImplNoLock(UserPointer<void> /*elements*/,
112 uint32_t* /*num_bytes*/, 112 UserPointer<uint32_t> /*num_bytes*/,
113 MojoReadDataFlags /*flags*/) OVERRIDE { 113 MojoReadDataFlags /*flags*/) OVERRIDE {
114 info_->IncrementReadDataCallCount(); 114 info_->IncrementReadDataCallCount();
115 lock().AssertAcquired(); 115 lock().AssertAcquired();
116 return MOJO_RESULT_UNIMPLEMENTED; 116 return MOJO_RESULT_UNIMPLEMENTED;
117 } 117 }
118 118
119 virtual MojoResult BeginReadDataImplNoLock( 119 virtual MojoResult BeginReadDataImplNoLock(
120 UserPointer<const void*> /*buffer*/, 120 UserPointer<const void*> /*buffer*/,
121 UserPointer<uint32_t> /*buffer_num_bytes*/, 121 UserPointer<uint32_t> /*buffer_num_bytes*/,
122 MojoReadDataFlags /*flags*/) OVERRIDE { 122 MojoReadDataFlags /*flags*/) OVERRIDE {
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 } 343 }
344 344
345 void CoreTestBase_MockHandleInfo::IncrementCancelAllWaitersCallCount() { 345 void CoreTestBase_MockHandleInfo::IncrementCancelAllWaitersCallCount() {
346 base::AutoLock locker(lock_); 346 base::AutoLock locker(lock_);
347 cancel_all_waiters_call_count_++; 347 cancel_all_waiters_call_count_++;
348 } 348 }
349 349
350 } // namespace test 350 } // namespace test
351 } // namespace system 351 } // namespace system
352 } // namespace mojo 352 } // 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