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

Unified Diff: mojo/system/embedder/test_embedder.cc

Issue 203373004: Mojo: Move mojo/system/embedder to mojo/embedder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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/system/embedder/test_embedder.h ('k') | mojo/system/multiprocess_message_pipe_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/embedder/test_embedder.cc
diff --git a/mojo/system/embedder/test_embedder.cc b/mojo/system/embedder/test_embedder.cc
deleted file mode 100644
index 37c9e8b540dece8f37b657449f654a22873c80bf..0000000000000000000000000000000000000000
--- a/mojo/system/embedder/test_embedder.cc
+++ /dev/null
@@ -1,49 +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/system/embedder/test_embedder.h"
-
-#include "base/logging.h"
-#include "base/macros.h"
-#include "mojo/system/core_impl.h"
-
-namespace mojo {
-
-namespace system {
-namespace internal {
-
-bool ShutdownCheckNoLeaks(CoreImpl* core_impl) {
- // No point in taking the lock.
- if (core_impl->handle_table_.empty())
- return true;
-
- for (CoreImpl::HandleTableMap::const_iterator it =
- core_impl->handle_table_.begin();
- it != core_impl->handle_table_.end();
- ++it) {
- LOG(ERROR) << "Mojo embedder shutdown: Leaking handle " << (*it).first;
- }
- return false;
-}
-
-} // namespace internal
-} // namespace system
-
-namespace embedder {
-namespace test {
-
-bool Shutdown() {
- system::CoreImpl* core_impl = static_cast<system::CoreImpl*>(Core::Get());
- CHECK(core_impl);
- Core::Reset();
-
- bool rv = system::internal::ShutdownCheckNoLeaks(core_impl);
- delete core_impl;
- return rv;
-}
-
-} // namespace test
-} // namespace embedder
-
-} // namespace mojo
« no previous file with comments | « mojo/system/embedder/test_embedder.h ('k') | mojo/system/multiprocess_message_pipe_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698