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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 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 |