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

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

Issue 423583002: Convert WriteData...() 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 if (dispatchers) { 77 if (dispatchers) {
78 // Okay to leave an invalid dispatcher. 78 // Okay to leave an invalid dispatcher.
79 dispatchers->resize(1); 79 dispatchers->resize(1);
80 } 80 }
81 } 81 }
82 82
83 return MOJO_RESULT_OK; 83 return MOJO_RESULT_OK;
84 } 84 }
85 85
86 virtual MojoResult WriteDataImplNoLock( 86 virtual MojoResult WriteDataImplNoLock(
87 const void* /*elements*/, 87 UserPointer<const void> /*elements*/,
88 uint32_t* /*num_bytes*/, 88 UserPointer<uint32_t> /*num_bytes*/,
89 MojoWriteDataFlags /*flags*/) OVERRIDE { 89 MojoWriteDataFlags /*flags*/) OVERRIDE {
90 info_->IncrementWriteDataCallCount(); 90 info_->IncrementWriteDataCallCount();
91 lock().AssertAcquired(); 91 lock().AssertAcquired();
92 return MOJO_RESULT_UNIMPLEMENTED; 92 return MOJO_RESULT_UNIMPLEMENTED;
93 } 93 }
94 94
95 virtual MojoResult BeginWriteDataImplNoLock( 95 virtual MojoResult BeginWriteDataImplNoLock(
96 UserPointer<void*> /*buffer*/, 96 UserPointer<void*> /*buffer*/,
97 UserPointer<uint32_t> /*buffer_num_bytes*/, 97 UserPointer<uint32_t> /*buffer_num_bytes*/,
98 MojoWriteDataFlags /*flags*/) OVERRIDE { 98 MojoWriteDataFlags /*flags*/) OVERRIDE {
(...skipping 244 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