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

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

Issue 1507903006: EDK: Remove mojo::platform::MessageLoopForIO and add PlatformHandleWatcher. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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
Index: mojo/edk/base_edk/test_message_loops.cc
diff --git a/mojo/edk/base_edk/test_message_loops.cc b/mojo/edk/base_edk/test_message_loops.cc
index 5c50aaa1fb7760321690baac912ef082b9cd4103..0fa12a7e53a637986bd47677e679ce99f7829b56 100644
--- a/mojo/edk/base_edk/test_message_loops.cc
+++ b/mojo/edk/base_edk/test_message_loops.cc
@@ -9,6 +9,8 @@
#include "mojo/edk/platform/test_message_loops.h"
+#include <utility>
+
#include "mojo/edk/base_edk/platform_message_loop_for_io_impl.h"
#include "mojo/edk/base_edk/platform_message_loop_impl.h"
#include "mojo/edk/util/make_unique.h"
@@ -23,8 +25,11 @@ std::unique_ptr<MessageLoop> CreateTestMessageLoop() {
return MakeUnique<base_edk::PlatformMessageLoopImpl>();
}
-std::unique_ptr<MessageLoopForIO> CreateTestMessageLoopForIO() {
- return MakeUnique<base_edk::PlatformMessageLoopForIOImpl>();
+std::unique_ptr<MessageLoop> CreateTestMessageLoopForIO(
+ PlatformHandleWatcher** platform_handle_watcher) {
+ auto rv = MakeUnique<base_edk::PlatformMessageLoopForIOImpl>();
+ *platform_handle_watcher = rv.get();
+ return std::move(rv);
}
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698