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

Commit c325a32c authored by Chaohui Wang's avatar Chaohui Wang
Browse files

Add new SpaLibTestUtils

This will contains the TestUtils.

Bug: 235727273
Test: Unit test
Change-Id: I38f4e635e39ef37e1436772c9f63b434a2c3005e
parent e70d885d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -32,4 +32,5 @@ dependencyResolutionManagement {
rootProject.name = "SpaLib"
include ':spa'
include ':gallery'
include ':testutils'
include ':tests'
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ android_test {

    static_libs: [
        "SpaLib",
        "SpaLibTestUtils",
        "androidx.test.runner",
        "androidx.test.ext.junit",
        "androidx.compose.runtime_runtime",
+1 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ android {

dependencies {
    androidTestImplementation project(":spa")
    androidTestImplementation project(":testutils")
    androidTestImplementation "androidx.test.ext:junit-ktx:1.1.3"
    androidTestImplementation "androidx.compose.ui:ui-test-junit4:$jetpack_compose_version"
    androidTestImplementation "com.google.truth:truth:1.1.3"
+33 −0
Original line number Diff line number Diff line
//
// Copyright (C) 2022 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.
//

package {
    default_applicable_licenses: ["frameworks_base_license"],
}

android_library {
    name: "SpaLibTestUtils",

    srcs: ["src/**/*.kt"],

    static_libs: [
        "mockito-target-minus-junit4",
    ],
    kotlincflags: [
        "-Xjvm-default=all",
    ],
    min_sdk_version: "31",
}
+20 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?><!--
  Copyright (C) 2022 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.settingslib.spa.testutils">
    <uses-sdk android:minSdkVersion="21"/>
</manifest>
Loading