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

Unified Diff: mojo/edk/platform/test_message_loop.h

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/platform/message_loop.h ('k') | mojo/tools/data/unittests » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/platform/test_message_loop.h
diff --git a/mojo/edk/platform/test_message_loop.h b/mojo/edk/platform/test_message_loop.h
new file mode 100644
index 0000000000000000000000000000000000000000..c6d1accca52806b71b10bdea8f5119ef3c9e6530
--- /dev/null
+++ b/mojo/edk/platform/test_message_loop.h
@@ -0,0 +1,27 @@
+// 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 declares a factory function (which must be implemented by the
+// embedder) for message loops to be used in tests.
+
+#ifndef MOJO_EDK_PLATFORM_TEST_MESSAGE_LOOP_H_
+#define MOJO_EDK_PLATFORM_TEST_MESSAGE_LOOP_H_
+
+#include <memory>
+
+#include "mojo/edk/platform/message_loop.h"
+
+namespace mojo {
+namespace platform {
+namespace test {
+
+// Creates a basic |platform::MessageLoop|, to be used by tests. This must be
+// implemented by the embedder (if building tests that require it).
+std::unique_ptr<MessageLoop> CreateTestMessageLoop();
+
+} // namespace test
+} // namespace platform
+} // namespace mojo
+
+#endif // MOJO_EDK_PLATFORM_TEST_MESSAGE_LOOP_H_
« no previous file with comments | « mojo/edk/platform/message_loop.h ('k') | mojo/tools/data/unittests » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698