Lines Matching full:std
22 std::string prefixName = "."; in TEST()
23 std::string testFileName = prefixName + "/life_time"; in TEST()
24 std::ofstream testFile; in TEST()
26 std::ios::out | std::ios::binary | std::ios::trunc); in TEST()
30 EXPECT_TRUE(std::filesystem::remove(testFileName)); in TEST()
35 std::string prefixName = "."; in TEST()
36 std::string testFileName = prefixName + "/life_time"; in TEST()
37 std::ofstream testFile; in TEST()
39 std::ios::out | std::ios::binary | std::ios::trunc); in TEST()
44 EXPECT_TRUE(std::filesystem::remove(testFileName)); in TEST()
49 std::string prefixName = "."; in TEST()
50 std::string testFileName = prefixName + "/life_time"; in TEST()
51 std::ofstream testFile; in TEST()
53 std::ios::out | std::ios::binary | std::ios::trunc); in TEST()
57 EXPECT_TRUE(std::filesystem::remove(testFileName)); in TEST()
62 std::string prefixName = "."; in TEST()
63 std::string testFileName = prefixName + "/name"; in TEST()
70 std::string prefixName = "."; in TEST()
71 std::string testFileName = prefixName + "/name"; in TEST()
72 std::ofstream testFile; in TEST()
74 std::ios::out | std::ios::binary | std::ios::trunc); in TEST()
78 EXPECT_TRUE(std::filesystem::remove(testFileName)); in TEST()
83 std::string prefixName = "."; in TEST()
84 std::string testFileName = prefixName + "/serial"; in TEST()
91 std::string prefixName = "."; in TEST()
92 std::string testFileName = prefixName + "/serial"; in TEST()
93 std::ofstream testFile; in TEST()
95 std::ios::out | std::ios::binary | std::ios::trunc); in TEST()
99 EXPECT_TRUE(std::filesystem::remove(testFileName)); in TEST()
108 data.emplace(std::string("Type"), in TEST()
110 data.emplace(std::string("Name"), estoraged::BasicVariantType("emmc")); in TEST()
111 data.emplace(std::string("LocationCode"), in TEST()
115 std::filesystem::create_directories("abc/device"); in TEST()
116 const std::string dummyTypeFileName("abc/device/type"); in TEST()
117 std::ofstream dummyTypeFile(dummyTypeFileName, in TEST()
118 std::ios::out | std::ios::trunc); in TEST()
123 std::filesystem::create_directories("def/device"); in TEST()
126 std::filesystem::create_directories("mmcblk0/device"); in TEST()
127 const std::string typeFileName("mmcblk0/device/type"); in TEST()
128 std::ofstream typeFile(typeFileName, std::ios::out | std::ios::trunc); in TEST()
133 std::filesystem::path deviceFile, sysfsDir; in TEST()
134 std::string luksName, locationCode; in TEST()
136 estoraged::util::findDevice(data, std::filesystem::path("./")); in TEST()
150 EXPECT_EQ(3U, std::filesystem::remove_all("mmcblk0")); in TEST()
151 EXPECT_EQ(3U, std::filesystem::remove_all("abc")); in TEST()
152 EXPECT_EQ(2U, std::filesystem::remove_all("def")); in TEST()
162 data.emplace(std::string("Type"), in TEST()
164 data.emplace(std::string("Name"), estoraged::BasicVariantType("emmc")); in TEST()
165 data.emplace(std::string("LocationCode"), in TEST()
167 data.emplace(std::string("EraseMaxGeometry"), in TEST()
169 data.emplace(std::string("EraseMinGeometry"), in TEST()
173 std::filesystem::create_directories("abc/device"); in TEST()
174 const std::string dummyTypeFileName("abc/device/type"); in TEST()
175 std::ofstream dummyTypeFile(dummyTypeFileName, in TEST()
176 std::ios::out | std::ios::trunc); in TEST()
181 std::filesystem::create_directories("def/device"); in TEST()
184 std::filesystem::create_directories("mmcblk0/device"); in TEST()
185 const std::string typeFileName("mmcblk0/device/type"); in TEST()
186 std::ofstream typeFile(typeFileName, std::ios::out | std::ios::trunc); in TEST()
191 std::filesystem::path deviceFile, sysfsDir; in TEST()
192 std::string luksName, locationCode; in TEST()
194 estoraged::util::findDevice(data, std::filesystem::path("./")); in TEST()
208 EXPECT_EQ(3U, std::filesystem::remove_all("mmcblk0")); in TEST()
209 EXPECT_EQ(3U, std::filesystem::remove_all("abc")); in TEST()
210 EXPECT_EQ(2U, std::filesystem::remove_all("def")); in TEST()
219 data.emplace(std::string("Name"), estoraged::BasicVariantType("emmc")); in TEST()
222 std::filesystem::create_directories("abc/device"); in TEST()
223 const std::string dummyTypeFileName("abc/device/type"); in TEST()
224 std::ofstream dummyTypeFile(dummyTypeFileName, in TEST()
225 std::ios::out | std::ios::trunc); in TEST()
230 std::filesystem::create_directories("def/device"); in TEST()
233 std::filesystem::create_directories("mmcblk0/device"); in TEST()
234 const std::string typeFileName("mmcblk0/device/type"); in TEST()
235 std::ofstream typeFile(typeFileName, std::ios::out | std::ios::trunc); in TEST()
241 estoraged::util::findDevice(data, std::filesystem::path("./")); in TEST()
245 EXPECT_EQ(3U, std::filesystem::remove_all("mmcblk0")); in TEST()
246 EXPECT_EQ(3U, std::filesystem::remove_all("abc")); in TEST()
247 EXPECT_EQ(2U, std::filesystem::remove_all("def")); in TEST()
256 data.emplace(std::string("Type"), estoraged::BasicVariantType("NvmeDrive")); in TEST()
257 data.emplace(std::string("Name"), in TEST()
261 std::filesystem::create_directories("abc/device"); in TEST()
262 const std::string dummyTypeFileName("abc/device/type"); in TEST()
263 std::ofstream dummyTypeFile(dummyTypeFileName, in TEST()
264 std::ios::out | std::ios::trunc); in TEST()
269 std::filesystem::create_directories("def/device"); in TEST()
272 std::filesystem::create_directories("mmcblk0/device"); in TEST()
273 const std::string typeFileName("mmcblk0/device/type"); in TEST()
274 std::ofstream typeFile(typeFileName, std::ios::out | std::ios::trunc); in TEST()
280 estoraged::util::findDevice(data, std::filesystem::path("./")); in TEST()
284 EXPECT_EQ(3U, std::filesystem::remove_all("mmcblk0")); in TEST()
285 EXPECT_EQ(3U, std::filesystem::remove_all("abc")); in TEST()
286 EXPECT_EQ(2U, std::filesystem::remove_all("def")); in TEST()
295 data.emplace(std::string("Type"), in TEST()
297 data.emplace(std::string("Name"), estoraged::BasicVariantType("emmc")); in TEST()
300 std::filesystem::create_directories("abc/device"); in TEST()
301 const std::string dummyTypeFileName("abc/device/type"); in TEST()
302 std::ofstream dummyTypeFile(dummyTypeFileName, in TEST()
303 std::ios::out | std::ios::trunc); in TEST()
308 std::filesystem::create_directories("def/device"); in TEST()
312 estoraged::util::findDevice(data, std::filesystem::path("./")); in TEST()
316 EXPECT_EQ(3U, std::filesystem::remove_all("abc")); in TEST()
317 EXPECT_EQ(2U, std::filesystem::remove_all("def")); in TEST()