Lines Matching refs:disk
111 string disk; in TEST() local
114 EXPECT_TRUE(utils::SplitPartitionName("/dev/sda3", &disk, &part_num)); in TEST()
115 EXPECT_EQ("/dev/sda", disk); in TEST()
118 EXPECT_TRUE(utils::SplitPartitionName("/dev/sdp1234", &disk, &part_num)); in TEST()
119 EXPECT_EQ("/dev/sdp", disk); in TEST()
122 EXPECT_TRUE(utils::SplitPartitionName("/dev/mmcblk0p3", &disk, &part_num)); in TEST()
123 EXPECT_EQ("/dev/mmcblk0", disk); in TEST()
126 EXPECT_TRUE(utils::SplitPartitionName("/dev/loop10", &disk, &part_num)); in TEST()
127 EXPECT_EQ("/dev/loop", disk); in TEST()
130 EXPECT_TRUE(utils::SplitPartitionName("/dev/loop28p11", &disk, &part_num)); in TEST()
131 EXPECT_EQ("/dev/loop28", disk); in TEST()
134 EXPECT_FALSE(utils::SplitPartitionName("/dev/mmcblk0p", &disk, &part_num)); in TEST()
135 EXPECT_FALSE(utils::SplitPartitionName("/dev/sda", &disk, &part_num)); in TEST()
136 EXPECT_FALSE(utils::SplitPartitionName("/dev/foo/bar", &disk, &part_num)); in TEST()
137 EXPECT_FALSE(utils::SplitPartitionName("/", &disk, &part_num)); in TEST()
138 EXPECT_FALSE(utils::SplitPartitionName("", &disk, &part_num)); in TEST()