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

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

Issue 411253011: Convert BeginWriteData...() 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual MojoResult WriteDataImplNoLock( 91 virtual MojoResult WriteDataImplNoLock(
92 const void* /*elements*/, 92 const void* /*elements*/,
93 uint32_t* /*num_bytes*/, 93 uint32_t* /*num_bytes*/,
94 MojoWriteDataFlags /*flags*/) OVERRIDE { 94 MojoWriteDataFlags /*flags*/) OVERRIDE {
95 info_->IncrementWriteDataCallCount(); 95 info_->IncrementWriteDataCallCount();
96 lock().AssertAcquired(); 96 lock().AssertAcquired();
97 return MOJO_RESULT_UNIMPLEMENTED; 97 return MOJO_RESULT_UNIMPLEMENTED;
98 } 98 }
99 99
100 virtual MojoResult BeginWriteDataImplNoLock( 100 virtual MojoResult BeginWriteDataImplNoLock(
101 void** /*buffer*/, 101 UserPointer<void*> /*buffer*/,
102 uint32_t* /*buffer_num_bytes*/, 102 UserPointer<uint32_t> /*buffer_num_bytes*/,
103 MojoWriteDataFlags /*flags*/) OVERRIDE { 103 MojoWriteDataFlags /*flags*/) OVERRIDE {
104 info_->IncrementBeginWriteDataCallCount(); 104 info_->IncrementBeginWriteDataCallCount();
105 lock().AssertAcquired(); 105 lock().AssertAcquired();
106 return MOJO_RESULT_UNIMPLEMENTED; 106 return MOJO_RESULT_UNIMPLEMENTED;
107 } 107 }
108 108
109 virtual MojoResult EndWriteDataImplNoLock( 109 virtual MojoResult EndWriteDataImplNoLock(
110 uint32_t /*num_bytes_written*/) OVERRIDE { 110 uint32_t /*num_bytes_written*/) OVERRIDE {
111 info_->IncrementEndWriteDataCallCount(); 111 info_->IncrementEndWriteDataCallCount();
112 lock().AssertAcquired(); 112 lock().AssertAcquired();
(...skipping 235 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