Lines Matching refs:partition
185 for (const auto& partition : group.partitions) { in NewFakeMetadata() local
186 auto p = builder->AddPartition(partition.name, group.name, 0 /* attr */); in NewFakeMetadata()
187 EXPECT_TRUE(p && builder->ResizePartition(p, partition.size)); in NewFakeMetadata()
204 for (const auto& partition : group.partitions) { in MatchAndExplain() local
205 auto p = metadata->FindPartition(partition.name); in MatchAndExplain()
209 *listener << "No partition " << partition.name; in MatchAndExplain()
213 if (p->size() != partition.size) { in MatchAndExplain()
216 *listener << "Partition " << partition.name << " has size " in MatchAndExplain()
217 << p->size() << ", expected " << partition.size; in MatchAndExplain()
223 *listener << "Partition " << partition.name << " has group " in MatchAndExplain()
327 for (const auto& partition : partitions) { in ExpectUnmap() local
328 EXPECT_CALL(dynamicControl(), UnmapPartitionOnDeviceMapper(partition, _)) in ExpectUnmap()
329 .WillOnce(Invoke([this](auto partition, auto) { in ExpectUnmap() argument
330 mapped_devices_.erase(partition); in ExpectUnmap()
338 for (const auto& partition : partitions) { in ExpectDevicesAreMapped() local
339 EXPECT_THAT(mapped_devices_, Contains(Key(Eq(partition)))) in ExpectDevicesAreMapped()
340 << "Expect that " << partition << " is mapped, but it is not."; in ExpectDevicesAreMapped()
729 const string& partition, in SimpleGroup() argument
733 .partitions = {{.name = partition, .size = partition_size}}}; in SimpleGroup()