Searched refs:TestBlockDeviceBuilder (Results 1 – 6 of 6) sorted by relevance
/bootable/libbootloader/gbl/libstorage/src/ |
D | gpt.rs | 420 alignment_scratch_size, AsBlockDevice, TestBlockDevice, TestBlockDeviceBuilder, 451 let mut dev = TestBlockDeviceBuilder::new() in test_gpt_too_many_entries() 504 let mut dev = TestBlockDeviceBuilder::new().set_data(disk).build(); in test_load_gpt_incorrect_magic() 523 let mut dev = TestBlockDeviceBuilder::new() in test_load_gpt_exceeds_max_entries() 535 let mut dev = TestBlockDeviceBuilder::new().set_data(disk).build(); in test_load_gpt_non_max_entries() 564 let mut dev = TestBlockDeviceBuilder::new() in test_uninitialized_gpt() 576 let mut dev = TestBlockDeviceBuilder::new() in test_gpt_read() 604 let mut dev = TestBlockDeviceBuilder::new() in test_gpt_write() 640 let mut dev = TestBlockDeviceBuilder::new() in test_gpt_rw_overflow()
|
D | lib.rs | 897 required_scratch_size, AsBlockDevice, TestBlockDevice, TestBlockDeviceBuilder, 960 let mut blk = TestBlockDeviceBuilder::new() in read_test_helper() 988 let mut blk = TestBlockDeviceBuilder::new() in write_test_helper() 1291 let mut blk = TestBlockDeviceBuilder::new() in test_no_alignment_require_zero_size_scratch() 1302 let storage_size = (TestBlockDeviceBuilder::DEFAULT_BLOCK_SIZE * 3) as usize; in test_scratch_too_small() 1304 TestBlockDeviceBuilder::new().set_size(storage_size).build().scratch.len() - 1; in test_scratch_too_small() 1305 let mut blk = TestBlockDeviceBuilder::new() in test_scratch_too_small() 1309 let block_size = TestBlockDeviceBuilder::DEFAULT_BLOCK_SIZE; in test_scratch_too_small() 1315 let mut blk = TestBlockDeviceBuilder::new() in test_read_overflow() 1327 let mut blk = TestBlockDeviceBuilder::new() in test_read_arithmetic_overflow() [all …]
|
D | non_blocking.rs | 631 use gbl_storage_testlib::{TestBlockDeviceBuilder, TimestampPauser}; 635 let mut blk = TestBlockDeviceBuilder::new() in test_read() 660 let mut blk = TestBlockDeviceBuilder::new() in test_write() 685 let mut blk = TestBlockDeviceBuilder::new() in test_read_write_blocking() 702 let mut blk = TestBlockDeviceBuilder::new() in test_abort() 733 let mut blk = TestBlockDeviceBuilder::new() in read_write_error_on_busy()
|
D | testlib.rs | 225 TestBlockDeviceBuilder::new().set_data(data).build() in from() 237 TestBlockDeviceBuilder::new().build() in default() 279 pub struct TestBlockDeviceBuilder<'a> { struct 287 impl<'a> TestBlockDeviceBuilder<'a> { implementation 562 let mut block_dev = TestBlockDeviceBuilder::new() in test_builder_partitions()
|
D | multi_blocks.rs | 149 AsBlockDevice, AsMultiBlockDevices, TestBlockDeviceBuilder, TestMultiBlockDevices, 187 TestBlockDeviceBuilder::new().set_size(blk_0.len()).build(), in test_multi_block_write() 188 TestBlockDeviceBuilder::new().set_size(blk_1.len()).build(), in test_multi_block_write()
|
/bootable/libbootloader/gbl/libgbl/src/fastboot/ |
D | mod.rs | 269 use gbl_storage_testlib::{TestBlockDeviceBuilder, TestMultiBlockDevices}; 532 TestMultiBlockDevices(vec![TestBlockDeviceBuilder::new().set_size(raw.len()).build()]); in test_flash_partition_sparse()
|