As WifiCheck is now declared in the CTS config, remove declarations in
the module configs.
Also downgrade TargetSetupErrors on failure to logged errors
bug:28234985
Change-Id: I2e1a369bc26aeca922686c4c3d8c033bb7f9fbc7
- Tests what happens on foreground applications when a restriction (like
Data Saver or Battery Saver modes) is turned on (prior tests would
turn the restriction on *before* switching the app to foreground).
- Tests multiple restrictions simultaneously enabled.
Also improved existing code:
- Fixed background state check.
- Reused some common checks in helper methods.
- Retries checks for process state.
BUG: 28473659
Change-Id: Ifcf9cc6d895ccde0ab5177f9f5d8c347ce53b811
There are known issues that cause these check to fail, and the fix has
not been submitted yet.
BUG: 28473659
BUG: 28521946
Change-Id: I26dfbebc2d07396ef89ac78230645e4791c708ee
am: fe6dc2b966
* commit 'fe6dc2b966686da65dae3e0766e56bf25844500c':
Improved connectivity check by also asserting NetworkInfo states.
Change-Id: Icba9139f192182fe6adaf03ef813dc20bd66f681
am: 16ae24badd
* commit '16ae24badd79bf100b26dc4e6dfb3ed649a0c3ad':
Added test for required packages whitelisted for Data Saver Mode.
Change-Id: I1916d82a0fcc883679e200f79594381d29afd6b2
Also fixed code that checks for whitelist uids, otherwise it would pass
when the required uid is missing but a superset was present (for
example, when asking for 1009 but 10090 was whitelisted).
BUG: 28431507
Change-Id: Iaaa67e586907dba215496460445ad627ba7b63c5
am: 25a61dc
* commit '25a61dcae9ab4f0d8828fc8f05965333eccf99e9':
Add more test coverage to ConnectivityManagerTest.
Change-Id: Id486a044ba5723cb762565c396c75b29bd09cbbe
1. Test NetworkCallbacks as well as CONNECTIVITY_ACTION, since
we are moving away from CONNECTIVITY_ACTION.
2. Use the Network objects we get back to test
Network#getSocketFactory().
3. Check that TCP connections are closed with ECONNABORTED when
a network disconnects.
Bug: 28251576
Change-Id: I41a438b82ef9251e52866332f3445f1bf876e04f
X509TrustManagerExtensionsTest used internal implementation details to
test X509TrustManagerExtensions#isUserAddedCertificate, these
implementation details are no longer the same and so this test failed to
catch the API being broken and then incorrectly flagged the fixed API as
broken.
To ensure that isUserAddedCertificate is properly covered the tests for
the API are split into two places: X509TrustManagerExtensionsTest covers
tests for the default case where there are no added CAs and
CaCertManagementTest to test the behavior when CAs have been added.
Bug:28262103
Change-Id: I14f3211c277fdc9c8bfc3d4ac932be375961fa28
- On hostside, checks if wi-fi is on instead of checking for connectivity (which can be very slow).
- Don't automatically reset metered network on superclass' tearDown().
- Make sure tearDown() cleans up all state changes.
BUG: 27808364
Change-Id: I4818047c5fb8f6f430b0aab5ecfa77717f860db3
Some partner test networks connect by VPN and if the connection
fails during the testing this test will fail as the local internet
provider intercepts the DNS request and returns an ipv4 address.
Added a message to check the network configuration and rerun the test.
Bug: 26560000
Change-Id: I54e4976b2cef549bfe9fd55ff9609ba2e6513239
am: c2f9d8f
* commit 'c2f9d8f3db67f3802ed9a2cd0e91575674b12d58':
Extend CTS test coverage to include registerDefaultNetworkRequest()
Change-Id: Id9756021ea4e873b39371870ee4a9130890a58e4
am: 058f525
* commit '058f525d3502651dd54041d16bf60948c142119f':
Test that we can set and read txt records.
Change-Id: Ie0d5c7fe58366a7414346fc5d801ce658fefe10e