Build FrameworkStatsdTest test against the sdk

The limitation that it couldn't both link against module_current
and use implementation details from statsd has been fixed.

Bug: 147705194
Test: m FrameworkStatsdTest
Change-Id: Ie0c87b07de935167e51ec741ac70df96e04a4ec2
This commit is contained in:
Anton Hansson
2020-03-17 17:52:03 +00:00
parent e88d949e0a
commit 29a86b0345

View File

@@ -166,10 +166,8 @@ java_library {
android_test {
name: "FrameworkStatsdTest",
platform_apis: true,
sdk_version: "module_current",
srcs: [
// TODO(b/147705194): Use framework-statsd as a lib dependency instead.
":framework-statsd-sources",
"test/**/*.java",
],
manifest: "test/AndroidManifest.xml",
@@ -180,6 +178,7 @@ android_test {
libs: [
"android.test.runner.stubs",
"android.test.base.stubs",
"framework-statsd",
],
test_suites: [
"device-tests",