Pass pctx and ctx to NewRuleBuilder
Enable the RuleBuilder and RuleBuilderCommand methods to access the BuilderContext by passing it to NewRuleBuilder instead of RuleBuilder.Build. Test: genrule_test.go Test: rule_builder_test.go Test: m checkbuild Change-Id: I63e6597e19167393876dc2259d6f521363b7dabc
This commit is contained in:
@@ -60,7 +60,7 @@ func testModuleConfig(ctx android.PathContext, name, partition string) *ModuleCo
|
||||
|
||||
func TestDexPreopt(t *testing.T) {
|
||||
config := android.TestConfig("out", nil, "", nil)
|
||||
ctx := android.PathContextForTesting(config)
|
||||
ctx := android.BuilderContextForTesting(config)
|
||||
globalSoong := GlobalSoongConfigForTests(config)
|
||||
global := GlobalConfigForTests(ctx)
|
||||
module := testSystemModuleConfig(ctx, "test")
|
||||
@@ -82,7 +82,7 @@ func TestDexPreopt(t *testing.T) {
|
||||
|
||||
func TestDexPreoptSystemOther(t *testing.T) {
|
||||
config := android.TestConfig("out", nil, "", nil)
|
||||
ctx := android.PathContextForTesting(config)
|
||||
ctx := android.BuilderContextForTesting(config)
|
||||
globalSoong := GlobalSoongConfigForTests(config)
|
||||
global := GlobalConfigForTests(ctx)
|
||||
systemModule := testSystemModuleConfig(ctx, "Stest")
|
||||
@@ -142,7 +142,7 @@ func TestDexPreoptSystemOther(t *testing.T) {
|
||||
|
||||
func TestDexPreoptProfile(t *testing.T) {
|
||||
config := android.TestConfig("out", nil, "", nil)
|
||||
ctx := android.PathContextForTesting(config)
|
||||
ctx := android.BuilderContextForTesting(config)
|
||||
globalSoong := GlobalSoongConfigForTests(config)
|
||||
global := GlobalConfigForTests(ctx)
|
||||
module := testSystemModuleConfig(ctx, "test")
|
||||
|
Reference in New Issue
Block a user