diff options
Diffstat (limited to 'third_party/crc32c/src/src/crc32c_test_main.cc')
-rw-r--r-- | third_party/crc32c/src/src/crc32c_test_main.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/third_party/crc32c/src/src/crc32c_test_main.cc b/third_party/crc32c/src/src/crc32c_test_main.cc new file mode 100644 index 0000000000..c07e1c8bc4 --- /dev/null +++ b/third_party/crc32c/src/src/crc32c_test_main.cc @@ -0,0 +1,20 @@ +// Copyright 2017 The CRC32C 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 "crc32c/crc32c_config.h" + +#include "gtest/gtest.h" + +#if CRC32C_TESTS_BUILT_WITH_GLOG +#include "glog/logging.h" +#endif // CRC32C_TESTS_BUILT_WITH_GLOG + +int main(int argc, char** argv) { +#if CRC32C_TESTS_BUILT_WITH_GLOG + google::InitGoogleLogging(argv[0]); + google::InstallFailureSignalHandler(); +#endif // CRC32C_TESTS_BUILT_WITH_GLOG + testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} |