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 11 #include <memory> 12 13 #include "absl/debugging/failure_signal_handler.h" 14 #include "absl/debugging/symbolize.h" 15 #include "test/test_main_lib.h" 16 main(int argc,char * argv[])17int main(int argc, char* argv[]) { 18 // Initialize the symbolizer to get a human-readable stack trace 19 absl::InitializeSymbolizer(argv[0]); 20 21 absl::FailureSignalHandlerOptions options; 22 absl::InstallFailureSignalHandler(options); 23 24 std::unique_ptr<webrtc::TestMain> main = webrtc::TestMain::Create(); 25 int err_code = main->Init(&argc, argv); 26 if (err_code != 0) { 27 return err_code; 28 } 29 return main->Run(argc, argv); 30 } 31