Searched refs:FilePath (Results 1 – 7 of 7) sorted by relevance
/ndk/sources/third_party/googletest/googletest/test/ |
D | gtest-filepath_test.cc | 76 FilePath filepath(path); in _rmdir() 87 const FilePath original_dir = FilePath::GetCurrentDir(); 91 const FilePath cwd = FilePath::GetCurrentDir(); 111 EXPECT_TRUE(FilePath("").IsEmpty()); in TEST() 115 EXPECT_FALSE(FilePath("a").IsEmpty()); in TEST() 116 EXPECT_FALSE(FilePath(".").IsEmpty()); in TEST() 117 EXPECT_FALSE(FilePath("a/b").IsEmpty()); in TEST() 118 EXPECT_FALSE(FilePath("a\\b\\").IsEmpty()); in TEST() 123 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST() 129 FilePath("afile").RemoveDirectoryName().string()); in TEST() [all …]
|
D | gtest-options_test.cc | 63 FilePath GetAbsolutePathOf(const FilePath& relative_path) { in GetAbsolutePathOf() 64 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path); in GetAbsolutePathOf() 81 EXPECT_EQ(GetAbsolutePathOf(FilePath("test_detail.xml")).string(), in TEST() 87 EXPECT_EQ(GetAbsolutePathOf(FilePath("filename.abc")).string(), in TEST() 95 FilePath(std::string("path") + GTEST_PATH_SEP_ + in TEST() 130 original_working_dir_ = FilePath::GetCurrentDir(); in SetUp() 134 FilePath::GetCurrentDir().string()); in SetUp() 141 FilePath original_working_dir_; 146 EXPECT_EQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F() 147 FilePath("test_detail.xml")).string(), in TEST_F() [all …]
|
D | gtest-death-test_test.cc | 75 using testing::internal::FilePath; 134 TestForDeathTest() : original_dir_(FilePath::GetCurrentDir()) {} in TestForDeathTest() 151 const FilePath original_dir_;
|
/ndk/sources/third_party/googletest/googletest/include/gtest/internal/ |
D | gtest-filepath.h | 59 class GTEST_API_ FilePath { 61 FilePath() : pathname_("") { } in FilePath() function 62 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function 64 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function 68 FilePath& operator=(const FilePath& rhs) { 73 void Set(const FilePath& rhs) { in Set() 81 static FilePath GetCurrentDir(); 87 static FilePath MakeFileName(const FilePath& directory, 88 const FilePath& base_name, 95 static FilePath ConcatPaths(const FilePath& directory, [all …]
|
/ndk/sources/third_party/googletest/googletest/src/ |
D | gtest-filepath.cc | 101 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 105 return FilePath(kCurrentDirectoryString); in GetCurrentDir() 108 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 111 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir() 119 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 122 return FilePath(pathname_.substr( in RemoveExtension() 131 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator() 150 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 152 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName() 161 FilePath FilePath::RemoveFileName() const { in RemoveFileName() [all …]
|
D | gtest.cc | 373 FilePath GetCurrentExecutableName() { in GetCurrentExecutableName() 374 FilePath result; in GetCurrentExecutableName() 377 result.Set(FilePath(g_executable_path).RemoveExtension("exe")); in GetCurrentExecutableName() 379 result.Set(FilePath(g_executable_path)); in GetCurrentExecutableName() 407 return internal::FilePath::ConcatPaths( in GetAbsolutePathToOutputFile() 408 internal::FilePath( in GetAbsolutePathToOutputFile() 410 internal::FilePath(kDefaultOutputFile)).string(); in GetAbsolutePathToOutputFile() 412 internal::FilePath output_name(colon + 1); in GetAbsolutePathToOutputFile() 418 output_name = internal::FilePath::ConcatPaths( in GetAbsolutePathToOutputFile() 419 internal::FilePath(UnitTest::GetInstance()->original_working_dir()), in GetAbsolutePathToOutputFile() [all …]
|
D | gtest-internal-inl.h | 414 GTEST_API_ FilePath GetCurrentExecutableName(); 659 original_working_dir_.Set(FilePath::GetCurrentDir()); in AddTestInfo() 820 internal::FilePath original_working_dir_;
|