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

Unified Diff: mojo/edk/base_edk/test_message_loop.cc

Issue 1469193002: EDK: Add a mojo::platform::MessageLoop abstraction. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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/edk/base_edk/platform_message_loop_impl_unittest.cc ('k') | mojo/edk/platform/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/base_edk/test_message_loop.cc
diff --git a/mojo/edk/base_edk/test_message_loop.cc b/mojo/edk/base_edk/test_message_loop.cc
new file mode 100644
index 0000000000000000000000000000000000000000..803c119597d79e756e0f0477c55c9246120d2c74
--- /dev/null
+++ b/mojo/edk/base_edk/test_message_loop.cc
@@ -0,0 +1,26 @@
+// Copyright 2015 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.
+
+// This file implements the factory functions declared in
+// //mojo/edk/platform/test_message_loop.h (using |mojo::platform::MessageLoop|s
+// based on //base, i.e., using |base_edk::PlatformMessageLoopImpl|).
+
+#include "mojo/edk/platform/test_message_loop.h"
+
+#include "mojo/edk/base_edk/platform_message_loop_impl.h"
+#include "mojo/edk/util/make_unique.h"
+
+using mojo::util::MakeUnique;
+
+namespace mojo {
+namespace platform {
+namespace test {
+
+std::unique_ptr<MessageLoop> CreateTestMessageLoop() {
+ return MakeUnique<base_edk::PlatformMessageLoopImpl>();
+}
+
+} // namespace test
+} // namespace platform
+} // namespace mojo
« no previous file with comments | « mojo/edk/base_edk/platform_message_loop_impl_unittest.cc ('k') | mojo/edk/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698