1 // Copyright (c) 2012 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/at_exit.h" 6 #include "testing/gtest/include/gtest/gtest.h" 7 8 int main(int argc, char* argv[]) { 9 // The use of Callbacks requires an AtExitManager. 10 base::AtExitManager exit_manager; 11 testing::InitGoogleTest(&argc, argv); 12 // Always go through re-execution for death tests. 13 // This makes gtest only marginally slower for us and has the 14 // additional side effect of getting rid of gtest warnings about fork() 15 // safety. 16 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; 17 return RUN_ALL_TESTS(); 18 } 19