Lines Matching full:flags
51 gbb.flags = 0; in ResetMocks()
168 TEST_EQ(shared->flags, 0, " shared flags"); in VbInitTest()
169 TEST_EQ(iparams.out_flags, 0, " out flags"); in VbInitTest()
185 * Test boot switch flags which are just passed through to shared in VbInitTest()
186 * flags, and don't have an effect on VbInit(). in VbInitTest()
189 iparams.flags = VB_INIT_FLAG_WP_ENABLED; in VbInitTest()
190 TestVbInit(0, 0, "Flags test WP"); in VbInitTest()
191 TEST_EQ(shared->flags, VBSD_BOOT_FIRMWARE_WP_ENABLED, in VbInitTest()
192 " shared flags"); in VbInitTest()
195 iparams.flags = VB_INIT_FLAG_SW_WP_ENABLED; in VbInitTest()
196 TestVbInit(0, 0, "Flags test SW WP"); in VbInitTest()
197 TEST_EQ(shared->flags, VBSD_BOOT_FIRMWARE_SW_WP_ENABLED, in VbInitTest()
198 " shared flags"); in VbInitTest()
201 iparams.flags = VB_INIT_FLAG_RO_NORMAL_SUPPORT; in VbInitTest()
202 TestVbInit(0, 0, " flags test RO normal"); in VbInitTest()
203 TEST_EQ(shared->flags, VBSD_BOOT_RO_NORMAL_SUPPORT, in VbInitTest()
204 " shared flags"); in VbInitTest()
207 iparams.flags = VB_INIT_FLAG_EC_SOFTWARE_SYNC; in VbInitTest()
208 TestVbInit(0, 0, " flags test EC software sync"); in VbInitTest()
209 TEST_EQ(shared->flags, VBSD_EC_SOFTWARE_SYNC, " shared flags"); in VbInitTest()
212 iparams.flags = VB_INIT_FLAG_EC_SLOW_UPDATE; in VbInitTest()
213 TestVbInit(0, 0, " flags test EC slow update"); in VbInitTest()
214 TEST_EQ(shared->flags, VBSD_EC_SLOW_UPDATE, " shared flags"); in VbInitTest()
218 iparams.flags = VB_INIT_FLAG_S3_RESUME; in VbInitTest()
223 TEST_EQ(shared->flags, VBSD_BOOT_S3_RESUME, " shared flags S3"); in VbInitTest()
224 TEST_EQ(iparams.out_flags, 0, " out flags"); in VbInitTest()
230 iparams.flags = VB_INIT_FLAG_S3_RESUME; in VbInitTest()
245 iparams.flags = VB_INIT_FLAG_S3_RESUME; in VbInitTest()
249 TEST_EQ(iparams.out_flags, VB_INIT_OUT_S3_DEBUG_BOOT, " out flags"); in VbInitTest()
258 TEST_EQ(iparams.out_flags, 0, " out flags"); in VbInitTest()
267 iparams.flags = VB_INIT_FLAG_S3_RESUME; in VbInitTest()
275 iparams.flags = VB_INIT_FLAG_DEV_SWITCH_ON; in VbInitTest()
283 VB_INIT_OUT_ENABLE_ALTERNATE_OS, " out flags"); in VbInitTest()
284 TEST_EQ(shared->flags, VBSD_BOOT_DEV_SWITCH_ON, " shared flags"); in VbInitTest()
288 iparams.flags = 0; in VbInitTest()
289 gbb.flags = GBB_FLAG_FORCE_DEV_SWITCH_ON; in VbInitTest()
297 VB_INIT_OUT_ENABLE_ALTERNATE_OS, " out flags"); in VbInitTest()
298 TEST_EQ(shared->flags, VBSD_BOOT_DEV_SWITCH_ON, " shared flags"); in VbInitTest()
302 iparams.flags = VB_INIT_FLAG_DEV_SWITCH_ON | in VbInitTest()
310 iparams.flags = VB_INIT_FLAG_DEV_SWITCH_ON | in VbInitTest()
318 iparams.flags = VB_INIT_FLAG_OPROM_MATTERS | VB_INIT_FLAG_OPROM_LOADED; in VbInitTest()
325 gbb.flags = GBB_FLAG_LOAD_OPTION_ROMS; in VbInitTest()
327 TEST_EQ(iparams.out_flags, VB_INIT_OUT_ENABLE_OPROM, " out flags"); in VbInitTest()
333 iparams.flags = VB_INIT_FLAG_DEV_SWITCH_ON; in VbInitTest()
339 VB_INIT_OUT_ENABLE_DEVELOPER, " out flags"); in VbInitTest()
345 iparams.flags = VB_INIT_FLAG_DEV_SWITCH_ON; in VbInitTest()
346 gbb.flags = GBB_FLAG_ENABLE_ALTERNATE_OS; in VbInitTest()
353 VB_INIT_OUT_ENABLE_ALTERNATE_OS, " out flags"); in VbInitTest()
357 gbb.flags = GBB_FLAG_ENABLE_ALTERNATE_OS; in VbInitTest()
359 TEST_EQ(iparams.out_flags, 0, " out flags"); in VbInitTest()
371 VB_INIT_OUT_ENABLE_USB_STORAGE, " out flags"); in VbInitTest()
372 TEST_EQ(shared->flags, 0, " shared flags"); in VbInitTest()
376 iparams.flags = VB_INIT_FLAG_REC_BUTTON_PRESSED; in VbInitTest()
384 VB_INIT_OUT_ENABLE_USB_STORAGE, " out flags"); in VbInitTest()
385 TEST_EQ(shared->flags, VBSD_BOOT_REC_SWITCH_ON, " shared flags"); in VbInitTest()
389 iparams.flags = VB_INIT_FLAG_REC_BUTTON_PRESSED; in VbInitTest()
398 iparams.flags = VB_INIT_FLAG_PREVIOUS_BOOT_FAIL; in VbInitTest()
406 VB_INIT_OUT_ENABLE_USB_STORAGE, " out flags"); in VbInitTest()
407 TEST_EQ(shared->flags, 0, " shared flags"); in VbInitTest()
411 iparams.flags = VB_INIT_FLAG_PREVIOUS_BOOT_FAIL; in VbInitTest()
419 iparams.flags = VB_INIT_FLAG_REC_BUTTON_PRESSED | in VbInitTest()
428 VB_INIT_OUT_ENABLE_USB_STORAGE, " out flags"); in VbInitTest()
429 TEST_EQ(shared->flags, in VbInitTest()
431 " shared flags"); in VbInitTest()
445 iparams.flags = VB_INIT_FLAG_REC_BUTTON_PRESSED; in VbInitTestTPM()
474 iparams.flags = VB_INIT_FLAG_VIRTUAL_DEV_SWITCH; in VbInitTestTPM()
477 TEST_EQ(iparams.out_flags, 0, " out flags"); in VbInitTestTPM()
478 TEST_EQ(shared->flags, VBSD_HONOR_VIRT_DEV_SWITCH, " shared flags"); in VbInitTestTPM()
486 iparams.flags = VB_INIT_FLAG_VIRTUAL_DEV_SWITCH; in VbInitTestTPM()
495 VB_INIT_OUT_ENABLE_ALTERNATE_OS, " out flags"); in VbInitTestTPM()
496 TEST_EQ(shared->flags, in VbInitTestTPM()
498 " shared flags"); in VbInitTestTPM()
510 TEST_EQ(iparams.out_flags, 0, " out flags"); in VbInitTestTPM()
511 TEST_EQ(shared->flags, 0, " shared flags"); in VbInitTestTPM()
515 iparams.flags = VB_INIT_FLAG_DEV_SWITCH_ON; in VbInitTestTPM()
523 VB_INIT_OUT_ENABLE_ALTERNATE_OS, " out flags"); in VbInitTestTPM()
524 TEST_EQ(shared->flags, VBSD_BOOT_DEV_SWITCH_ON, " shared flags"); in VbInitTestTPM()
546 TEST_EQ(shared->flags, 0, " shared flags"); in VbInitTestBackup()
547 TEST_EQ(iparams.out_flags, 0, " out flags"); in VbInitTestBackup()
565 TEST_EQ(shared->flags, 0, " shared flags"); in VbInitTestBackup()
566 TEST_EQ(iparams.out_flags, 0, " out flags"); in VbInitTestBackup()
578 /* But normal mode should have cleared the DEV_BOOT flags */ in VbInitTestBackup()
587 /* And the backup should reflect the persisent flags. */ in VbInitTestBackup()
616 TEST_EQ(shared->flags, 0, " shared flags"); in VbInitTestBackup()
617 TEST_EQ(iparams.out_flags, 0, " out flags"); in VbInitTestBackup()
621 iparams.flags = VB_INIT_FLAG_DEV_SWITCH_ON; in VbInitTestBackup()
629 VB_INIT_OUT_ENABLE_ALTERNATE_OS, " out flags"); in VbInitTestBackup()
630 TEST_EQ(shared->flags, VBSD_BOOT_DEV_SWITCH_ON, " shared flags"); in VbInitTestBackup()
650 VB_INIT_OUT_ENABLE_DEVELOPER, " out flags"); in VbInitTestBackup()
651 TEST_EQ(shared->flags, VBSD_BOOT_DEV_SWITCH_ON, " shared flags"); in VbInitTestBackup()
663 VB_INIT_OUT_ENABLE_DEVELOPER, " out flags"); in VbInitTestBackup()
664 TEST_EQ(shared->flags, VBSD_BOOT_DEV_SWITCH_ON, " shared flags"); in VbInitTestBackup()
702 VB_INIT_OUT_ENABLE_DEVELOPER, " out flags"); in VbInitTestBackup()
703 TEST_EQ(shared->flags, VBSD_BOOT_DEV_SWITCH_ON, " shared flags"); in VbInitTestBackup()
726 * time, then the DEV_BOOT_* flags will be cleared. in VbInitTestBackup()
731 iparams.flags = 0; in VbInitTestBackup()
734 TEST_EQ(iparams.out_flags, 0, " out flags"); in VbInitTestBackup()
735 TEST_EQ(shared->flags, 0, " shared flags"); in VbInitTestBackup()
750 /* But not the DEV_BOOT_* flags */ in VbInitTestBackup()