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/logging.h" | 9 #include "base/logging.h" |
10 #include "mojo/edk/system/configuration.h" | 10 #include "mojo/edk/system/configuration.h" |
11 #include "mojo/edk/system/core.h" | 11 #include "mojo/edk/system/core.h" |
12 #include "mojo/edk/system/dispatcher.h" | 12 #include "mojo/edk/system/dispatcher.h" |
13 #include "mojo/edk/system/memory.h" | 13 #include "mojo/edk/system/memory.h" |
14 #include "mojo/edk/util/ref_ptr.h" | 14 #include "mojo/edk/util/ref_ptr.h" |
15 #include "mojo/public/cpp/system/macros.h" | 15 #include "mojo/public/cpp/system/macros.h" |
16 | 16 |
| 17 using mojo::util::MutexLocker; |
17 using mojo::util::RefPtr; | 18 using mojo::util::RefPtr; |
18 | 19 |
19 namespace mojo { | 20 namespace mojo { |
20 namespace system { | 21 namespace system { |
21 namespace test { | 22 namespace test { |
22 | 23 |
23 namespace { | 24 namespace { |
24 | 25 |
25 // MockDispatcher -------------------------------------------------------------- | 26 // MockDispatcher -------------------------------------------------------------- |
26 | 27 |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 } | 378 } |
378 | 379 |
379 void CoreTestBase_MockHandleInfo::AwakableWasAdded(Awakable* awakable) { | 380 void CoreTestBase_MockHandleInfo::AwakableWasAdded(Awakable* awakable) { |
380 MutexLocker locker(&mutex_); | 381 MutexLocker locker(&mutex_); |
381 added_awakables_.push_back(awakable); | 382 added_awakables_.push_back(awakable); |
382 } | 383 } |
383 | 384 |
384 } // namespace test | 385 } // namespace test |
385 } // namespace system | 386 } // namespace system |
386 } // namespace mojo | 387 } // namespace mojo |
OLD | NEW |