Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: third_party/WebKit/Source/platform/testing/RunAllPerfTests.cpp

Issue 2319053004: [Reland] Make canceling Timers fast. (Closed)
Patch Set: Getting printf to work with size_t cross platform is too hard, use C++ io streams instead Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698