summaryrefslogtreecommitdiff
path: root/android/prebuilt_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-02-27 11:59:02 +0000
committer Paul Duffin <paulduffin@google.com> 2021-03-02 20:17:19 +0000
commitcfd3374da03da06646fb209583178dbd718129dd (patch)
tree1e55e1db445fff25a71b0c22df7ea2b95cbbd3d4 /android/prebuilt_test.go
parent4416350471d56433ca30ffab4bcf4eaeff32741d (diff)
Add error handling to test fixtures
Adds support for customizing the error handling behavior of test fixtures and converts a test to use it. Bug: 181070625 Test: m nothing Change-Id: I736c41311819d57d8688fc3b0e021dbb50c491c1
Diffstat (limited to 'android/prebuilt_test.go')
-rw-r--r--android/prebuilt_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/prebuilt_test.go b/android/prebuilt_test.go
index 164b1bc59..32af5df4b 100644
--- a/android/prebuilt_test.go
+++ b/android/prebuilt_test.go
@@ -388,6 +388,8 @@ func registerTestPrebuiltBuildComponents(ctx RegistrationContext) {
ctx.PostDepsMutators(RegisterOverridePostDepsMutators)
}
+var prepareForTestWithFakePrebuiltModules = FixtureRegisterWithContext(registerTestPrebuiltModules)
+
func registerTestPrebuiltModules(ctx RegistrationContext) {
ctx.RegisterModuleType("prebuilt", newPrebuiltModule)
ctx.RegisterModuleType("source", newSourceModule)