Reduce expected length of VM's DICE chain
In preparation for only giving VMs the fragment of the DICE chain that
is unique to the VM, and so doesn't contain any device identifiers,
reduce the expected length of the DICE chain to the number of microdroid
boot stages. This will be tightened from a lower bound to an equality
once all the changes are complete.
Bug: 231422423
Test: TH
Change-Id: Ice82c7b6231d95c616c4bcaf7f1fddb9e759a7a8
diff --git a/tests/testapk/src/java/com/android/microdroid/test/MicrodroidTests.java b/tests/testapk/src/java/com/android/microdroid/test/MicrodroidTests.java
index db2ca0f..911efbb 100644
--- a/tests/testapk/src/java/com/android/microdroid/test/MicrodroidTests.java
+++ b/tests/testapk/src/java/com/android/microdroid/test/MicrodroidTests.java
@@ -358,9 +358,9 @@
List<DataItem> rootArrayItems = ((Array) dataItems.get(0)).getDataItems();
assertThat(rootArrayItems.size()).isAtLeast(2); // Public key and one certificate
if (mProtectedVm) {
- // When a true BCC is created, microdroid expects entries for at least: the root public
- // key, pvmfw, u-boot, u-boot-env, microdroid, app payload and the service process.
- assertThat(rootArrayItems.size()).isAtLeast(7);
+ // When a true DICE chain is created, microdroid expects entries for: u-boot,
+ // u-boot-env, microdroid, app payload and the service process.
+ assertThat(rootArrayItems.size()).isAtLeast(5);
}
}