Get default sdk_test.go values from config

This will help avoid merge conflicts between branches that have
additional default libraries.

Bug: 130798034
Test: sdk_test.go
Change-Id: I98d5b8b2ea939df7ef57686f3bd913d6a21edc5d
Merged-In: I98d5b8b2ea939df7ef57686f3bd913d6a21edc5d
(cherry picked from commit 901ea31b7c)
This commit is contained in:
Colin Cross 2019-04-18 12:31:22 -07:00
parent ac9e61536f
commit 31174703be
1 changed files with 9 additions and 7 deletions

View File

@ -15,13 +15,15 @@
package java
import (
"android/soong/android"
"path/filepath"
"reflect"
"strings"
"testing"
"github.com/google/blueprint/proptools"
"android/soong/android"
"android/soong/java/config"
)
var classpathTestcases = []struct {
@ -37,16 +39,16 @@ var classpathTestcases = []struct {
}{
{
name: "default",
bootclasspath: []string{"core.platform.api.stubs", "core-lambda-stubs"},
system: "core-platform-api-stubs-system-modules",
classpath: []string{"ext", "framework", "updatable_media_stubs"},
bootclasspath: config.DefaultBootclasspathLibraries,
system: config.DefaultSystemModules,
classpath: config.DefaultLibraries,
},
{
name: "blank sdk version",
properties: `sdk_version: "",`,
bootclasspath: []string{"core.platform.api.stubs", "core-lambda-stubs"},
system: "core-platform-api-stubs-system-modules",
classpath: []string{"ext", "framework", "updatable_media_stubs"},
bootclasspath: config.DefaultBootclasspathLibraries,
system: config.DefaultSystemModules,
classpath: config.DefaultLibraries,
},
{