| 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/system/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::RefPtr; |
| 18 |
| 17 namespace mojo { | 19 namespace mojo { |
| 18 namespace system { | 20 namespace system { |
| 19 namespace test { | 21 namespace test { |
| 20 | 22 |
| 21 namespace { | 23 namespace { |
| 22 | 24 |
| 23 // MockDispatcher -------------------------------------------------------------- | 25 // MockDispatcher -------------------------------------------------------------- |
| 24 | 26 |
| 25 class MockDispatcher : public Dispatcher { | 27 class MockDispatcher : public Dispatcher { |
| 26 public: | 28 public: |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 } | 377 } |
| 376 | 378 |
| 377 void CoreTestBase_MockHandleInfo::AwakableWasAdded(Awakable* awakable) { | 379 void CoreTestBase_MockHandleInfo::AwakableWasAdded(Awakable* awakable) { |
| 378 MutexLocker locker(&mutex_); | 380 MutexLocker locker(&mutex_); |
| 379 added_awakables_.push_back(awakable); | 381 added_awakables_.push_back(awakable); |
| 380 } | 382 } |
| 381 | 383 |
| 382 } // namespace test | 384 } // namespace test |
| 383 } // namespace system | 385 } // namespace system |
| 384 } // namespace mojo | 386 } // namespace mojo |
| OLD | NEW |