James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 1 | // Copyright 2014 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 | |
Viet-Trung Luu | 6d948cc | 2015-03-31 10:48:02 -0700 | [diff] [blame] | 5 | #include "base/at_exit.h" |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 6 | #include "base/bind.h" |
| 7 | #include "base/command_line.h" |
| 8 | #include "base/logging.h" |
| 9 | #include "base/test/launcher/unit_test_launcher.h" |
| 10 | #include "base/test/test_suite.h" |
Viet-Trung Luu | 988b4be | 2015-05-15 13:00:15 -0700 | [diff] [blame] | 11 | #include "shell/child_switches.h" |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 12 | #include "testing/gtest/include/gtest/gtest.h" |
| 13 | |
| 14 | int main(int argc, char** argv) { |
| 15 | base::CommandLine::Init(argc, argv); |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 16 | |
Viet-Trung Luu | e0a4a18 | 2015-04-07 16:28:01 -0700 | [diff] [blame] | 17 | CHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch( |
Viet-Trung Luu | b712a8d | 2015-05-20 12:27:16 -0700 | [diff] [blame] | 18 | switches::kChildConnectionId)); |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 19 | |
| 20 | base::TestSuite test_suite(argc, argv); |
| 21 | return base::LaunchUnitTests( |
James Robinson | b4b7af2 | 2014-12-05 11:21:01 -0800 | [diff] [blame] | 22 | argc, argv, |
| 23 | base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 24 | } |