diff options
author | Abseil Team <absl-team@google.com> | 2022-12-12 17:33:33 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-12-12 17:34:12 (GMT) |
commit | b0846aaf37a271d56019b42121ebcea0ac42e8c1 (patch) | |
tree | 266ddb250c8391436290f88181f6dcea2691cd22 /googletest/src/gtest-internal-inl.h | |
parent | 516940f16d6b35d9c90b20eceb6d1f511407845e (diff) | |
download | googletest-b0846aaf37a271d56019b42121ebcea0ac42e8c1.zip googletest-b0846aaf37a271d56019b42121ebcea0ac42e8c1.tar.gz googletest-b0846aaf37a271d56019b42121ebcea0ac42e8c1.tar.bz2 |
Introduces a new porting flag (GTEST_HAS_FILE_SYSTEM) to indicate whether a platform supports filesystem operations.
PiperOrigin-RevId: 494751986
Change-Id: I07f73bdf478a73934b8f1a69c1ab4abda1b231ae
Diffstat (limited to 'googletest/src/gtest-internal-inl.h')
-rw-r--r-- | googletest/src/gtest-internal-inl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/googletest/src/gtest-internal-inl.h b/googletest/src/gtest-internal-inl.h index 517cc13..ddef4bb 100644 --- a/googletest/src/gtest-internal-inl.h +++ b/googletest/src/gtest-internal-inl.h @@ -396,9 +396,11 @@ class GTEST_API_ UnitTestOptions { static bool MatchesFilter(const std::string& name, const char* filter); }; +#if GTEST_HAS_FILE_SYSTEM // Returns the current application's name, removing directory path if that // is present. Used by UnitTestOptions::GetOutputFile. GTEST_API_ FilePath GetCurrentExecutableName(); +#endif // GTEST_HAS_FILE_SYSTEM // The role interface for getting the OS stack trace as a string. class OsStackTraceGetterInterface { @@ -840,9 +842,11 @@ class GTEST_API_ UnitTestImpl { // The UnitTest object that owns this implementation object. UnitTest* const parent_; +#if GTEST_HAS_FILE_SYSTEM // The working directory when the first TEST() or TEST_F() was // executed. internal::FilePath original_working_dir_; +#endif // GTEST_HAS_FILE_SYSTEM // The default test part result reporters. DefaultGlobalTestPartResultReporter default_global_test_part_result_reporter_; |