| Index: mojo/edk/system/endpoint_relayer_unittest.cc
|
| diff --git a/mojo/edk/system/endpoint_relayer_unittest.cc b/mojo/edk/system/endpoint_relayer_unittest.cc
|
| index 5a4f813ec9fe0f089fca07dbb25852aee2c35ca0..57c3d9a7016943c9f9373b7b3cc701f5f38938f4 100644
|
| --- a/mojo/edk/system/endpoint_relayer_unittest.cc
|
| +++ b/mojo/edk/system/endpoint_relayer_unittest.cc
|
| @@ -33,10 +33,10 @@ class EndpointRelayerTest : public test::ChannelTestBase {
|
| void SetUp() override {
|
| test::ChannelTestBase::SetUp();
|
|
|
| - PostMethodToIOThreadAndWait(
|
| - &EndpointRelayerTest::CreateAndInitChannelOnIOThread, 0);
|
| - PostMethodToIOThreadAndWait(
|
| - &EndpointRelayerTest::CreateAndInitChannelOnIOThread, 1);
|
| + io_thread()->PostTaskAndWait([this]() {
|
| + CreateAndInitChannelOnIOThread(0);
|
| + CreateAndInitChannelOnIOThread(1);
|
| + });
|
|
|
| // The set up:
|
| // * Across the pair of channels, we'll have a pair of connections (call
|
| @@ -67,10 +67,10 @@ class EndpointRelayerTest : public test::ChannelTestBase {
|
| }
|
|
|
| void TearDown() override {
|
| - PostMethodToIOThreadAndWait(&EndpointRelayerTest::ShutdownChannelOnIOThread,
|
| - 0);
|
| - PostMethodToIOThreadAndWait(&EndpointRelayerTest::ShutdownChannelOnIOThread,
|
| - 1);
|
| + io_thread()->PostTaskAndWait([this]() {
|
| + ShutdownChannelOnIOThread(0);
|
| + ShutdownChannelOnIOThread(1);
|
| + });
|
|
|
| test::ChannelTestBase::TearDown();
|
| }
|
|
|