Lines Matching refs:path
54 void CheckContent(const std::string& path, const std::string& expected_content) { in CheckContent() argument
56 ASSERT_TRUE(ReadFileToString(path, &actual_content)); in CheckContent()
63 static Result<std::unique_ptr<UnkeepableFile>> Create(const std::string& path, in Create() argument
65 std::unique_ptr<NewFile> new_file = OR_RETURN(NewFile::Create(path, fs_permission)); in Create()
96 std::string path = scratch_dir_->GetPath() + "/file.tmp"; in TEST_F() local
98 Result<std::unique_ptr<NewFile>> new_file = NewFile::Create(path, fs_permission_); in TEST_F()
101 EXPECT_EQ((*new_file)->FinalPath(), path); in TEST_F()
110 std::string path = scratch_dir_->GetPath() + "/non_existent_dir/file.tmp"; in TEST_F() local
112 EXPECT_THAT(NewFile::Create(path, fs_permission_), in TEST_F()
118 std::string path = scratch_dir_->GetPath() + "/file.tmp"; in TEST_F() local
119 std::unique_ptr<NewFile> new_file = OR_FATAL(NewFile::Create(path, fs_permission_)); in TEST_F()
122 EXPECT_FALSE(std::filesystem::exists(path)); in TEST_F()
127 std::string path = scratch_dir_->GetPath() + "/file.tmp"; in TEST_F() local
132 std::unique_ptr<NewFile> new_file = OR_FATAL(NewFile::Create(path, fs_permission_)); in TEST_F()
136 EXPECT_FALSE(std::filesystem::exists(path)); in TEST_F()
141 std::string path = scratch_dir_->GetPath() + "/file.tmp"; in TEST_F() local
145 std::unique_ptr<NewFile> new_file = OR_FATAL(NewFile::Create(path, fs_permission_)); in TEST_F()
150 EXPECT_TRUE(std::filesystem::exists(path)); in TEST_F()
350 std::string path = scratch_dir_->GetPath() + "/foo"; in TEST_F() local
351 ASSERT_TRUE(WriteStringToFile("foo", path)); in TEST_F()
353 EXPECT_THAT(OpenFileForReading(path), HasValue(NotNull())); in TEST_F()
357 std::string path = scratch_dir_->GetPath() + "/foo"; in TEST_F() local
359 EXPECT_THAT(OpenFileForReading(path), in TEST_F()