| Index: mojo/system/test_utils.h
|
| diff --git a/mojo/system/test_utils.h b/mojo/system/test_utils.h
|
| index 9310bd95b90d78a9d1956f28ca9054b98c04d56a..23b704b3599881b2384fcc7a4b98c1dba16cc05e 100644
|
| --- a/mojo/system/test_utils.h
|
| +++ b/mojo/system/test_utils.h
|
| @@ -14,7 +14,6 @@
|
| #include "base/task_runner.h"
|
| #include "base/threading/thread.h"
|
| #include "base/time/time.h"
|
| -#include "testing/gtest/include/gtest/gtest.h"
|
|
|
| namespace tracked_objects {
|
| class Location;
|
| @@ -50,29 +49,26 @@ void PostTaskAndWait(scoped_refptr<base::TaskRunner> task_runner,
|
| const tracked_objects::Location& from_here,
|
| const base::Closure& task);
|
|
|
| -// TestWithIOThreadBase --------------------------------------------------------
|
| +// TestIOThread ----------------------------------------------------------------
|
|
|
| -class TestWithIOThreadBase : public testing::Test {
|
| +class TestIOThread {
|
| public:
|
| - TestWithIOThreadBase();
|
| - virtual ~TestWithIOThreadBase();
|
| + // Note: The I/O thread is started on construction and stopped on destruction.
|
| + TestIOThread();
|
| + ~TestIOThread();
|
|
|
| - virtual void SetUp() OVERRIDE;
|
| - virtual void TearDown() OVERRIDE;
|
| -
|
| - protected:
|
| - base::MessageLoopForIO* io_thread_message_loop() {
|
| + base::MessageLoopForIO* message_loop() {
|
| return static_cast<base::MessageLoopForIO*>(io_thread_.message_loop());
|
| }
|
|
|
| - scoped_refptr<base::TaskRunner> io_thread_task_runner() {
|
| - return io_thread_message_loop()->message_loop_proxy();
|
| + scoped_refptr<base::TaskRunner> task_runner() {
|
| + return message_loop()->message_loop_proxy();
|
| }
|
|
|
| private:
|
| base::Thread io_thread_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(TestWithIOThreadBase);
|
| + DISALLOW_COPY_AND_ASSIGN(TestIOThread);
|
| };
|
|
|
| } // namespace test
|
|
|