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