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
30    <!--
31       'debuggable=true' is required to properly load mockito jvmti dependencies,
32        otherwise it gives the following error at runtime:
33
34        Openjdkjvmti plugin was loaded on a non-debuggable Runtime.
35        Plugin was loaded too late to change runtime state to DEBUGGABLE.
36    -->
37    <application android:label="FrameworksIkeTests" android:debuggable="true">
38        <uses-library android:name="android.test.runner" />
39    </application>
40
41    <!--
42        To run all tests:
43            adb shell am instrument -w \
44            com.android.ike.tests/androidx.test.runner.AndroidJUnitRunner
45
46        To run a single class test:
47            adb shell am instrument -e class com.android.ike.unit.FooUnitTest \
48            -w com.android.ike.tests/androidx.test.runner.AndroidJUnitRunner
49    -->
50    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
51        android:targetPackage="com.android.ike.tests"
52        android:label="Frameworks Ike Tests" />
53</manifest>
54