| Index: mojo/edk/embedder/embedder_unittest.cc
|
| diff --git a/mojo/edk/embedder/embedder_unittest.cc b/mojo/edk/embedder/embedder_unittest.cc
|
| index 78423d2c5b69ccac1d241eb6f6291a935e3a89ce..16a5ce2021e2f987b91414e4f7309cab9691f0e3 100644
|
| --- a/mojo/edk/embedder/embedder_unittest.cc
|
| +++ b/mojo/edk/embedder/embedder_unittest.cc
|
| @@ -50,11 +50,7 @@ class ScopedTestChannel {
|
|
|
| // Destructor: Shuts down the channel. (As noted above, for this to happen,
|
| // the I/O thread must be alive and pumping messages.)
|
| - ~ScopedTestChannel() {
|
| - system::test::PostTaskAndWait(
|
| - io_thread_task_runner_, FROM_HERE,
|
| - base::Bind(&ScopedTestChannel::DestroyChannel, base::Unretained(this)));
|
| - }
|
| + ~ScopedTestChannel() { DestroyChannel(channel_info_); }
|
|
|
| // Waits for channel creation to be completed.
|
| void WaitForChannelCreationCompletion() { did_create_channel_event_.Wait(); }
|
| @@ -73,12 +69,6 @@ class ScopedTestChannel {
|
| did_create_channel_event_.Signal();
|
| }
|
|
|
| - void DestroyChannel() {
|
| - CHECK(channel_info_);
|
| - DestroyChannelOnIOThread(channel_info_);
|
| - channel_info_ = nullptr;
|
| - }
|
| -
|
| scoped_refptr<base::TaskRunner> io_thread_task_runner_;
|
|
|
| // Valid from creation until whenever it gets closed (by the "owner" of this
|
|
|