Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: src/platform/vboot_reference/tests/firmware_rollback_tests.c

Issue 1519008: VBoot Reference: 18 Exabytes ought to be enough for everybody (Closed)
Patch Set: Use symbolic constants. Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform/vboot_reference/tests/firmware_rollback_tests.c
diff --git a/src/platform/vboot_reference/tests/firmware_rollback_tests.c b/src/platform/vboot_reference/tests/firmware_rollback_tests.c
index e36c003a28d1df3cd0350ace194ce1aac9311513..9973ec7305544fbc6e44468e0c1933b05e2ab56a 100644
--- a/src/platform/vboot_reference/tests/firmware_rollback_tests.c
+++ b/src/platform/vboot_reference/tests/firmware_rollback_tests.c
@@ -15,6 +15,8 @@
#include "rollback_index.h"
#include "test_common.h"
+const char* kRootKeyPublicFile = "testkeys/key_rsa8192.keyb";
+
/* Tests that check for correctness of the VerifyFirmwareDriver_f() logic
* and rollback prevention. */
void VerifyFirmwareDriverTest(void) {
@@ -23,8 +25,7 @@ void VerifyFirmwareDriverTest(void) {
uint8_t* corrupt_firmwareA = NULL;
uint8_t* corrupt_firmwareB = NULL;
uint64_t len;
- uint8_t* root_key_pub = BufferFromFile("testkeys/key_rsa8192.keyb",
- &len);
+ uint8_t* root_key_pub = BufferFromFile(kRootKeyPublicFile, &len);
/* Initialize rollback index state. */
g_firmware_key_version = 1;
« no previous file with comments | « src/platform/vboot_reference/tests/big_kernel_tests.c ('k') | src/platform/vboot_reference/tests/firmware_splicing_tests.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698