Expose ProductVariables from TestConfig am: 674dc7f7f0
am: e4436b5ab2
Change-Id: Iafcdea1220e6bd7c4ced667e585e439792acf572
This commit is contained in:
@@ -188,12 +188,12 @@ func TestEnforceRRO(t *testing.T) {
|
||||
for _, testCase := range testEnforceRROTests {
|
||||
t.Run(testCase.name, func(t *testing.T) {
|
||||
config := testConfig(nil)
|
||||
config.ProductVariables.ResourceOverlays = &resourceOverlays
|
||||
config.TestProductVariables.ResourceOverlays = &resourceOverlays
|
||||
if testCase.enforceRROTargets != nil {
|
||||
config.ProductVariables.EnforceRROTargets = &testCase.enforceRROTargets
|
||||
config.TestProductVariables.EnforceRROTargets = &testCase.enforceRROTargets
|
||||
}
|
||||
if testCase.enforceRROExcludedOverlays != nil {
|
||||
config.ProductVariables.EnforceRROExcludedOverlays = &testCase.enforceRROExcludedOverlays
|
||||
config.TestProductVariables.EnforceRROExcludedOverlays = &testCase.enforceRROExcludedOverlays
|
||||
}
|
||||
|
||||
ctx := testAppContext(config, bp, fs)
|
||||
|
@@ -60,7 +60,7 @@ func testConfig(env map[string]string) android.Config {
|
||||
env["ANDROID_JAVA8_HOME"] = "jdk8"
|
||||
}
|
||||
config := android.TestArchConfig(buildDir, env)
|
||||
config.ProductVariables.DeviceSystemSdkVersions = &[]string{"14", "15"}
|
||||
config.TestProductVariables.DeviceSystemSdkVersions = &[]string{"14", "15"}
|
||||
return config
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user