OLD | NEW |
(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 } |
OLD | NEW |