Lines Matching refs:files
97 void GetUpgradePkgInfo(UpgradePkgInfo &pkgInfo, std::vector<std::pair<std::string, ComponentInfo>> &files)
110 files.resize(testFileNames_.size());
114 files[i].first = filePath;
116 ComponentInfo* info = &files[i].second;
136 std::vector<std::pair<std::string, ComponentInfo>> files;
137 GetUpgradePkgInfo(pkgInfo, files);
140 int32_t ret = pkgManager_->CreatePackage(packagePath, "", &pkgInfo.pkgInfo, files);
142 ret = pkgManager_->CreatePackage(packagePath, GetTestPrivateKeyName(0), &pkgInfo.pkgInfo, files);
151 std::vector<std::pair<std::string, ComponentInfo>> files;
152 GetUpgradePkgInfo(pkgInfo, files);
157 files[0].first = "sssssssssss";
158 int32_t ret = pkgManager_->CreatePackage(packagePath, GetTestPrivateKeyName(0), &pkgInfo.pkgInfo, files);
166 std::vector<std::pair<std::string, ComponentInfo>> files;
169 int32_t ret = pkgManager_->CreatePackage(packagePath, GetTestPrivateKeyName(0), nullptr, files);
245 std::vector<std::pair<std::string, ComponentInfo>> files;
246 GetUpgradePkgInfo(pkgInfo, files);
261 files.push_back(std::pair<std::string, ComponentInfo>("/qqqqqq", info));
262 int ret = pkgManager_->CreatePackage(packagePath, GetTestPrivateKeyName(0), &pkgInfo.pkgInfo, files);
270 std::vector<std::pair<std::string, ComponentInfo>> files;
271 GetUpgradePkgInfo(pkgInfo, files);
276 int ret = pkgManager_->CreatePackage(packagePath, GetTestPrivateKeyName(0), &pkgInfo.pkgInfo, files);
285 std::vector<std::pair<std::string, Lz4FileInfo>> files;
290 files.push_back(std::pair<std::string, Lz4FileInfo>("fileName", file));
297 int ret = pkgManager_->CreatePackage(fileName, "", &pkgInfo, files);
299 ret = pkgManager_->CreatePackage(fileName, GetTestPrivateKeyName(0), nullptr, files);
301 ret = pkgManager_->CreatePackage(fileName, GetTestPrivateKeyName(0), &pkgInfo, files);
310 std::vector<std::pair<std::string, Lz4FileInfo>> files;
315 files.push_back(std::pair<std::string, Lz4FileInfo>("fileName", file));
323 int ret = pkgManager_->CreatePackage(fileName, GetTestPrivateKeyName(0), &pkgInfo, files);
332 std::vector<std::pair<std::string, ZipFileInfo>> files;
338 files.push_back(std::pair<std::string, ZipFileInfo>("55555555555", file));
346 int ret = pkgManager_->CreatePackage(fileName, "", &pkgInfo, files);
348 ret = pkgManager_->CreatePackage(fileName, GetTestPrivateKeyName(0), nullptr, files);
350 ret = pkgManager_->CreatePackage(fileName, GetTestPrivateKeyName(0), &pkgInfo, files);