| 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/edk/system/core_test_base.h" | 5 #include "mojo/edk/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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 unsigned CoreTestBase_MockHandleInfo::GetRemoveAwakableCallCount() const { | 273 unsigned CoreTestBase_MockHandleInfo::GetRemoveAwakableCallCount() const { |
| 274 base::AutoLock locker(lock_); | 274 base::AutoLock locker(lock_); |
| 275 return remove_awakable_call_count_; | 275 return remove_awakable_call_count_; |
| 276 } | 276 } |
| 277 | 277 |
| 278 unsigned CoreTestBase_MockHandleInfo::GetCancelAllAwakablesCallCount() const { | 278 unsigned CoreTestBase_MockHandleInfo::GetCancelAllAwakablesCallCount() const { |
| 279 base::AutoLock locker(lock_); | 279 base::AutoLock locker(lock_); |
| 280 return cancel_all_awakables_call_count_; | 280 return cancel_all_awakables_call_count_; |
| 281 } | 281 } |
| 282 | 282 |
| 283 unsigned CoreTestBase_MockHandleInfo::GetAddedAwakableSize() const { | 283 size_t CoreTestBase_MockHandleInfo::GetAddedAwakableSize() const { |
| 284 base::AutoLock locker(lock_); | 284 base::AutoLock locker(lock_); |
| 285 return added_awakables_.size(); | 285 return added_awakables_.size(); |
| 286 } | 286 } |
| 287 | 287 |
| 288 Awakable* CoreTestBase_MockHandleInfo::GetAddedAwakableAt(unsigned i) const { | 288 Awakable* CoreTestBase_MockHandleInfo::GetAddedAwakableAt(unsigned i) const { |
| 289 base::AutoLock locker(lock_); | 289 base::AutoLock locker(lock_); |
| 290 return added_awakables_[i]; | 290 return added_awakables_[i]; |
| 291 } | 291 } |
| 292 | 292 |
| 293 void CoreTestBase_MockHandleInfo::IncrementCtorCallCount() { | 293 void CoreTestBase_MockHandleInfo::IncrementCtorCallCount() { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 } | 371 } |
| 372 | 372 |
| 373 void CoreTestBase_MockHandleInfo::AwakableWasAdded(Awakable* awakable) { | 373 void CoreTestBase_MockHandleInfo::AwakableWasAdded(Awakable* awakable) { |
| 374 base::AutoLock locker(lock_); | 374 base::AutoLock locker(lock_); |
| 375 added_awakables_.push_back(awakable); | 375 added_awakables_.push_back(awakable); |
| 376 } | 376 } |
| 377 | 377 |
| 378 } // namespace test | 378 } // namespace test |
| 379 } // namespace system | 379 } // namespace system |
| 380 } // namespace mojo | 380 } // namespace mojo |
| OLD | NEW |