summaryrefslogtreecommitdiff
path: root/googletest/test/googletest-filepath-test.cc
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2020-04-09 01:55:35 +0000
committerEnji Cooper <ngie@FreeBSD.org>2020-04-09 01:55:35 +0000
commitcd024ff37bc5950173e4c7f34f7259d85825e810 (patch)
tree24e26b52391d78c7c7b65168aca8f803fde926b1 /googletest/test/googletest-filepath-test.cc
parent83481c8c5c0cd0b3fc86f39b2985efd4e300200a (diff)
Notes
Diffstat (limited to 'googletest/test/googletest-filepath-test.cc')
-rw-r--r--googletest/test/googletest-filepath-test.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/googletest/test/googletest-filepath-test.cc b/googletest/test/googletest-filepath-test.cc
index 37f02fb4bd77..aafad36f3fef 100644
--- a/googletest/test/googletest-filepath-test.cc
+++ b/googletest/test/googletest-filepath-test.cc
@@ -50,8 +50,6 @@ namespace internal {
namespace {
#if GTEST_OS_WINDOWS_MOBILE
-// FIXME: Move these to the POSIX adapter section in
-// gtest-port.h.
// Windows CE doesn't have the remove C function.
int remove(const char* path) {
@@ -80,7 +78,7 @@ TEST(GetCurrentDirTest, ReturnsCurrentDir) {
const FilePath cwd = FilePath::GetCurrentDir();
posix::ChDir(original_dir.c_str());
-# if GTEST_OS_WINDOWS
+# if GTEST_OS_WINDOWS || GTEST_OS_OS2
// Skips the ":".
const char* const cwd_without_drive = strchr(cwd.c_str(), ':');
@@ -479,7 +477,7 @@ TEST(AssignmentOperatorTest, ConstAssignedToNonConst) {
class DirectoryCreationTest : public Test {
protected:
- virtual void SetUp() {
+ void SetUp() override {
testdata_path_.Set(FilePath(
TempDir() + GetCurrentExecutableName().string() +
"_directory_creation" GTEST_PATH_SEP_ "test" GTEST_PATH_SEP_));
@@ -496,7 +494,7 @@ class DirectoryCreationTest : public Test {
posix::RmDir(testdata_path_.c_str());
}
- virtual void TearDown() {
+ void TearDown() override {
remove(testdata_file_.c_str());
remove(unique_file0_.c_str());
remove(unique_file1_.c_str());