1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2018 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17
18<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19    package="com.android.ike.tests">
20
21    <uses-sdk android:minSdkVersion="30" android:targetSdkVersion="30" />
22
23    <!--Allow tests to create socket -->
24    <uses-permission android:name="android.permission.INTERNET"/>
25    <!--Allow tests to call ConnectivityManager#getActiveNetwork()-->
26    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
27    <!--Allow tests to use wake locks-->
28    <uses-permission android:name="android.permission.WAKE_LOCK"/>
29    <!--Allow tests to read device config-->
30    <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/>
31
32    <!--
33       'debuggable=true' is required to properly load mockito jvmti dependencies,
34        otherwise it gives the following error at runtime:
35
36        Openjdkjvmti plugin was loaded on a non-debuggable Runtime.
37        Plugin was loaded too late to change runtime state to DEBUGGABLE.
38    -->
39    <application android:label="FrameworksIkeTests" android:debuggable="true">
40        <uses-library android:name="android.test.runner" />
41    </application>
42
43    <!--
44        To run all tests:
45            adb shell am instrument -w \
46            com.android.ike.tests/androidx.test.runner.AndroidJUnitRunner
47
48        To run a single class test:
49            adb shell am instrument -e class com.android.ike.unit.FooUnitTest \
50            -w com.android.ike.tests/androidx.test.runner.AndroidJUnitRunner
51    -->
52    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
53        android:targetPackage="com.android.ike.tests"
54        android:label="Frameworks Ike Tests" />
55</manifest>
56