gtest_main.h 659 B

1234567891011121314151617181920
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_TESTING_BASE_GTEST_MAIN_H_
  5. #define CARBON_TESTING_BASE_GTEST_MAIN_H_
  6. #include "llvm/ADT/StringRef.h"
  7. // When using the Carbon `main` function for GoogleTest, we export some extra
  8. // information about the test binary that can be accessed with this header.
  9. namespace Carbon::Testing {
  10. // The executable path of the test binary.
  11. auto GetTestExePath() -> llvm::StringRef;
  12. } // namespace Carbon::Testing
  13. #endif // CARBON_TESTING_BASE_GTEST_MAIN_H_