OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "base/test/test_suite.h" | 6 #include "base/test/test_suite.h" |
| 7 #include "cc/thread_impl.h" |
| 8 #include "cc/proxy.h" |
7 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
8 | 10 |
9 int main(int argc, char** argv) { | 11 int main(int argc, char** argv) { |
10 ::testing::InitGoogleMock(&argc, argv); | 12 ::testing::InitGoogleMock(&argc, argv); |
11 TestSuite test_suite(argc, argv); | 13 TestSuite test_suite(argc, argv); |
12 MessageLoop message_loop; | 14 MessageLoop message_loop; |
| 15 scoped_ptr<cc::Thread> mainCCThread = cc::ThreadImpl::createForCurrentThread()
; |
| 16 cc::Proxy::setMainThread(mainCCThread.get()); |
13 int result = test_suite.Run(); | 17 int result = test_suite.Run(); |
14 | 18 |
15 return result; | 19 return result; |
16 } | 20 } |
| 21 |
OLD | NEW |