aboutsummaryrefslogtreecommitdiffstats
path: root/edi.h
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-09-07 15:32:01 +1000
committerNico Huber <nico.h@gmx.de>2021-10-01 11:35:03 +0000
commitcaf6e0dcb2cdac644a73affad9d6fbb4d9d4891e (patch)
tree97ffd38a6f803857d0fff17c8dc14fb55ac4294a /edi.h
parent1f62b8346efdf3a62ab5781c835946bb9c990810 (diff)
downloadflashrom-caf6e0dcb2cdac644a73affad9d6fbb4d9d4891e.tar.gz
flashrom-caf6e0dcb2cdac644a73affad9d6fbb4d9d4891e.tar.bz2
flashrom-caf6e0dcb2cdac644a73affad9d6fbb4d9d4891e.zip
tests: Revise mock chip definition and usage
This patch is doing few things: 1) Makes chip definitions static global so that they can be reused between test functions. 2) Promotes existing mock chip from 8KiB to 8MiB and eraseblocks are expanded accordingly. Old value of 8KiB was very small and it was confusing. Mock chip looks more realistic now. 3) Uses KiB and MiB macros from flash.h for mock chip definition 4) Renames CHIP_TOTAL_SIZE to MOCK_CHIP_SIZE to avoid confusion (there is also a W25Q128.V chip in the tests) 5) Makes chip definitions const so that every test can work on a fresh copy on the stack. BUG=b:181803212 TEST=builds and ninja test Change-Id: Ia9b5fc71e30610684e68e9aca9fb1970da8f840a Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/57437 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'edi.h')
0 files changed, 0 insertions, 0 deletions