| Index: cc/test/run_all_unittests.cc
|
| ===================================================================
|
| --- cc/test/run_all_unittests.cc (revision 165906)
|
| +++ cc/test/run_all_unittests.cc (working copy)
|
| @@ -4,13 +4,18 @@
|
|
|
| #include "base/message_loop.h"
|
| #include "base/test/test_suite.h"
|
| +#include "cc/thread_impl.h"
|
| +#include "cc/proxy.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| int main(int argc, char** argv) {
|
| ::testing::InitGoogleMock(&argc, argv);
|
| TestSuite test_suite(argc, argv);
|
| MessageLoop message_loop;
|
| + scoped_ptr<cc::Thread> mainCCThread = cc::ThreadImpl::createForCurrentThread();
|
| + cc::Proxy::setMainThread(mainCCThread.get());
|
| int result = test_suite.Run();
|
|
|
| return result;
|
| }
|
| +
|
|
|