mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
8db7e7dc39
testing::InitGoogleMock() and testing::InitGoogleTest() modify argc and argv, removing --gtest_* arguments that are processed. When building as a part of Chromium, this prevents these arguments from being visible to Chromium’s base::LaunchUnitTests() test runner. Only call these initialization functions when using gtest’s native RUN_ALL_TESTS() test runner. Change-Id: I8242e1047f90d1cd923518a5cb9bd2527201ad25 Reviewed-on: https://chromium-review.googlesource.com/746082 Reviewed-by: Leonard Mosescu <mosescu@chromium.org>