Home | History | Annotate | Download | only in init

Lines Matching defs:string

32     void TestGetSymlinks(const std::string& platform_device, const Uevent& uevent,
33 const std::vector<std::string> expected_links) {
37 std::string platform_device_dir = fake_sys_root.path + platform_device;
40 std::string platform_bus = fake_sys_root.path + "/bus/platform"s;
46 std::vector<std::string> result;
71 std::vector<std::string> expected_result{"/dev/block/platform/soc.0/f9824900.sdhci/mmcblk0"};
85 std::vector<std::string> expected_result{
101 std::vector<std::string> expected_result{
116 std::vector<std::string> expected_result{
130 std::vector<std::string> expected_result{"/dev/block/pci/pci0000:00/0000:00:1f.2/mmcblk0"};
141 std::vector<std::string> expected_result{};
152 std::vector<std::string> expected_result{"/dev/block/vbd/1234/mmcblk0"};
163 std::vector<std::string> expected_result{};
176 std::vector<std::string> expected_result;
187 std::string empty;
193 std::string good =
198 std::string good_copy = good;
204 std::string string = "abc!@#$%^&*()";
205 SanitizePartitionName(&string);
206 EXPECT_EQ("abc__________", string);
210 std::string string = "!@#$%^&*()";
211 SanitizePartitionName(&string);
212 EXPECT_EQ("__________", string);
216 std::string string = ")";
217 SanitizePartitionName(&string);
218 EXPECT_EQ("_", string);