Home
last modified time | relevance | path

Searched refs:MOCK_SECTOR_SIZE (Results 1 – 1 of 1) sorted by relevance

/external/vboot_reference/tests/
Dvboot_kernel_tests.c28 #define MOCK_SECTOR_SIZE 512 macro
65 static uint8_t mock_disk[MOCK_SECTOR_SIZE * MOCK_SECTOR_COUNT];
67 (GptHeader*)&mock_disk[MOCK_SECTOR_SIZE * 1];
69 (GptHeader*)&mock_disk[MOCK_SECTOR_SIZE * (MOCK_SECTOR_COUNT - 1)];
77 Memset(h, '\0', MOCK_SECTOR_SIZE); in SetupGptHeader()
190 memcpy(buffer, &mock_disk[lba_start * MOCK_SECTOR_SIZE], in VbExDiskRead()
191 lba_count * MOCK_SECTOR_SIZE); in VbExDiskRead()
204 memcpy(&mock_disk[lba_start * MOCK_SECTOR_SIZE], buffer, in VbExDiskWrite()
205 lba_count * MOCK_SECTOR_SIZE); in VbExDiskWrite()
298 g.sector_bytes = MOCK_SECTOR_SIZE; in ReadWriteGptTest()