Lines Matching refs:path
72 string path = string(PATH_MAX, 'a') + "/"; variable
73 EXPECT_EQ(Utils::MkdirRecursive(path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH), -1);
74 path = "/data/updater/firstDir/secondDir";
75 EXPECT_EQ(Utils::MkdirRecursive(path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH), 0);
91 string path = "/no_exist"; variable
92 EXPECT_EQ(Utils::GetFilesFromDirectory(path, files, true), -1);
93 path = "/data";
94 Utils::GetFilesFromDirectory(path, files, true);
99 string path = "/data/updater/test_file"; variable
101 auto fd = open(path.c_str(), O_RDWR | O_CREAT, 0777);
105 auto readFd = open(path.c_str(), O_RDONLY);
109 EXPECT_EQ(Utils::DeleteFile(path), 0);
114 string path = "/data/updater/test_file"; variable
116 auto fd = open(path.c_str(), O_RDWR | O_CREAT, 0777);
123 auto writeFd = open(path.c_str(), O_WRONLY);
127 EXPECT_EQ(Utils::DeleteFile(path), 0);
132 string path = "/data/updater/test_file"; variable
134 auto fd = open(path.c_str(), O_RDWR | O_CREAT, 0777);
142 auto writeFd = open(path.c_str(), O_WRONLY);
146 EXPECT_EQ(Utils::DeleteFile(path), 0);
151 string path = "/data/updater/test_file"; variable
153 auto fd = open(path.c_str(), O_RDWR | O_CREAT, 0777);
160 auto readFd = open(path.c_str(), O_RDONLY);
164 EXPECT_EQ(Utils::DeleteFile(path), 0);
183 string path = std::string(UPDATER_PATH) + "/" + std::string(UPDATER_RESULT_FILE); variable
184 auto fd = open(path.c_str(), O_RDWR | O_CREAT, 0777);
191 EXPECT_EQ(Utils::DeleteFile(path), 0);
202 string path = ""; variable
203 EXPECT_EQ(Utils::RemoveDir(path), false);
204 path = "/data/updater/nonExistDir";
205 EXPECT_EQ(Utils::RemoveDir(path), false);
206 path = "/data/updater/rmDir";
207 int ret = mkdir(path.c_str(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
208 string secPath = path + "/secRmDir";
212 string filePath = path + "/tmpFile";
216 EXPECT_EQ(Utils::RemoveDir(path), true);
249 string path(PATH_MAX + 1, '/'); variable
250 EXPECT_EQ(Utils::PathToRealPath(path, realPath), false);
252 path = "/data/updater/no_exist";
253 EXPECT_EQ(Utils::PathToRealPath(path, realPath), false);
255 path = "/data/../system";
256 EXPECT_EQ(Utils::PathToRealPath(path, realPath), true);
262 auto path = GetBlockDeviceByMountPoint(MISC_PATH); variable
267 EXPECT_EQ(ReadUpdaterMessage(path, msg), true);
275 EXPECT_EQ(WriteUpdaterMessage(path, msg), true);
277 EXPECT_EQ(ReadUpdaterMessage(path, msg), true);
285 EXPECT_EQ(WriteUpdaterMessage(path, msg), true);
287 EXPECT_EQ(ReadUpdaterMessage(path, msg), true);
295 EXPECT_EQ(WriteUpdaterMessage(path, msg), true);
297 EXPECT_EQ(ReadUpdaterMessage(path, msg), true);
305 EXPECT_EQ(ReadUpdaterMessage(path, msg), true);