<!--
  ~ Copyright (C) 2023 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.
  -->
<configuration description="Config for CaptivePortalLogin unit test cases">
    <option name="test-tag" value="CaptivePortalLoginTests" />
    <option name="config-descriptor:metadata" key="mainline-param" value="CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex" />
    <object class="com.android.tradefed.testtype.suite.module.DeviceFeatureModuleController"
            type="module_controller">
        <option name="required-feature" value="android.software.webview" />
    </object>

    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
        <option name="test-file-name" value="CaptivePortalLoginTests.apk" />
        <option name="install-arg" value="-t" />
    </target_preparer>

    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
        <option name="package" value="com.android.captiveportallogin.tests" />
        <option name="runner" value="androidx.test.runner.AndroidJUnitRunner" />
        <option name="device-listeners" value="android.device.collectors.ScreenshotOnFailureCollector" />
    </test>

    <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector">
        <option name="pull-pattern-keys" value="android.device.collectors.ScreenshotOnFailureCollector.*\.png"/>
        <option name="directory-keys" value="/data/user/0/com.android.captiveportallogin.tests/files" />
        <option name="collect-on-run-ended-only" value="false" />
    </metrics_collector>
</configuration>
