Lines Matching refs:partitioner
5 #include "device-partitioner.h"
286 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
287 ASSERT_EQ(paver::FixedDevicePartitioner::Initialize(&partitioner), ZX_OK);
288 ASSERT_FALSE(partitioner->IsCros());
296 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
297 ASSERT_EQ(paver::FixedDevicePartitioner::Initialize(&partitioner), ZX_OK);
298 ASSERT_FALSE(partitioner->UseSkipBlockInterface());
306 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
307 ASSERT_EQ(paver::FixedDevicePartitioner::Initialize(&partitioner), ZX_OK);
308 ASSERT_EQ(partitioner->AddPartition(paver::Partition::kZirconB, nullptr), ZX_ERR_NOT_SUPPORTED);
316 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
317 ASSERT_EQ(paver::FixedDevicePartitioner::Initialize(&partitioner), ZX_OK);
318 ASSERT_EQ(partitioner->WipePartitions(fbl::Vector<paver::Partition>()), ZX_OK);
326 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
327 ASSERT_EQ(paver::FixedDevicePartitioner::Initialize(&partitioner), ZX_OK);
329 ASSERT_EQ(partitioner->FinalizePartition(paver::Partition::kZirconA), ZX_OK);
330 ASSERT_EQ(partitioner->FinalizePartition(paver::Partition::kZirconB), ZX_OK);
331 ASSERT_EQ(partitioner->FinalizePartition(paver::Partition::kZirconR), ZX_OK);
332 ASSERT_EQ(partitioner->FinalizePartition(paver::Partition::kFuchsiaVolumeManager), ZX_OK);
347 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
348 ASSERT_EQ(paver::FixedDevicePartitioner::Initialize(&partitioner), ZX_OK);
351 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconA, &fd), ZX_OK);
352 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconB, &fd), ZX_OK);
353 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconR, &fd), ZX_OK);
354 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kFuchsiaVolumeManager, &fd), ZX_OK);
369 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
370 ASSERT_EQ(paver::FixedDevicePartitioner::Initialize(&partitioner), ZX_OK);
374 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconA, &fd), ZX_OK);
375 ASSERT_EQ(partitioner->GetBlockSize(fd, &block_size), ZX_OK);
377 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconB, &fd), ZX_OK);
378 ASSERT_EQ(partitioner->GetBlockSize(fd, &block_size), ZX_OK);
380 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconR, &fd), ZX_OK);
381 ASSERT_EQ(partitioner->GetBlockSize(fd, &block_size), ZX_OK);
383 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kFuchsiaVolumeManager, &fd), ZX_OK);
384 ASSERT_EQ(partitioner->GetBlockSize(fd, &block_size), ZX_OK);
413 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
414 ASSERT_EQ(paver::SkipBlockDevicePartitioner::Initialize(&partitioner), ZX_OK);
415 ASSERT_FALSE(partitioner->IsCros());
427 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
428 ASSERT_EQ(paver::SkipBlockDevicePartitioner::Initialize(&partitioner), ZX_OK);
429 ASSERT_TRUE(partitioner->UseSkipBlockInterface());
441 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
442 ASSERT_EQ(paver::SkipBlockDevicePartitioner::Initialize(&partitioner), ZX_OK);
443 ASSERT_EQ(partitioner->AddPartition(paver::Partition::kZirconB, nullptr), ZX_ERR_NOT_SUPPORTED);
455 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
456 ASSERT_EQ(paver::SkipBlockDevicePartitioner::Initialize(&partitioner), ZX_OK);
457 ASSERT_EQ(partitioner->WipePartitions(fbl::Vector<paver::Partition>()), ZX_OK);
469 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
470 ASSERT_EQ(paver::SkipBlockDevicePartitioner::Initialize(&partitioner), ZX_OK);
472 ASSERT_EQ(partitioner->FinalizePartition(paver::Partition::kBootloader), ZX_OK);
473 ASSERT_EQ(partitioner->FinalizePartition(paver::Partition::kZirconA), ZX_OK);
474 ASSERT_EQ(partitioner->FinalizePartition(paver::Partition::kZirconB), ZX_OK);
475 ASSERT_EQ(partitioner->FinalizePartition(paver::Partition::kZirconR), ZX_OK);
489 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
490 ASSERT_EQ(paver::SkipBlockDevicePartitioner::Initialize(&partitioner), ZX_OK);
493 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kBootloader, &fd), ZX_OK);
494 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconA, &fd), ZX_OK);
495 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconB, &fd), ZX_OK);
496 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconR, &fd), ZX_OK);
498 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kFuchsiaVolumeManager, &fd), ZX_OK);
512 fbl::unique_ptr<paver::DevicePartitioner> partitioner;
513 ASSERT_EQ(paver::SkipBlockDevicePartitioner::Initialize(&partitioner), ZX_OK);
517 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kBootloader, &fd), ZX_OK);
518 ASSERT_EQ(partitioner->GetBlockSize(fd, &block_size), ZX_OK);
520 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconA, &fd), ZX_OK);
521 ASSERT_EQ(partitioner->GetBlockSize(fd, &block_size), ZX_OK);
523 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconB, &fd), ZX_OK);
524 ASSERT_EQ(partitioner->GetBlockSize(fd, &block_size), ZX_OK);
526 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kZirconR, &fd), ZX_OK);
527 ASSERT_EQ(partitioner->GetBlockSize(fd, &block_size), ZX_OK);
530 ASSERT_EQ(partitioner->FindPartition(paver::Partition::kFuchsiaVolumeManager, &fd), ZX_OK);
531 ASSERT_EQ(partitioner->GetBlockSize(fd, &block_size), ZX_OK);