Lines Matching refs:path
39 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST()
41 auto block_map_data = BlockMapData::ParseBlockMapFile(temp_file.path); in TEST()
42 ASSERT_EQ("/dev/abc", block_map_data.path()); in TEST()
59 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST()
61 auto block_map_data1 = BlockMapData::ParseBlockMapFile(temp_file.path); in TEST()
74 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST()
76 auto block_map_data = BlockMapData::ParseBlockMapFile(temp_file.path); in TEST()
77 ASSERT_EQ("/dev/abc", block_map_data.path()); in TEST()
82 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST()
83 auto large_block_size = BlockMapData::ParseBlockMapFile(temp_file.path); in TEST()
87 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST()
88 auto too_many_blocks = BlockMapData::ParseBlockMapFile(temp_file.path); in TEST()
95 ASSERT_TRUE(android::base::WriteStringToFile(content, temp_file1.path)); in TEST()
99 ASSERT_TRUE(mapping.MapFile(temp_file1.path)); in TEST()
111 ASSERT_TRUE(android::base::WriteStringToFile(content, package.path)); in TEST()
114 std::string filename = std::string("@") + block_map_file.path; in TEST()
118 std::string block_map_content = std::string(package.path) + "\n40960 4096\n1\n0 10\n"; in TEST()
119 ASSERT_TRUE(android::base::WriteStringToFile(block_map_content, block_map_file.path)); in TEST()
126 block_map_content = std::string(package.path) + "\n40960 4096\n1\n0 10"; in TEST()
127 ASSERT_TRUE(android::base::WriteStringToFile(block_map_content, block_map_file.path)); in TEST()
134 block_map_content = std::string(package.path) + "\n40960 4096\n1\n0 10\n\n\n"; in TEST()
135 ASSERT_TRUE(android::base::WriteStringToFile(block_map_content, block_map_file.path)); in TEST()
142 block_map_content = std::string(package.path) + "\n40960 4096\n3\n0 3\n3 5\n5 10\n"; in TEST()
143 ASSERT_TRUE(android::base::WriteStringToFile(block_map_content, block_map_file.path)); in TEST()
153 std::string filename = std::string("@") + temp_file.path; in TEST()
156 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n", temp_file.path)); in TEST()
159 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n0\n", temp_file.path)); in TEST()
163 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n1\n", temp_file.path)); in TEST()
166 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n2\n0 1\n", temp_file.path)); in TEST()
170 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\nabc 4096\n1\n0 1\n", temp_file.path)); in TEST()
173 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n\n0 1\n", temp_file.path)); in TEST()
177 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n0 4096\n1\n0 1\n", temp_file.path)); in TEST()
180 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 0\n1\n0 1\n", temp_file.path)); in TEST()
183 ASSERT_TRUE(android::base::WriteStringToFile("/somefile\n4096 4096\n0\n0 1\n", temp_file.path)); in TEST()
187 …ASSERT_TRUE(android::base::WriteStringToFile("/doesntexist\n4096 4096\n1\n0 1\n", temp_file.path)); in TEST()