You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
984 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #include <memory>
  11. #include "absl/debugging/failure_signal_handler.h"
  12. #include "absl/debugging/symbolize.h"
  13. #include "test/test_main_lib.h"
  14. int main(int argc, char* argv[]) {
  15. // Initialize the symbolizer to get a human-readable stack trace
  16. absl::InitializeSymbolizer(argv[0]);
  17. absl::FailureSignalHandlerOptions options;
  18. absl::InstallFailureSignalHandler(options);
  19. std::unique_ptr<webrtc::TestMain> main = webrtc::TestMain::Create();
  20. int err_code = main->Init(&argc, argv);
  21. if (err_code != 0) {
  22. return err_code;
  23. }
  24. return main->Run(argc, argv);
  25. }