diff options
author | Jakub Czapiga <jacz@semihalf.com> | 2022-01-10 13:36:47 +0000 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-01-14 14:29:29 +0000 |
commit | c08b6a7037e4dd21f08a2fc8d40db51c7b4e051b (patch) | |
tree | bcab84b0853151766b0fe4a3c324e962fb05bb4c /tests/mock/cbfs_file_mock.c | |
parent | 63ec2ac97aab17a7e5c8e929c96a188bcd59b9c0 (diff) |
tests: Fix tests code and comments style
This patch applies clang-format settings to most of tests files. Some
files were fixed "by-hand" to exclude some lines, which whould be less
readable after automatic style fixing.
Moreover, some comments (mostly in tests/lib/edid-test.c) were adjusted
to match coreboot coding style guidelines.
Change-Id: I69f25a7b6d8265800c731754e2fbb2255f482134
Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60970
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'tests/mock/cbfs_file_mock.c')
-rw-r--r-- | tests/mock/cbfs_file_mock.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/mock/cbfs_file_mock.c b/tests/mock/cbfs_file_mock.c index 2be89b06b3..09e23e2a7d 100644 --- a/tests/mock/cbfs_file_mock.c +++ b/tests/mock/cbfs_file_mock.c @@ -4,14 +4,14 @@ TEST_REGION(cbfs_cache, TEST_CBFS_CACHE_SIZE); -const u8 test_data_1[TEST_DATA_1_SIZE] = { TEST_DATA_1 }; -const u8 test_data_2[TEST_DATA_2_SIZE] = { TEST_DATA_2 }; -const u8 test_data_int_1[TEST_DATA_INT_1_SIZE] = { LE64(TEST_DATA_INT_1) }; -const u8 test_data_int_2[TEST_DATA_INT_2_SIZE] = { LE64(TEST_DATA_INT_2) }; -const u8 test_data_int_3[TEST_DATA_INT_3_SIZE] = { LE64(TEST_DATA_INT_3) }; +const u8 test_data_1[TEST_DATA_1_SIZE] = {TEST_DATA_1}; +const u8 test_data_2[TEST_DATA_2_SIZE] = {TEST_DATA_2}; +const u8 test_data_int_1[TEST_DATA_INT_1_SIZE] = {LE64(TEST_DATA_INT_1)}; +const u8 test_data_int_2[TEST_DATA_INT_2_SIZE] = {LE64(TEST_DATA_INT_2)}; +const u8 test_data_int_3[TEST_DATA_INT_3_SIZE] = {LE64(TEST_DATA_INT_3)}; -const u8 good_hash[VB2_SHA256_DIGEST_SIZE] = { TEST_SHA256 }; -const u8 bad_hash[VB2_SHA256_DIGEST_SIZE] = { INVALID_SHA256 }; +const u8 good_hash[VB2_SHA256_DIGEST_SIZE] = {TEST_SHA256}; +const u8 bad_hash[VB2_SHA256_DIGEST_SIZE] = {INVALID_SHA256}; const struct cbfs_test_file file_no_hash = { .header = HEADER_INITIALIZER(CBFS_TYPE_RAW, 0, TEST_DATA_1_SIZE), |