run_all_unittests.cc 497 B

123456789101112131415
  1. // Copyright (c) 2019 GitHub, Inc.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "base/functional/bind.h"
  5. #include "base/test/launcher/unit_test_launcher.h"
  6. #include "base/test/test_suite.h"
  7. #include "build/build_config.h"
  8. int main(int argc, char** argv) {
  9. base::TestSuite test_suite(argc, argv);
  10. return base::LaunchUnitTests(
  11. argc, argv,
  12. base::BindOnce(&base::TestSuite::Run, base::Unretained(&test_suite)));
  13. }