aboutsummaryrefslogtreecommitdiffstats
path: root/context_test.go
diff options
context:
space:
mode:
authorJeff Gaston <jeffrygaston@google.com>2017-11-10 15:12:08 -0800
committerJeff Gaston <jeffrygaston@google.com>2017-11-29 12:01:09 -0800
commitd70bf75491b5b234eccb77d0a1e841a8391ebe07 (patch)
treeee7f78837f297dcbf348d4edb390537a9345d53d /context_test.go
parent90d258833aaee2c53a7f7fe6fd549c8a992dc7ee (diff)
downloadandroid_build_blueprint-d70bf75491b5b234eccb77d0a1e841a8391ebe07.tar.gz
android_build_blueprint-d70bf75491b5b234eccb77d0a1e841a8391ebe07.tar.bz2
android_build_blueprint-d70bf75491b5b234eccb77d0a1e841a8391ebe07.zip
Extract module naming into an interface
in facilitate moving name resolution to Soong Bug: 65683273 Test: build/soong/scripts/diff_build_graphs.sh \ --products=aosp_arm \ 'build/blueprint:work^' 'build/blueprint:work' # and see that the only changes were: # 1. adding the name_interface.go file # 2. changing some line numbers Change-Id: Ifa7603cca59b3b3d592f2f146fdafe57012bd4b9
Diffstat (limited to 'context_test.go')
-rw-r--r--context_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/context_test.go b/context_test.go
index c6bc08c..16c52cf 100644
--- a/context_test.go
+++ b/context_test.go
@@ -183,7 +183,7 @@ func TestWalkDeps(t *testing.T) {
var outputDown string
var outputUp string
- topModule := ctx.modulesFromName("A")[0]
+ topModule := ctx.modulesFromName("A", nil)[0]
ctx.walkDeps(topModule,
func(dep depInfo, parent *moduleInfo) bool {
if dep.module.logicModule.(Walker).Walk() {
@@ -239,10 +239,10 @@ func TestCreateModule(t *testing.T) {
t.FailNow()
}
- a := ctx.modulesFromName("A")[0].logicModule.(*fooModule)
- b := ctx.modulesFromName("B")[0].logicModule.(*barModule)
- c := ctx.modulesFromName("C")[0].logicModule.(*barModule)
- d := ctx.modulesFromName("D")[0].logicModule.(*fooModule)
+ a := ctx.modulesFromName("A", nil)[0].logicModule.(*fooModule)
+ b := ctx.modulesFromName("B", nil)[0].logicModule.(*barModule)
+ c := ctx.modulesFromName("C", nil)[0].logicModule.(*barModule)
+ d := ctx.modulesFromName("D", nil)[0].logicModule.(*fooModule)
checkDeps := func(m Module, expected string) {
var deps []string