diff options
author | Abseil Team <absl-team@google.com> | 2022-11-11 20:58:35 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-11-11 20:59:10 (GMT) |
commit | 912db742531bf82efb01194bc08140416e3b3467 (patch) | |
tree | 0438b1eebf894f688f3d577f4a6169382a4b6548 /googletest/include | |
parent | 44c03643cfbc649488a0f437cd18e05f11960d19 (diff) | |
download | googletest-912db742531bf82efb01194bc08140416e3b3467.zip googletest-912db742531bf82efb01194bc08140416e3b3467.tar.gz googletest-912db742531bf82efb01194bc08140416e3b3467.tar.bz2 |
Defined a testing::SrcDir() function that returns the name of a directory
where ancillary data files can be found.
PiperOrigin-RevId: 487896836
Change-Id: Ie6b1ba734e900fa33872b63090879ee6efe33411
Diffstat (limited to 'googletest/include')
-rw-r--r-- | googletest/include/gtest/gtest.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h index ffff876..1184337 100644 --- a/googletest/include/gtest/gtest.h +++ b/googletest/include/gtest/gtest.h @@ -2201,10 +2201,17 @@ constexpr bool StaticAssertTypeEq() noexcept { #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name) #endif -// Returns a path to temporary directory. -// Tries to determine an appropriate directory for the platform. +// Returns a path to a temporary directory, which should be writable. It is +// implementation-dependent whether or not the path is terminated by the +// directory-separator character. GTEST_API_ std::string TempDir(); +// Returns a path to a directory that contains ancillary data files that might +// be used by tests. It is implementation dependent whether or not the path is +// terminated by the directory-separator character. The directory and the files +// in it should be considered read-only. +GTEST_API_ std::string SrcDir(); + #ifdef _MSC_VER #pragma warning(pop) #endif |