aboutsummaryrefslogtreecommitdiffstats
path: root/dexpreopt/dexpreopt_test.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-02-11 14:11:09 -0800
committerColin Cross <ccross@android.com>2019-02-13 08:03:29 -0800
commitdeabb94380ad37d89e164946f8076adf433bfa22 (patch)
tree9e385ba01c2fbce9e629579f1ea5933e33bec102 /dexpreopt/dexpreopt_test.go
parentbd907cb12bad59f35bdb73476c9a785d7be06b7d (diff)
downloadbuild_soong-deabb94380ad37d89e164946f8076adf433bfa22.tar.gz
build_soong-deabb94380ad37d89e164946f8076adf433bfa22.tar.bz2
build_soong-deabb94380ad37d89e164946f8076adf433bfa22.zip
Add RuleBuilder.Installs().String()
Add a RuleBuilderInstalls type for a slice of RuleBuilderInstalls, and give it a String() method that returns the list of installs in the format that is convenient for passing to Make. Test: rule_builder_test.go Change-Id: I2e9cd9abf4dfb0ad312d0a6662f1567baf9cd222
Diffstat (limited to 'dexpreopt/dexpreopt_test.go')
-rw-r--r--dexpreopt/dexpreopt_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/dexpreopt/dexpreopt_test.go b/dexpreopt/dexpreopt_test.go
index ecaf8769..40c694f1 100644
--- a/dexpreopt/dexpreopt_test.go
+++ b/dexpreopt/dexpreopt_test.go
@@ -100,7 +100,7 @@ func TestDexPreopt(t *testing.T) {
t.Error(err)
}
- wantInstalls := []android.RuleBuilderInstall{
+ wantInstalls := android.RuleBuilderInstalls{
{"out/test/oat/arm/package.odex", "/system/app/test/oat/arm/test.odex"},
{"out/test/oat/arm/package.vdex", "/system/app/test/oat/arm/test.vdex"},
}
@@ -141,7 +141,7 @@ func TestDexPreoptSystemOther(t *testing.T) {
t.Error(err)
}
- wantInstalls := []android.RuleBuilderInstall{
+ wantInstalls := android.RuleBuilderInstalls{
{"out/test/oat/arm/package.odex", "/system_other/app/test/oat/arm/test.odex"},
{"out/test/oat/arm/package.vdex", "/system_other/app/test/oat/arm/test.vdex"},
}
@@ -164,7 +164,7 @@ func TestDexPreoptProfile(t *testing.T) {
t.Error(err)
}
- wantInstalls := []android.RuleBuilderInstall{
+ wantInstalls := android.RuleBuilderInstalls{
{"out/test/profile.prof", "/system/app/test/test.apk.prof"},
{"out/test/oat/arm/package.art", "/system/app/test/oat/arm/test.art"},
{"out/test/oat/arm/package.odex", "/system/app/test/oat/arm/test.odex"},