1 // Copyright 2015 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/bind.h" 6 #include "base/test/launcher/unit_test_launcher.h" 7 #include "base/test/test_suite.h" 8 main(int argc,char ** argv)9int main(int argc, char** argv) { 10 base::TestSuite test_suite(argc, argv); 11 #if defined(CRONET_TESTS_IMPLEMENTATION) 12 // cronet_tests[_android] link the Cronet implementation into the test 13 // suite statically in many configurations, causing globals initialized by 14 // the library (e.g. ThreadPool) to be visible to the TestSuite. 15 test_suite.DisableCheckForLeakedGlobals(); 16 #endif 17 return base::LaunchUnitTests( 18 argc, argv, 19 base::BindOnce(&base::TestSuite::Run, base::Unretained(&test_suite))); 20 } 21