OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
haraken
2016/09/09 02:34:07
Hmm, I'm not sure if it's worth introducing RunAll
alex clarke (OOO till 29th)
2016/09/09 09:40:59
I didn't think we were allowed to use things from
haraken
2016/09/09 13:19:53
Sorry, where is TimerPerfTest using web/?
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/bind.h" | |
6 #include "base/run_loop.h" | |
7 #include "base/test/launcher/unit_test_launcher.h" | |
8 #include "base/test/test_suite.h" | |
9 #include "base/threading/thread_task_runner_handle.h" | |
10 #include "content/test/blink_test_environment.h" | |
11 #include "platform/heap/ThreadState.h" | |
12 #include "platform/weborigin/SchemeRegistry.h" | |
13 | |
14 namespace { | |
15 | |
16 int runHelper(base::TestSuite* testSuite) | |
17 { | |
18 content::SetUpBlinkTestEnvironment(); | |
19 blink::SchemeRegistry::initialize(); | |
20 | |
21 int result = testSuite->Run(); | |
22 | |
23 content::TearDownBlinkTestEnvironment(); | |
24 | |
25 return result; | |
26 } | |
27 | |
28 } // namespace | |
29 | |
30 int main(int argc, char** argv) | |
31 { | |
32 base::TestSuite testSuite(argc, argv); | |
33 return base::LaunchUnitTestsSerially(argc, argv, base::Bind(&runHelper, base ::Unretained(&testSuite))); | |
34 } | |
OLD | NEW |