OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/test_embedder.h" | 5 #include "mojo/system/embedder/test_embedder.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "mojo/system/core_impl.h" | 8 #include "mojo/system/core_impl.h" |
9 | 9 |
10 namespace mojo { | 10 namespace mojo { |
11 namespace embedder { | 11 namespace embedder { |
12 namespace test { | 12 namespace test { |
13 | 13 |
14 void Shutdown() { | 14 void Shutdown() { |
15 system::CoreImpl* core_impl = static_cast<system::CoreImpl*>(Core::Get()); | 15 system::CoreImpl* core_impl = static_cast<system::CoreImpl*>(Core::Get()); |
16 CHECK(core_impl); | 16 CHECK(core_impl); |
17 Core::Reset(); | 17 Core::Reset(); |
18 | 18 |
19 // TODO(vtl): Check for leaks, etc. | 19 // TODO(vtl): Check for leaks, etc. |
20 | 20 |
21 delete core_impl; | 21 delete core_impl; |
22 } | 22 } |
23 | 23 |
24 } // namespace test | 24 } // namespace test |
25 } // namespace embedder | 25 } // namespace embedder |
26 } // namespace mojo | 26 } // namespace mojo |
OLD | NEW |