| 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/bind.h" |
| 5 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
| 6 #include "base/test/test_suite.h" | 7 #include "base/test/test_suite.h" |
| 8 #include "base/test/unit_test_launcher.h" |
| 7 #include "cc/test/cc_test_suite.h" | 9 #include "cc/test/cc_test_suite.h" |
| 8 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| 9 | 11 |
| 10 int main(int argc, char** argv) { | 12 int main(int argc, char** argv) { |
| 11 ::testing::InitGoogleMock(&argc, argv); | 13 ::testing::InitGoogleMock(&argc, argv); |
| 12 cc::CCTestSuite test_suite(argc, argv); | 14 cc::CCTestSuite test_suite(argc, argv); |
| 13 int result = test_suite.Run(); | |
| 14 | 15 |
| 15 return result; | 16 return base::LaunchUnitTests( |
| 17 argc, argv, base::Bind(&cc::CCTestSuite::Run, |
| 18 base::Unretained(&test_suite))); |
| 16 } | 19 } |
| OLD | NEW |