Lines Matching refs:SplitPartitionName
117 EXPECT_TRUE(utils::SplitPartitionName("/dev/sda3", &disk, &part_num)); in TEST()
121 EXPECT_TRUE(utils::SplitPartitionName("/dev/sdp1234", &disk, &part_num)); in TEST()
125 EXPECT_TRUE(utils::SplitPartitionName("/dev/mmcblk0p3", &disk, &part_num)); in TEST()
129 EXPECT_TRUE(utils::SplitPartitionName("/dev/ubiblock3_2", &disk, &part_num)); in TEST()
133 EXPECT_TRUE(utils::SplitPartitionName("/dev/loop10", &disk, &part_num)); in TEST()
137 EXPECT_TRUE(utils::SplitPartitionName("/dev/loop28p11", &disk, &part_num)); in TEST()
141 EXPECT_TRUE(utils::SplitPartitionName("/dev/loop10_0", &disk, &part_num)); in TEST()
145 EXPECT_TRUE(utils::SplitPartitionName("/dev/loop28p11_0", &disk, &part_num)); in TEST()
149 EXPECT_FALSE(utils::SplitPartitionName("/dev/mmcblk0p", &disk, &part_num)); in TEST()
150 EXPECT_FALSE(utils::SplitPartitionName("/dev/sda", &disk, &part_num)); in TEST()
151 EXPECT_FALSE(utils::SplitPartitionName("/dev/foo/bar", &disk, &part_num)); in TEST()
152 EXPECT_FALSE(utils::SplitPartitionName("/", &disk, &part_num)); in TEST()
153 EXPECT_FALSE(utils::SplitPartitionName("", &disk, &part_num)); in TEST()