1 // Copyright 2018 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.
6 #include "base/command_line.h"
7 #include "base/message_loop/message_loop.h"
8 #include "base/test/launcher/unit_test_launcher.h"
9 #include "base/test/test_suite.h"
10 #include "testing/gmock/include/gmock/gmock.h"
14 int RunHelper(base::TestSuite* test_suite) {
15 base::MessageLoopForIO message_loop;
16 return test_suite->Run();
21 int main(int argc, char** argv) {
22 base::CommandLine::Init(argc, argv);
23 testing::InitGoogleMock(&argc, argv);
24 base::TestSuite test_suite(argc, argv);
25 int rt = base::LaunchUnitTestsSerially(
26 argc, argv, base::BindOnce(&RunHelper, base::Unretained(&test_suite)));