Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 1 | // Copyright (C) 2021 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package apex |
| 16 | |
| 17 | import ( |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 18 | "strings" |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 19 | "testing" |
| 20 | |
| 21 | "android/soong/android" |
| 22 | "android/soong/dexpreopt" |
| 23 | "android/soong/java" |
| 24 | ) |
| 25 | |
| 26 | // Contains tests for boot_image logic from java/boot_image.go as the ART boot image requires |
| 27 | // modules from the ART apex. |
| 28 | |
Paul Duffin | 52bfaa4 | 2021-03-23 23:40:12 +0000 | [diff] [blame] | 29 | var prepareForTestWithBootImage = android.GroupFixturePreparers( |
| 30 | java.PrepareForTestWithDexpreopt, |
| 31 | PrepareForTestWithApexBuildComponents, |
| 32 | ) |
| 33 | |
| 34 | // Some additional files needed for the art apex. |
| 35 | var prepareForTestWithArtApex = android.FixtureMergeMockFs(android.MockFS{ |
| 36 | "com.android.art.avbpubkey": nil, |
| 37 | "com.android.art.pem": nil, |
| 38 | "system/sepolicy/apex/com.android.art-file_contexts": nil, |
| 39 | }) |
| 40 | |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 41 | func TestBootImages(t *testing.T) { |
Paul Duffin | 52bfaa4 | 2021-03-23 23:40:12 +0000 | [diff] [blame] | 42 | result := android.GroupFixturePreparers( |
| 43 | prepareForTestWithBootImage, |
Paul Duffin | 34d433a | 2021-03-09 14:13:25 +0000 | [diff] [blame] | 44 | // Configure some libraries in the art and framework boot images. |
| 45 | dexpreopt.FixtureSetArtBootJars("com.android.art:baz", "com.android.art:quuz"), |
| 46 | dexpreopt.FixtureSetBootJars("platform:foo", "platform:bar"), |
Paul Duffin | 52bfaa4 | 2021-03-23 23:40:12 +0000 | [diff] [blame] | 47 | prepareForTestWithArtApex, |
| 48 | |
| 49 | java.PrepareForTestWithJavaSdkLibraryFiles, |
| 50 | java.FixtureWithLastReleaseApis("foo"), |
Paul Duffin | 34d433a | 2021-03-09 14:13:25 +0000 | [diff] [blame] | 51 | ).RunTestWithBp(t, ` |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 52 | java_sdk_library { |
| 53 | name: "foo", |
| 54 | srcs: ["b.java"], |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | java_library { |
| 58 | name: "bar", |
| 59 | srcs: ["b.java"], |
| 60 | installable: true, |
| 61 | } |
| 62 | |
| 63 | apex { |
| 64 | name: "com.android.art", |
| 65 | key: "com.android.art.key", |
| 66 | java_libs: [ |
| 67 | "baz", |
| 68 | "quuz", |
| 69 | ], |
Mathew Inwood | f8dcf5e | 2021-02-16 11:40:16 +0000 | [diff] [blame] | 70 | updatable: false, |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | apex_key { |
| 74 | name: "com.android.art.key", |
| 75 | public_key: "com.android.art.avbpubkey", |
| 76 | private_key: "com.android.art.pem", |
| 77 | } |
| 78 | |
| 79 | java_library { |
| 80 | name: "baz", |
| 81 | apex_available: [ |
| 82 | "com.android.art", |
| 83 | ], |
| 84 | srcs: ["b.java"], |
| 85 | } |
| 86 | |
| 87 | java_library { |
| 88 | name: "quuz", |
| 89 | apex_available: [ |
| 90 | "com.android.art", |
| 91 | ], |
| 92 | srcs: ["b.java"], |
| 93 | } |
Paul Duffin | 5bbfef8 | 2021-01-30 12:57:26 +0000 | [diff] [blame] | 94 | |
| 95 | boot_image { |
| 96 | name: "art-boot-image", |
| 97 | image_name: "art", |
Paul Duffin | c7ef989 | 2021-03-23 23:21:59 +0000 | [diff] [blame] | 98 | apex_available: [ |
| 99 | "com.android.art", |
| 100 | ], |
Paul Duffin | 5bbfef8 | 2021-01-30 12:57:26 +0000 | [diff] [blame] | 101 | } |
| 102 | |
| 103 | boot_image { |
| 104 | name: "framework-boot-image", |
| 105 | image_name: "boot", |
| 106 | } |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 107 | `, |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 108 | ) |
| 109 | |
| 110 | // Make sure that the framework-boot-image is using the correct configuration. |
Paul Duffin | 34d433a | 2021-03-09 14:13:25 +0000 | [diff] [blame] | 111 | checkBootImage(t, result, "framework-boot-image", "platform:foo,platform:bar", ` |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 112 | test_device/dex_bootjars/android/system/framework/arm/boot-foo.art |
| 113 | test_device/dex_bootjars/android/system/framework/arm/boot-foo.oat |
| 114 | test_device/dex_bootjars/android/system/framework/arm/boot-foo.vdex |
| 115 | test_device/dex_bootjars/android/system/framework/arm/boot-bar.art |
| 116 | test_device/dex_bootjars/android/system/framework/arm/boot-bar.oat |
| 117 | test_device/dex_bootjars/android/system/framework/arm/boot-bar.vdex |
| 118 | test_device/dex_bootjars/android/system/framework/arm64/boot-foo.art |
| 119 | test_device/dex_bootjars/android/system/framework/arm64/boot-foo.oat |
| 120 | test_device/dex_bootjars/android/system/framework/arm64/boot-foo.vdex |
| 121 | test_device/dex_bootjars/android/system/framework/arm64/boot-bar.art |
| 122 | test_device/dex_bootjars/android/system/framework/arm64/boot-bar.oat |
| 123 | test_device/dex_bootjars/android/system/framework/arm64/boot-bar.vdex |
| 124 | `) |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 125 | |
| 126 | // Make sure that the art-boot-image is using the correct configuration. |
Paul Duffin | 34d433a | 2021-03-09 14:13:25 +0000 | [diff] [blame] | 127 | checkBootImage(t, result, "art-boot-image", "com.android.art:baz,com.android.art:quuz", ` |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 128 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm/boot.art |
| 129 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm/boot.oat |
| 130 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm/boot.vdex |
| 131 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm/boot-quuz.art |
| 132 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm/boot-quuz.oat |
| 133 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm/boot-quuz.vdex |
| 134 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot.art |
| 135 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot.oat |
| 136 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot.vdex |
| 137 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-quuz.art |
| 138 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-quuz.oat |
| 139 | test_device/dex_artjars/android/apex/art_boot_images/javalib/arm64/boot-quuz.vdex |
| 140 | `) |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 141 | } |
| 142 | |
Paul Duffin | 34d433a | 2021-03-09 14:13:25 +0000 | [diff] [blame] | 143 | func checkBootImage(t *testing.T, result *android.TestResult, moduleName string, expectedConfiguredModules string, expectedBootImageFiles string) { |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 144 | t.Helper() |
| 145 | |
Paul Duffin | 34d433a | 2021-03-09 14:13:25 +0000 | [diff] [blame] | 146 | bootImage := result.ModuleForTests(moduleName, "android_common").Module().(*java.BootImageModule) |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 147 | |
Paul Duffin | 34d433a | 2021-03-09 14:13:25 +0000 | [diff] [blame] | 148 | bootImageInfo := result.ModuleProvider(bootImage, java.BootImageInfoProvider).(java.BootImageInfo) |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 149 | modules := bootImageInfo.Modules() |
Paul Duffin | 34d433a | 2021-03-09 14:13:25 +0000 | [diff] [blame] | 150 | android.AssertStringEquals(t, "invalid modules for "+moduleName, expectedConfiguredModules, modules.String()) |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 151 | |
| 152 | // Get a list of all the paths in the boot image sorted by arch type. |
| 153 | allPaths := []string{} |
| 154 | bootImageFilesByArchType := bootImageInfo.AndroidBootImageFilesByArchType() |
| 155 | for _, archType := range android.ArchTypeList() { |
| 156 | if paths, ok := bootImageFilesByArchType[archType]; ok { |
| 157 | for _, path := range paths { |
| 158 | allPaths = append(allPaths, android.NormalizePathForTesting(path)) |
| 159 | } |
| 160 | } |
| 161 | } |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 162 | |
Paul Duffin | 34d433a | 2021-03-09 14:13:25 +0000 | [diff] [blame] | 163 | android.AssertTrimmedStringEquals(t, "invalid paths for "+moduleName, expectedBootImageFiles, strings.Join(allPaths, "\n")) |
Paul Duffin | 3451e16 | 2021-01-20 15:16:56 +0000 | [diff] [blame] | 164 | } |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 165 | |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 166 | func TestBootImageInArtApex(t *testing.T) { |
Paul Duffin | 52bfaa4 | 2021-03-23 23:40:12 +0000 | [diff] [blame] | 167 | result := android.GroupFixturePreparers( |
| 168 | prepareForTestWithBootImage, |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 169 | prepareForTestWithArtApex, |
| 170 | |
| 171 | // Configure some libraries in the art boot image. |
| 172 | dexpreopt.FixtureSetArtBootJars("com.android.art:foo", "com.android.art:bar"), |
Paul Duffin | 34d433a | 2021-03-09 14:13:25 +0000 | [diff] [blame] | 173 | ).RunTestWithBp(t, ` |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 174 | apex { |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 175 | name: "com.android.art", |
| 176 | key: "com.android.art.key", |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 177 | boot_images: [ |
| 178 | "mybootimage", |
| 179 | ], |
Paul Duffin | 4d101b6 | 2021-03-24 15:42:20 +0000 | [diff] [blame] | 180 | // bar (like foo) should be transitively included in this apex because it is part of the |
| 181 | // mybootimage boot_image. However, it is kept here to ensure that the apex dedups the files |
| 182 | // correctly. |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 183 | java_libs: [ |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 184 | "bar", |
| 185 | ], |
Mathew Inwood | f8dcf5e | 2021-02-16 11:40:16 +0000 | [diff] [blame] | 186 | updatable: false, |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 187 | } |
| 188 | |
| 189 | apex_key { |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 190 | name: "com.android.art.key", |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 191 | public_key: "testkey.avbpubkey", |
| 192 | private_key: "testkey.pem", |
| 193 | } |
| 194 | |
| 195 | java_library { |
| 196 | name: "foo", |
| 197 | srcs: ["b.java"], |
| 198 | installable: true, |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 199 | apex_available: [ |
| 200 | "com.android.art", |
| 201 | ], |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 202 | } |
| 203 | |
| 204 | java_library { |
| 205 | name: "bar", |
| 206 | srcs: ["b.java"], |
| 207 | installable: true, |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 208 | apex_available: [ |
| 209 | "com.android.art", |
| 210 | ], |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 211 | } |
| 212 | |
| 213 | boot_image { |
| 214 | name: "mybootimage", |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 215 | image_name: "art", |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 216 | apex_available: [ |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 217 | "com.android.art", |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 218 | ], |
| 219 | } |
Paul Duffin | 396229f | 2021-03-18 18:30:31 +0000 | [diff] [blame] | 220 | |
| 221 | // Make sure that a preferred prebuilt doesn't affect the apex. |
| 222 | prebuilt_boot_image { |
| 223 | name: "mybootimage", |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 224 | image_name: "art", |
Paul Duffin | 396229f | 2021-03-18 18:30:31 +0000 | [diff] [blame] | 225 | prefer: true, |
| 226 | apex_available: [ |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 227 | "com.android.art", |
Paul Duffin | 396229f | 2021-03-18 18:30:31 +0000 | [diff] [blame] | 228 | ], |
| 229 | } |
Paul Duffin | 34d433a | 2021-03-09 14:13:25 +0000 | [diff] [blame] | 230 | `) |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 231 | |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 232 | ensureExactContents(t, result.TestContext, "com.android.art", "android_common_com.android.art_image", []string{ |
| 233 | "javalib/arm/boot.art", |
| 234 | "javalib/arm/boot.oat", |
| 235 | "javalib/arm/boot.vdex", |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 236 | "javalib/arm/boot-bar.art", |
| 237 | "javalib/arm/boot-bar.oat", |
| 238 | "javalib/arm/boot-bar.vdex", |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 239 | "javalib/arm64/boot.art", |
| 240 | "javalib/arm64/boot.oat", |
| 241 | "javalib/arm64/boot.vdex", |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 242 | "javalib/arm64/boot-bar.art", |
| 243 | "javalib/arm64/boot-bar.oat", |
| 244 | "javalib/arm64/boot-bar.vdex", |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 245 | "javalib/bar.jar", |
| 246 | "javalib/foo.jar", |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 247 | }) |
Paul Duffin | 396229f | 2021-03-18 18:30:31 +0000 | [diff] [blame] | 248 | |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 249 | java.CheckModuleDependencies(t, result.TestContext, "com.android.art", "android_common_com.android.art_image", []string{ |
| 250 | `bar`, |
| 251 | `com.android.art.key`, |
Paul Duffin | 396229f | 2021-03-18 18:30:31 +0000 | [diff] [blame] | 252 | `mybootimage`, |
| 253 | }) |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 254 | } |
| 255 | |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 256 | func TestBootImageInPrebuiltArtApex(t *testing.T) { |
| 257 | result := android.GroupFixturePreparers( |
| 258 | prepareForTestWithBootImage, |
| 259 | prepareForTestWithArtApex, |
| 260 | |
| 261 | android.FixtureMergeMockFs(android.MockFS{ |
| 262 | "com.android.art-arm64.apex": nil, |
| 263 | "com.android.art-arm.apex": nil, |
| 264 | }), |
| 265 | |
| 266 | // Configure some libraries in the art boot image. |
| 267 | dexpreopt.FixtureSetArtBootJars("com.android.art:foo", "com.android.art:bar"), |
| 268 | ).RunTestWithBp(t, ` |
| 269 | prebuilt_apex { |
| 270 | name: "com.android.art", |
| 271 | arch: { |
| 272 | arm64: { |
| 273 | src: "com.android.art-arm64.apex", |
| 274 | }, |
| 275 | arm: { |
| 276 | src: "com.android.art-arm.apex", |
| 277 | }, |
| 278 | }, |
| 279 | exported_java_libs: ["foo", "bar"], |
| 280 | } |
| 281 | |
| 282 | java_import { |
| 283 | name: "foo", |
| 284 | jars: ["foo.jar"], |
| 285 | apex_available: [ |
| 286 | "com.android.art", |
| 287 | ], |
| 288 | } |
| 289 | |
| 290 | java_import { |
| 291 | name: "bar", |
| 292 | jars: ["bar.jar"], |
| 293 | apex_available: [ |
| 294 | "com.android.art", |
| 295 | ], |
| 296 | } |
| 297 | |
| 298 | prebuilt_boot_image { |
| 299 | name: "mybootimage", |
| 300 | image_name: "art", |
| 301 | apex_available: [ |
| 302 | "com.android.art", |
| 303 | ], |
| 304 | } |
| 305 | `) |
| 306 | |
| 307 | java.CheckModuleDependencies(t, result.TestContext, "com.android.art", "android_common", []string{ |
| 308 | `prebuilt_bar`, |
| 309 | `prebuilt_foo`, |
| 310 | }) |
| 311 | |
| 312 | java.CheckModuleDependencies(t, result.TestContext, "mybootimage", "android_common", []string{ |
| 313 | `dex2oatd`, |
Paul Duffin | c7ef989 | 2021-03-23 23:21:59 +0000 | [diff] [blame] | 314 | `prebuilt_bar`, |
| 315 | `prebuilt_foo`, |
Paul Duffin | 9ea71c0 | 2021-03-23 22:53:07 +0000 | [diff] [blame] | 316 | }) |
| 317 | } |
| 318 | |
Paul Duffin | 82886d6 | 2021-03-24 01:34:57 +0000 | [diff] [blame] | 319 | func TestBootImageContentsNoName(t *testing.T) { |
| 320 | result := android.GroupFixturePreparers( |
| 321 | prepareForTestWithBootImage, |
| 322 | prepareForTestWithMyapex, |
| 323 | ).RunTestWithBp(t, ` |
| 324 | apex { |
| 325 | name: "myapex", |
| 326 | key: "myapex.key", |
| 327 | boot_images: [ |
| 328 | "mybootimage", |
| 329 | ], |
| 330 | updatable: false, |
| 331 | } |
| 332 | |
| 333 | apex_key { |
| 334 | name: "myapex.key", |
| 335 | public_key: "testkey.avbpubkey", |
| 336 | private_key: "testkey.pem", |
| 337 | } |
| 338 | |
| 339 | java_library { |
| 340 | name: "foo", |
| 341 | srcs: ["b.java"], |
| 342 | installable: true, |
| 343 | apex_available: [ |
| 344 | "myapex", |
| 345 | ], |
| 346 | } |
| 347 | |
| 348 | java_library { |
| 349 | name: "bar", |
| 350 | srcs: ["b.java"], |
| 351 | installable: true, |
| 352 | apex_available: [ |
| 353 | "myapex", |
| 354 | ], |
| 355 | } |
| 356 | |
| 357 | boot_image { |
| 358 | name: "mybootimage", |
| 359 | contents: [ |
| 360 | "foo", |
| 361 | "bar", |
| 362 | ], |
| 363 | apex_available: [ |
| 364 | "myapex", |
| 365 | ], |
| 366 | } |
| 367 | `) |
| 368 | |
Paul Duffin | 4d101b6 | 2021-03-24 15:42:20 +0000 | [diff] [blame] | 369 | ensureExactContents(t, result.TestContext, "myapex", "android_common_myapex_image", []string{ |
| 370 | // This does not include art, oat or vdex files as they are only included for the art boot |
| 371 | // image. |
| 372 | "javalib/bar.jar", |
| 373 | "javalib/foo.jar", |
| 374 | }) |
Paul Duffin | 82886d6 | 2021-03-24 01:34:57 +0000 | [diff] [blame] | 375 | |
| 376 | java.CheckModuleDependencies(t, result.TestContext, "myapex", "android_common_myapex_image", []string{ |
| 377 | `myapex.key`, |
| 378 | `mybootimage`, |
| 379 | }) |
| 380 | } |
| 381 | |
Paul Duffin | a1d6025 | 2021-01-21 18:13:43 +0000 | [diff] [blame] | 382 | // TODO(b/177892522) - add test for host apex. |