Lines Matching refs:rootfs_path

59                                       base::FilePath* rootfs_path);
483 base::FilePath rootfs_path = testdir_.Append("rootfs.bin"); in AddHashFooterTest() local
486 base::WriteFile(rootfs_path, in AddHashFooterTest()
493 rootfs_path.value().c_str(), in AddHashFooterTest()
494 rootfs_path.value().c_str()); in AddHashFooterTest()
497 rootfs_path.value().c_str(), in AddHashFooterTest()
498 rootfs_path.value().c_str()); in AddHashFooterTest()
499 EXPECT_COMMAND(0, "rm -f %s.unsparse", rootfs_path.value().c_str()); in AddHashFooterTest()
512 rootfs_path.value().c_str(), in AddHashFooterTest()
517 InfoImage(rootfs_path)); in AddHashFooterTest()
546 rootfs_path.value().c_str(), in AddHashFooterTest()
562 rootfs_path.value().c_str(), in AddHashFooterTest()
567 rootfs_path.value().c_str(), in AddHashFooterTest()
571 InfoImage(rootfs_path)); in AddHashFooterTest()
576 rootfs_path.value().c_str(), in AddHashFooterTest()
577 rootfs_path.value().c_str()); in AddHashFooterTest()
580 rootfs_path.value().c_str(), in AddHashFooterTest()
581 rootfs_path.value().c_str()); in AddHashFooterTest()
582 EXPECT_COMMAND(0, "rm -f %s.sparse", rootfs_path.value().c_str()); in AddHashFooterTest()
597 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashFooterTest()
653 0, "./avbtool erase_footer --image %s", rootfs_path.value().c_str()); in AddHashFooterTest()
655 ASSERT_TRUE(base::GetFileSize(rootfs_path, &erased_footer_file_size)); in AddHashFooterTest()
667 rootfs_path.value().c_str(), in AddHashFooterTest()
671 ASSERT_TRUE(base::GetFileSize(rootfs_path, &file_size)); in AddHashFooterTest()
957 base::FilePath rootfs_path = testdir_.Append("rootfs.bin"); in CreateRootfsWithHashtreeFooter() local
960 base::WriteFile(rootfs_path, in CreateRootfsWithHashtreeFooter()
967 rootfs_path.value().c_str(), in CreateRootfsWithHashtreeFooter()
968 rootfs_path.value().c_str()); in CreateRootfsWithHashtreeFooter()
971 rootfs_path.value().c_str(), in CreateRootfsWithHashtreeFooter()
972 rootfs_path.value().c_str()); in CreateRootfsWithHashtreeFooter()
973 EXPECT_COMMAND(0, "rm -f %s.unsparse", rootfs_path.value().c_str()); in CreateRootfsWithHashtreeFooter()
987 rootfs_path.value().c_str(), in CreateRootfsWithHashtreeFooter()
1029 InfoImage(rootfs_path)); in CreateRootfsWithHashtreeFooter()
1067 rootfs_path.value().c_str(), in CreateRootfsWithHashtreeFooter()
1075 *output_rootfs_path = rootfs_path; in CreateRootfsWithHashtreeFooter()
1079 base::FilePath rootfs_path; in AddHashtreeFooterTest() local
1083 &rootfs_path); in AddHashtreeFooterTest()
1088 rootfs_path.value().c_str(), in AddHashtreeFooterTest()
1089 rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1092 rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1097 rootfs_path.value().c_str(), in AddHashtreeFooterTest()
1098 rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1101 rootfs_path.value().c_str(), in AddHashtreeFooterTest()
1102 rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1103 EXPECT_COMMAND(0, "rm -f %s.sparse", rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1107 rootfs_path.value().c_str(), in AddHashtreeFooterTest()
1108 rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1111 rootfs_path.value().c_str(), in AddHashtreeFooterTest()
1112 rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1113 EXPECT_COMMAND(0, "rm -f %s.zht.sparse", rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1132 rootfs_path.value().c_str(), in AddHashtreeFooterTest()
1133 rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1137 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashtreeFooterTest()
1142 base::FilePath(rootfs_path.value() + ".zht"), &zht_part_data)); in AddHashtreeFooterTest()
1239 rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1269 rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1271 ASSERT_TRUE(base::GetFileSize(rootfs_path, &erased_footer_file_size)); in AddHashtreeFooterTest()
1282 0, "truncate -s %d %s", (int)rootfs_size, rootfs_path.value().c_str()); in AddHashtreeFooterTest()
1291 rootfs_path.value().c_str(), in AddHashtreeFooterTest()
1295 ASSERT_TRUE(base::GetFileSize(rootfs_path, &file_size)); in AddHashtreeFooterTest()
1312 base::FilePath rootfs_path; in TEST_F() local
1317 &rootfs_path); in TEST_F()
1329 base::FilePath rootfs_path = testdir_.Append("rootfs.bin"); in AddHashtreeFooterFECTest() local
1332 base::WriteFile(rootfs_path, in AddHashtreeFooterFECTest()
1339 rootfs_path.value().c_str(), in AddHashtreeFooterFECTest()
1340 rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1343 rootfs_path.value().c_str(), in AddHashtreeFooterFECTest()
1344 rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1345 EXPECT_COMMAND(0, "rm -f %s.unsparse", rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1356 rootfs_path.value().c_str(), in AddHashtreeFooterFECTest()
1394 InfoImage(rootfs_path)); in AddHashtreeFooterFECTest()
1400 rootfs_path.value().c_str(), in AddHashtreeFooterFECTest()
1401 rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1404 rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1409 rootfs_path.value().c_str(), in AddHashtreeFooterFECTest()
1410 rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1413 rootfs_path.value().c_str(), in AddHashtreeFooterFECTest()
1414 rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1415 EXPECT_COMMAND(0, "rm -f %s.sparse", rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1419 rootfs_path.value().c_str(), in AddHashtreeFooterFECTest()
1420 rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1423 rootfs_path.value().c_str(), in AddHashtreeFooterFECTest()
1424 rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1425 EXPECT_COMMAND(0, "rm -f %s.zht.sparse", rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1432 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashtreeFooterFECTest()
1437 base::FilePath(rootfs_path.value() + ".zht"), &zht_part_data)); in AddHashtreeFooterFECTest()
1536 rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1570 rootfs_path.value().c_str()); in AddHashtreeFooterFECTest()
1572 ASSERT_TRUE(base::GetFileSize(rootfs_path, &erased_footer_file_size)); in AddHashtreeFooterFECTest()
2065 base::FilePath rootfs_path = testdir_.Append("rootfs.bin"); in TEST_F() local
2068 base::WriteFile(rootfs_path, in TEST_F()
2085 rootfs_path.value().c_str(), in TEST_F()
2132 InfoImage(rootfs_path)); in TEST_F()