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

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

Issue 2319053004: [Reland] Make canceling Timers fast. (Closed)
Patch Set: Add missing file 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.
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 "mojo/edk/embedder/embedder.h"
12 #include "platform/heap/ThreadState.h"
13 #include "platform/weborigin/SchemeRegistry.h"
14
15 namespace {
16
17 int runHelper(base::TestSuite* testSuite)
18 {
19 content::SetUpBlinkTestEnvironment();
20 blink::SchemeRegistry::initialize();
21
22 int result = testSuite->Run();
23
24 content::TearDownBlinkTestEnvironment();
25
26 return result;
27 }
28
29 } // namespace
30
31 int main(int argc, char** argv)
32 {
33 mojo::edk::Init();
34
35 base::TestSuite testSuite(argc, argv);
36 return base::LaunchUnitTestsSerially(argc, argv, base::Bind(&runHelper, base ::Unretained(&testSuite)));
37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698