Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36697529 authored by Muhammad Qureshi's avatar Muhammad Qureshi
Browse files

Move statsd framework tests to statsd apex dir

Bug: 149928788
Bug: 144997156
Test: atest FrameworkStatsdTest
Test: atest FrameworksCoreTests
Change-Id: I043e22e63c8fa39c9aab73a414c8a8bd3e2f1aae
parent 13805dec
Loading
Loading
Loading
Loading
+24 −2
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ filegroup {
    ],
    visibility: [
        "//frameworks/base", // For the "global" stubs.
        "//frameworks/base/apex/statsd:__subpackages__",
    ],
}

@@ -74,8 +75,6 @@ java_library {
    hostdex: true, // for hiddenapi check
    visibility: [
        "//frameworks/base/apex/statsd:__subpackages__",
        // TODO(b/149928788): Remove when tests are moved.
        "//frameworks/base/core/tests/coretests:__pkg__",
    ],
    apex_available: [
        "com.android.os.statsd",
@@ -164,3 +163,26 @@ java_library {
        "//frameworks/opt/net/wifi/service" // wifi service
    ]
}

android_test {
    name: "FrameworkStatsdTest",
    platform_apis: true,
    srcs: [
        // TODO(b/147705194): Use framework-statsd as a lib dependency instead.
        ":framework-statsd-sources",
        "test/**/*.java",
    ],
    manifest: "test/AndroidManifest.xml",
    static_libs: [
        "androidx.test.rules",
        "truth-prebuilt",
    ],
    libs: [
        "android.test.runner.stubs",
        "android.test.base.stubs",
    ],
    test_suites: [
        "device-tests",
    ],
}
+26 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.android.os.statsd.framework.test"
        >

    <instrumentation
            android:name="androidx.test.runner.AndroidJUnitRunner"
            android:targetPackage="com.android.os.statsd.framework.test"
            android:label="Framework Statsd Tests" />

</manifest>
+7 −0
Original line number Diff line number Diff line
{
  "presubmit" : [
    {
      "name" : "FrameworkStatsdTest"
    }
  ]
}
Loading