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