| Index: mojo/edk/system/channel_endpoint_unittest.cc
|
| diff --git a/mojo/edk/system/channel_endpoint_unittest.cc b/mojo/edk/system/channel_endpoint_unittest.cc
|
| index 5b1fd46b2fb93a204509d252d229027cae9ed359..01199bd7dec47b449ce3b993524232a2e30e2273 100644
|
| --- a/mojo/edk/system/channel_endpoint_unittest.cc
|
| +++ b/mojo/edk/system/channel_endpoint_unittest.cc
|
| @@ -31,17 +31,17 @@ class ChannelEndpointTest : public test::ChannelTestBase {
|
| void SetUp() override {
|
| test::ChannelTestBase::SetUp();
|
|
|
| - PostMethodToIOThreadAndWait(
|
| - &ChannelEndpointTest::CreateAndInitChannelOnIOThread, 0);
|
| - PostMethodToIOThreadAndWait(
|
| - &ChannelEndpointTest::CreateAndInitChannelOnIOThread, 1);
|
| + io_thread()->PostTaskAndWait([this]() {
|
| + CreateAndInitChannelOnIOThread(0);
|
| + CreateAndInitChannelOnIOThread(1);
|
| + });
|
| }
|
|
|
| void TearDown() override {
|
| - PostMethodToIOThreadAndWait(&ChannelEndpointTest::ShutdownChannelOnIOThread,
|
| - 0);
|
| - PostMethodToIOThreadAndWait(&ChannelEndpointTest::ShutdownChannelOnIOThread,
|
| - 1);
|
| + io_thread()->PostTaskAndWait([this]() {
|
| + ShutdownChannelOnIOThread(0);
|
| + ShutdownChannelOnIOThread(1);
|
| + });
|
|
|
| test::ChannelTestBase::TearDown();
|
| }
|
|
|