blob: 9d8cfdaf28b86f92719da183110725476fdd363b [file] [log] [blame]
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "standalone/base/logging.h"
#include "standalone/base/stack_trace.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/multiprocess_func_list.h"
#include "third_party/ipcz/src/test_buildflags.h"
#if BUILDFLAG(ENABLE_IPCZ_MULTIPROCESS_TESTS)
#include "third_party/ipcz/src/test/test_child_launcher.h"
#endif
int main(int argc, char** argv) {
// TODO(rockot): Implement basic command line parsing for standalone builds.
ipcz::standalone::StackTrace::EnableStackTraceSymbolization(argv[0]);
testing::InitGoogleTest(&argc, argv);
#if BUILDFLAG(ENABLE_IPCZ_MULTIPROCESS_TESTS)
ipcz::test::TestChildLauncher::Initialize(argc, argv);
int exit_code;
if (ipcz::test::TestChildLauncher::RunTestChild(exit_code)) {
return exit_code;
}
#endif
return RUN_ALL_TESTS();
}