15f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
25f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// found in the LICENSE file.
45f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
55f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#include "base/bind.h"
65f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#include "base/test/launcher/unit_test_launcher.h"
75f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#include "base/test/test_suite.h"
85f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#include "testing/gtest/include/gtest/gtest.h"
95f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
105f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)int main(int argc, char** argv) {
115f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  // Silence death test thread warnings on Linux. We can afford to run our death
125f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  // tests a little more slowly (< 10 ms per death test on a Z620).
135f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  testing::GTEST_FLAG(death_test_style) = "threadsafe";
145f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
155f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  base::TestSuite test_suite(argc, argv);
165f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
175f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  return base::LaunchUnitTests(
185f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)      argc,
195f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)      argv,
205f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)      base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
215f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)}
22