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

Unified Diff: mojo/system/test_embedder.cc

Issue 140403002: Mojo: Add the ability to hook up a channel to the embedder API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 6 years, 11 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/test_embedder.h ('k') | mojo/system/test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/test_embedder.cc
diff --git a/mojo/system/test_embedder.cc b/mojo/system/test_embedder.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ca0b53458852b7fdd364ba41e916ce4d38fe8626
--- /dev/null
+++ b/mojo/system/test_embedder.cc
@@ -0,0 +1,26 @@
+// 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/test_embedder.h"
+
+#include "base/logging.h"
+#include "mojo/system/core_impl.h"
+
+namespace mojo {
+namespace embedder {
+namespace test {
+
+void Shutdown() {
+ system::CoreImpl* core_impl = static_cast<system::CoreImpl*>(Core::Get());
+ CHECK(core_impl);
+ Core::Reset();
+
+ // TODO(vtl): Check for leaks, etc.
+
+ delete core_impl;
+}
+
+} // namespace test
+} // namespace embedder
+} // namespace mojo
« no previous file with comments | « mojo/system/test_embedder.h ('k') | mojo/system/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698