Lines Matching refs:gbb
29 static GoogleBinaryBlockHeader *gbb = (GoogleBinaryBlockHeader *)gbb_data; variable
39 gbb->major_version = GBB_MAJOR_VER; in ResetMocks()
40 gbb->minor_version = GBB_MINOR_VER; in ResetMocks()
41 gbb->flags = 0; in ResetMocks()
44 gbb->hwid_offset = gbb_used; in ResetMocks()
45 strcpy(gbb_data + gbb->hwid_offset, "Test HWID"); in ResetMocks()
46 gbb->hwid_size = strlen(gbb_data + gbb->hwid_offset) + 1; in ResetMocks()
47 gbb_used = (gbb_used + gbb->hwid_size + 7) & ~7; in ResetMocks()
49 gbb->bmpfv_offset = gbb_used; in ResetMocks()
50 bhdr = (BmpBlockHeader *)(gbb_data + gbb->bmpfv_offset); in ResetMocks()
51 gbb->bmpfv_size = sizeof(BmpBlockHeader); in ResetMocks()
52 gbb_used = (gbb_used + gbb->bmpfv_size + 7) & ~7; in ResetMocks()
61 cparams.gbb_data = gbb; in ResetMocks()
68 cparams.gbb = VbExMalloc(sizeof(*gbb)); in ResetMocks()
69 gbb->header_size = sizeof(*gbb); in ResetMocks()
70 gbb->rootkey_offset = gbb_used; in ResetMocks()
71 gbb->rootkey_size = 64; in ResetMocks()
73 gbb->recovery_key_offset = gbb_used; in ResetMocks()
74 gbb->recovery_key_size = 64; in ResetMocks()
76 memcpy(cparams.gbb, gbb, sizeof(*gbb)); in ResetMocks()
120 cparams.gbb->hwid_size = 0; in DebugInfoTest()
126 cparams.gbb->hwid_offset = cparams.gbb_size + 1; in DebugInfoTest()
132 cparams.gbb->hwid_size = cparams.gbb_size; in DebugInfoTest()
150 cparams.gbb->bmpfv_size = 0; in LocalizationTest()