OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/at_exit.h" | 5 #include "base/at_exit.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/test/launcher/unit_test_launcher.h" | 9 #include "base/test/launcher/unit_test_launcher.h" |
10 #include "base/test/test_suite.h" | 10 #include "base/test/test_suite.h" |
| 11 #include "gpu/angle_test_batcher.h" |
11 | 12 |
12 namespace { | 13 namespace { |
13 | 14 |
14 int RunHelper(base::TestSuite* test_suite) { | 15 int RunHelper(base::TestSuite* test_suite) { |
15 base::MessageLoopForIO message_loop; | 16 base::MessageLoopForIO message_loop; |
16 return test_suite->Run(); | 17 return test_suite->Run(); |
17 } | 18 } |
18 | 19 |
19 } // namespace | 20 } // namespace |
20 | 21 |
21 int main(int argc, char** argv) { | 22 int main(int argc, char** argv) { |
22 base::CommandLine::Init(argc, argv); | 23 base::CommandLine::Init(argc, argv); |
| 24 gpu::BatchANGLETests(); |
23 base::TestSuite test_suite(argc, argv); | 25 base::TestSuite test_suite(argc, argv); |
24 int rt = base::LaunchUnitTestsSerially( | 26 int rt = base::LaunchUnitTestsSerially( |
25 argc, | 27 argc, |
26 argv, | 28 argv, |
27 base::Bind(&RunHelper, base::Unretained(&test_suite))); | 29 base::Bind(&RunHelper, base::Unretained(&test_suite))); |
28 return rt; | 30 return rt; |
29 } | 31 } |
OLD | NEW |