Lines Matching refs:disk
98 string disk; in TEST() local
101 EXPECT_TRUE(utils::SplitPartitionName("/dev/sda3", &disk, &part_num)); in TEST()
102 EXPECT_EQ("/dev/sda", disk); in TEST()
105 EXPECT_TRUE(utils::SplitPartitionName("/dev/sdp1234", &disk, &part_num)); in TEST()
106 EXPECT_EQ("/dev/sdp", disk); in TEST()
109 EXPECT_TRUE(utils::SplitPartitionName("/dev/mmcblk0p3", &disk, &part_num)); in TEST()
110 EXPECT_EQ("/dev/mmcblk0", disk); in TEST()
113 EXPECT_TRUE(utils::SplitPartitionName("/dev/loop10", &disk, &part_num)); in TEST()
114 EXPECT_EQ("/dev/loop", disk); in TEST()
117 EXPECT_TRUE(utils::SplitPartitionName("/dev/loop28p11", &disk, &part_num)); in TEST()
118 EXPECT_EQ("/dev/loop28", disk); in TEST()
121 EXPECT_FALSE(utils::SplitPartitionName("/dev/mmcblk0p", &disk, &part_num)); in TEST()
122 EXPECT_FALSE(utils::SplitPartitionName("/dev/sda", &disk, &part_num)); in TEST()
123 EXPECT_FALSE(utils::SplitPartitionName("/dev/foo/bar", &disk, &part_num)); in TEST()
124 EXPECT_FALSE(utils::SplitPartitionName("/", &disk, &part_num)); in TEST()
125 EXPECT_FALSE(utils::SplitPartitionName("", &disk, &part_num)); in TEST()