Index: third_party/mojo/src/mojo/edk/embedder/test_embedder.cc |
diff --git a/third_party/mojo/src/mojo/edk/embedder/test_embedder.cc b/third_party/mojo/src/mojo/edk/embedder/test_embedder.cc |
deleted file mode 100644 |
index 23e485eb2c71f081bbe12dbb7d7db0c2bb6c1f98..0000000000000000000000000000000000000000 |
--- a/third_party/mojo/src/mojo/edk/embedder/test_embedder.cc |
+++ /dev/null |
@@ -1,76 +0,0 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "third_party/mojo/src/mojo/edk/embedder/test_embedder.h" |
- |
-#include "base/logging.h" |
-#include "base/memory/scoped_ptr.h" |
-#include "third_party/mojo/src/mojo/edk/embedder/embedder.h" |
-#include "third_party/mojo/src/mojo/edk/embedder/embedder_internal.h" |
-#include "third_party/mojo/src/mojo/edk/embedder/platform_support.h" |
-#include "third_party/mojo/src/mojo/edk/system/channel_manager.h" |
-#include "third_party/mojo/src/mojo/edk/system/core.h" |
-#include "third_party/mojo/src/mojo/edk/system/handle_table.h" |
-#include "../../../../../../mojo/edk/system/core.h" |
-#include "../../../../../../mojo/edk/embedder/embedder_internal.h" |
-#include "../../../../../../mojo/edk/embedder/simple_platform_support.h" |
- |
-namespace mojo { |
- |
-namespace system { |
-namespace internal { |
- |
-bool ShutdownCheckNoLeaks(Core* core) { |
- // No point in taking the lock. |
- const HandleTable::HandleToEntryMap& handle_to_entry_map = |
- core->handle_table_.handle_to_entry_map_; |
- |
- if (handle_to_entry_map.empty()) |
- return true; |
- |
- for (HandleTable::HandleToEntryMap::const_iterator it = |
- handle_to_entry_map.begin(); |
- it != handle_to_entry_map.end(); ++it) { |
- LOG(ERROR) << "Mojo embedder shutdown: Leaking handle " << (*it).first; |
- } |
- return false; |
-} |
- |
-} // namespace internal |
-} // namespace system |
- |
-namespace embedder { |
-namespace test { |
- |
-bool Shutdown() { |
- // If |InitIPCSupport()| was called, then |ShutdownIPCSupport()| must have |
- // been called first. |
- CHECK(!internal::g_ipc_support); |
- |
- CHECK(internal::g_core); |
- bool rv = system::internal::ShutdownCheckNoLeaks(internal::g_core); |
- delete internal::g_core; |
- internal::g_core = nullptr; |
- |
- CHECK(internal::g_platform_support); |
- delete internal::g_platform_support; |
- internal::g_platform_support = nullptr; |
- |
- |
- // TODO(use_chrome_edk): temporary to match mojo::embedder::Init |
- CHECK(mojo::edk::internal::g_core); |
- delete mojo::edk::internal::g_core; |
- mojo::edk::internal::g_core = nullptr; |
- |
- CHECK(mojo::edk::internal::g_platform_support); |
- delete mojo::edk::internal::g_platform_support; |
- mojo::edk::internal::g_platform_support = nullptr; |
- |
- return rv; |
-} |
- |
-} // namespace test |
-} // namespace embedder |
- |
-} // namespace mojo |