| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |