Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Unified Diff: mojo/embedder/test_embedder.cc

Issue 621153003: Move mojo edk into mojo/edk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix checkdeps Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/embedder/test_embedder.h ('k') | mojo/go/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/embedder/test_embedder.cc
diff --git a/mojo/embedder/test_embedder.cc b/mojo/embedder/test_embedder.cc
deleted file mode 100644
index 6d93fef658dda5d5987ed0c440d399adf6df13ec..0000000000000000000000000000000000000000
--- a/mojo/embedder/test_embedder.cc
+++ /dev/null
@@ -1,61 +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 "mojo/embedder/test_embedder.h"
-
-#include "base/logging.h"
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "mojo/embedder/embedder.h"
-#include "mojo/embedder/simple_platform_support.h"
-#include "mojo/system/core.h"
-#include "mojo/system/entrypoints.h"
-#include "mojo/system/handle_table.h"
-
-namespace mojo {
-
-namespace system {
-namespace internal {
-
-bool ShutdownCheckNoLeaks(Core* core_impl) {
- // No point in taking the lock.
- const HandleTable::HandleToEntryMap& handle_to_entry_map =
- core_impl->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 {
-
-void InitWithSimplePlatformSupport() {
- Init(make_scoped_ptr(new SimplePlatformSupport()));
-}
-
-bool Shutdown() {
- system::Core* core = system::entrypoints::GetCore();
- CHECK(core);
- system::entrypoints::SetCore(nullptr);
-
- bool rv = system::internal::ShutdownCheckNoLeaks(core);
- delete core;
- return rv;
-}
-
-} // namespace test
-} // namespace embedder
-
-} // namespace mojo
« no previous file with comments | « mojo/embedder/test_embedder.h ('k') | mojo/go/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698