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

Commit 8befdc73 authored by KOUSHIK PANUGANTI's avatar KOUSHIK PANUGANTI Committed by Koushik Panuganti
Browse files

Migrate packages/apps/Bluetooth to androidx.test

See go/jetpack-test-android-migration

This is the internal version of aosp/856869

Test: mmma packages/apps/Bluetooth
Change-Id: I489bd558f70c0e1a9ba5de694ec832614c5c5fd3
parent aaf0abc6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -15,9 +15,9 @@ LOCAL_JAVA_LIBRARIES := \

LOCAL_STATIC_JAVA_LIBRARIES :=  \
    com.android.emailcommon \
    android-support-test \
    androidx.test.rules \
    mockito-target \
    espresso-intents
    androidx.test.espresso.intents

# Include all test java files.
LOCAL_SRC_FILES := $(call all-java-files-under, src)
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@
    the package of com.android.bluetooth.  To run the tests use the command:
    "adb shell am instrument -w com.android.bluetooth.tests/android.test.InstrumentationTestRunner"
    -->
    <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
                     android:targetPackage="com.android.bluetooth"
                     android:label="Tests for com.android.bluetooth"/>
</manifest>
+2 −2
Original line number Diff line number Diff line
@@ -15,8 +15,8 @@
 */
package com.android.bluetooth;

import android.support.test.filters.MediumTest;
import android.support.test.runner.AndroidJUnit4;
import androidx.test.filters.MediumTest;
import androidx.test.runner.AndroidJUnit4;

import org.junit.Assert;
import org.junit.Test;
+3 −2
Original line number Diff line number Diff line
@@ -23,8 +23,9 @@ import android.bluetooth.BluetoothDevice;
import android.content.Intent;
import android.os.Handler;
import android.os.Looper;
import android.support.test.InstrumentationRegistry;
import android.support.test.rule.ServiceTestRule;

import androidx.test.InstrumentationRegistry;
import androidx.test.rule.ServiceTestRule;

import com.android.bluetooth.btservice.AdapterService;
import com.android.bluetooth.btservice.ProfileService;
+4 −3
Original line number Diff line number Diff line
@@ -23,9 +23,10 @@ import android.bluetooth.BluetoothCodecConfig;
import android.bluetooth.BluetoothCodecStatus;
import android.bluetooth.BluetoothDevice;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.filters.MediumTest;
import android.support.test.runner.AndroidJUnit4;

import androidx.test.InstrumentationRegistry;
import androidx.test.filters.MediumTest;
import androidx.test.runner.AndroidJUnit4;

import org.junit.After;
import org.junit.Assert;
Loading