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 "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "mojo/edk/system/configuration.h" | 11 #include "mojo/edk/system/configuration.h" |
12 #include "mojo/edk/system/core.h" | 12 #include "mojo/edk/system/core.h" |
13 #include "mojo/edk/system/dispatcher.h" | 13 #include "mojo/edk/system/dispatcher.h" |
14 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" | 14 #include "mojo/public/cpp/system/macros.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 namespace edk { | 17 namespace edk { |
18 namespace test { | 18 namespace test { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // MockDispatcher -------------------------------------------------------------- | 22 // MockDispatcher -------------------------------------------------------------- |
23 | 23 |
24 class MockDispatcher : public Dispatcher { | 24 class MockDispatcher : public Dispatcher { |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 } | 368 } |
369 | 369 |
370 void CoreTestBase_MockHandleInfo::AwakableWasAdded(Awakable* awakable) { | 370 void CoreTestBase_MockHandleInfo::AwakableWasAdded(Awakable* awakable) { |
371 base::AutoLock locker(lock_); | 371 base::AutoLock locker(lock_); |
372 added_awakables_.push_back(awakable); | 372 added_awakables_.push_back(awakable); |
373 } | 373 } |
374 | 374 |
375 } // namespace test | 375 } // namespace test |
376 } // namespace edk | 376 } // namespace edk |
377 } // namespace mojo | 377 } // namespace mojo |
OLD | NEW |