blob: 92cdb62ca669549c1ec20aac256f4792e8d5d91a [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001// 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 Luu6d948cc2015-03-31 10:48:02 -07005#include "base/at_exit.h"
James Robinson646469d2014-10-03 15:33:28 -07006#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 Luu988b4be2015-05-15 13:00:15 -070011#include "shell/child_switches.h"
James Robinson646469d2014-10-03 15:33:28 -070012#include "testing/gtest/include/gtest/gtest.h"
13
14int main(int argc, char** argv) {
15 base::CommandLine::Init(argc, argv);
James Robinson646469d2014-10-03 15:33:28 -070016
Viet-Trung Luue0a4a182015-04-07 16:28:01 -070017 CHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch(
Viet-Trung Luub712a8d2015-05-20 12:27:16 -070018 switches::kChildConnectionId));
James Robinson646469d2014-10-03 15:33:28 -070019
20 base::TestSuite test_suite(argc, argv);
21 return base::LaunchUnitTests(
James Robinsonb4b7af22014-12-05 11:21:01 -080022 argc, argv,
23 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
James Robinson646469d2014-10-03 15:33:28 -070024}