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

Unified Diff: mojo/edk/system/ipc_support_unittest.cc

Issue 1525883002: EDK: Add PlatformHandleWatcher to IPCSupport class. (Closed) Base URL: https://github.com/domokit/mojo.git@embedder_watcher
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
« no previous file with comments | « mojo/edk/system/ipc_support.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/ipc_support_unittest.cc
diff --git a/mojo/edk/system/ipc_support_unittest.cc b/mojo/edk/system/ipc_support_unittest.cc
index 1ba87078450f6041540c9ac16fbb9578352eb75e..e0757ac692dd38fa8fb1835d37a711fa6acd64a1 100644
--- a/mojo/edk/system/ipc_support_unittest.cc
+++ b/mojo/edk/system/ipc_support_unittest.cc
@@ -231,6 +231,7 @@ class TestSlave {
test_io_thread->task_runner().Clone(),
&slave_process_delegate_,
test_io_thread->task_runner().Clone(),
+ test_io_thread->platform_handle_watcher(),
platform_handle.Pass()) {}
~TestSlave() {}
@@ -368,6 +369,7 @@ class IPCSupportTest : public testing::Test {
test_io_thread_.task_runner().Clone(),
&master_process_delegate_,
test_io_thread_.task_runner().Clone(),
+ test_io_thread_.platform_handle_watcher(),
ScopedPlatformHandle()) {}
~IPCSupportTest() override {}
@@ -587,7 +589,9 @@ TEST_F(IPCSupportTest, MasterSlaveInternal) {
IPCSupport slave_ipc_support(
&platform_support(), embedder::ProcessType::SLAVE,
test_io_thread().task_runner().Clone(), &slave_process_delegate,
- test_io_thread().task_runner().Clone(), channel_pair.PassClientHandle());
+ test_io_thread().task_runner().Clone(),
+ test_io_thread().platform_handle_watcher(),
+ channel_pair.PassClientHandle());
ScopedPlatformHandle slave_second_platform_handle =
slave_ipc_support.ConnectToMasterInternal(connection_id);
@@ -674,7 +678,8 @@ MOJO_MULTIPROCESS_TEST_CHILD_TEST(MultiprocessMasterSlaveInternal) {
IPCSupport ipc_support(
&platform_support, embedder::ProcessType::SLAVE,
test_io_thread.task_runner().Clone(), &slave_process_delegate,
- test_io_thread.task_runner().Clone(), client_platform_handle.Pass());
+ test_io_thread.task_runner().Clone(),
+ test_io_thread.platform_handle_watcher(), client_platform_handle.Pass());
std::string connection_id_string;
ASSERT_TRUE(test::GetTestCommandLine()->GetOptionValue(
« no previous file with comments | « mojo/edk/system/ipc_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698