run_all_unittests.cc 630 B

123456789101112131415161718192021
  1. // Copyright 2017 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. #include "base/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. #include "mojo/core/embedder/embedder.h"
  9. int main(int argc, char** argv) {
  10. int result = 0;
  11. {
  12. base::TestSuite test_suite(argc, argv);
  13. mojo::core::Init();
  14. result = base::LaunchUnitTests(
  15. argc, argv,
  16. base::BindOnce(&base::TestSuite::Run, base::Unretained(&test_suite)));
  17. }
  18. return result;
  19. }