This test exercises the Connectivity <-> NetworkMonitor integration. This CL only contains a simple test (network validates), but more generally it sets up a test package that contains both services.jar classes and NetworkStack classes, and runs NetworkStack components in another process (using TestNetworkStackService). ConnectivityServiceIntegrationTest runs in the test process and binds to TestNetworkStackService to obtain TestNetworkStackConnector and to NetworkStackInstrumentationService to obtain NetworkStackInstrumentationConnector. That last connector allows the test to mock NetworkMonitor HTTP Requests. Test: atest FrameworksNetIntegrationTests Change-Id: Ieca18e273609044cf6b1870d2f0dba33ca7b38d3
16 lines
851 B
XML
16 lines
851 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources>
|
|
<!--
|
|
Override configuration for testing. The below settings use the config_ variants, which are
|
|
normally used by RROs to override the setting with highest priority. -->
|
|
<integer name="config_captive_portal_dns_probe_timeout">12500</integer>
|
|
<string name="config_captive_portal_http_url" translatable="false">http://test.android.com</string>
|
|
<string name="config_captive_portal_https_url" translatable="false">https://secure.test.android.com</string>
|
|
<string-array name="config_captive_portal_fallback_urls" translatable="false">
|
|
<item>http://fallback1.android.com</item>
|
|
<item>http://fallback2.android.com</item>
|
|
</string-array>
|
|
<string-array name="config_captive_portal_fallback_probe_specs" translatable="false">
|
|
</string-array>
|
|
</resources>
|