Felipe Leme
aa2e8ea1d8
Assert whitelists are revoked on uninstall.
...
BUG: 28616418
Change-Id: I909fd4c6024afe5b42560090c6e2f11b43c220de
2016-05-06 09:18:54 -07:00
Felipe Leme
691e85def7
Temporarily disable NetworkInfo check.
...
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
2016-05-04 18:48:24 +00:00
Felipe Leme
50bce69fab
Improved connectivity check by also asserting NetworkInfo states.
...
BUG: 28473659
BUG: 26571724
Change-Id: Iba687003431ed5c353412268726967a798f538da
2016-05-03 08:29:52 -07:00
Felipe Leme
fa8e24c3e6
Added test for required packages whitelisted for Data Saver Mode.
...
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
2016-04-29 14:10:12 -07:00
Marcus Nascimento
c847a249c6
Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev am: 90419fc992 am: 4699aa522a am: 69db501b63 am: f9185c256f
...
am: 8ad4295bec
* commit '8ad4295bec64574b3c05547efc29f225b385e6ce':
Add assertion message to assertions for testExecute_withMobile.
Change-Id: Id4892624242d707920f285c13dbfd029f7f2cc3d
2016-04-29 11:17:44 +00:00
Marcus Nascimento
f9185c256f
Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev am: 90419fc992 am: 4699aa522a
...
am: 69db501b63
* commit '69db501b632720dda1e5aba0ac8aa676f11247e8':
Add assertion message to assertions for testExecute_withMobile.
Change-Id: I17fe6ca042b8ec387e082ef475538933e1e9a33c
2016-04-29 11:12:32 +00:00
Marcus Nascimento
4699aa522a
Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev
...
am: 90419fc992
* commit '90419fc99220c249b29a09805c06f9a1fc25f0d1':
Add assertion message to assertions for testExecute_withMobile.
Change-Id: Ifc327d9165a543b163c954d964c982fdd14ab1af
2016-04-29 11:05:01 +00:00
Android Merger
90419fc992
Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev
2016-04-29 10:59:36 +00:00
Marcus Nascimento
5d6e8323f6
Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev
...
am: ce158e65ae -s ours
* commit 'ce158e65aec1b2c9687852872c9fd9ed74585144':
Add assertion message to assertions for testExecute_withMobile.
Change-Id: I12a3b5e90ce51ebbc233d69126eb78e3a85d6ba3
2016-04-29 10:59:28 +00:00
Daniel Xie
ce158e65ae
Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev
2016-04-28 16:44:37 +00:00
Marcus Nascimento
51eb8c19a0
Add assertion message to assertions for testExecute_withMobile.
...
Some partner test devices without a SIM Card or with no signal, thus
without mobile network data connection.
Added a message to check signal and SIM card and rerun the test.
Also added a verification that the network type is supported in the
event of a Connectivity Action's timeout. Unsuported network type could
be caused by a network stack crash.
Bug: 28207677
Change-Id: Ibca50359df7d5fb8371f4f4037fc81f029f48b30
2016-04-28 16:40:31 +00:00
TreeHugger Robot
25a61dcae9
Merge "Add more test coverage to ConnectivityManagerTest." into nyc-dev
2016-04-27 10:21:48 +00:00
Owain Davies
c403c81218
Merge "Merge "Add assertion message if testDns ipv6 lookup reutrns ipv4." into lollipop-mr1-cts-dev am: b996de8" into marshmallow-cts-dev am: 48216c2 am: 275a0e6 am: 4be27c8 am: 0399523
...
am: fd3f832
* commit 'fd3f832fcfb9dc4fa3e4d497a97ebdf1636269b2':
Add assertion message if testDns ipv6 lookup reutrns ipv4.
Change-Id: I774f8188a4329508bd590564859f38b3ec049f7c
2016-04-25 23:48:09 +00:00
Owain Davies
6d3841c6a5
Merge "Merge "Added assertion message to testDns failures" into lollipop-mr1-cts-dev am: 350b2aa" into marshmallow-cts-dev am: 936375b am: 2bfd0e1 am: 2a0f366 am: 39cb9a5
...
am: 7cde9a8
* commit '7cde9a81f8ee813b47dd424cea85692fd6f794fb':
Added assertion message to testDns failures
Change-Id: Icef1c18274c8ae3883b718d823f851d4c1562417
2016-04-25 23:48:07 +00:00
Owain Davies
03995235ba
Merge "Merge "Add assertion message if testDns ipv6 lookup reutrns ipv4." into lollipop-mr1-cts-dev am: b996de8" into marshmallow-cts-dev am: 48216c2 am: 275a0e6
...
am: 4be27c8
* commit '4be27c8e8497987720d58494a330484648e72caa':
Add assertion message if testDns ipv6 lookup reutrns ipv4.
Change-Id: I03a0a86365929a6bdc8eb2815229341eb7a6a311
2016-04-23 06:19:47 +00:00
Owain Davies
39cb9a5a5c
Merge "Merge "Added assertion message to testDns failures" into lollipop-mr1-cts-dev am: 350b2aa" into marshmallow-cts-dev am: 936375b am: 2bfd0e1
...
am: 2a0f366
* commit '2a0f3660e12cdbaa8f573811d82f07ebd9a8ed51':
Added assertion message to testDns failures
Change-Id: I36b06607bea7de4f032daa1ddc84d988d6d44399
2016-04-23 06:19:46 +00:00
Owain Davies
275a0e6237
Merge "Merge "Add assertion message if testDns ipv6 lookup reutrns ipv4." into lollipop-mr1-cts-dev am: b996de8" into marshmallow-cts-dev
...
am: 48216c2
* commit '48216c2807c0fd5561a592b2be09dad3cc0a0bd7':
Add assertion message if testDns ipv6 lookup reutrns ipv4.
Change-Id: I361b96fa073ffe1d7719be745e32241322b1eeed
2016-04-23 06:13:45 +00:00
Owain Davies
2bfd0e1192
Merge "Merge "Added assertion message to testDns failures" into lollipop-mr1-cts-dev am: 350b2aa" into marshmallow-cts-dev
...
am: 936375b
* commit '936375b6f25a328a06d5b783f6fde63afb13d681':
Added assertion message to testDns failures
Change-Id: I9a56dfe2d0960898b61f26ccee3607c7558034de
2016-04-23 06:13:44 +00:00
Android Merger
48216c2807
Merge "Merge "Add assertion message if testDns ipv6 lookup reutrns ipv4." into lollipop-mr1-cts-dev am: b996de8" into marshmallow-cts-dev
2016-04-23 06:07:51 +00:00
Android Merger
936375b6f2
Merge "Merge "Added assertion message to testDns failures" into lollipop-mr1-cts-dev am: 350b2aa" into marshmallow-cts-dev
2016-04-23 06:07:42 +00:00
Owain Davies
4455109378
Merge "Add assertion message if testDns ipv6 lookup reutrns ipv4." into lollipop-mr1-cts-dev
...
am: b996de8
* commit 'b996de81cde4d1596dc15346591ed0ccb41608ca':
Add assertion message if testDns ipv6 lookup reutrns ipv4.
Change-Id: I4b791741f7c69f23097ccd9d56d33984a0862b5a
2016-04-23 06:07:33 +00:00
Owain Davies
7db24c68cf
Merge "Added assertion message to testDns failures" into lollipop-mr1-cts-dev
...
am: 350b2aa
* commit '350b2aae5bc303d094a540c12bcb650a8bf5e139':
Added assertion message to testDns failures
Change-Id: I347197b0db859e3875b14701424d2d55d9059d32
2016-04-23 06:07:31 +00:00
Daniel Xie
b996de81cd
Merge "Add assertion message if testDns ipv6 lookup reutrns ipv4." into lollipop-mr1-cts-dev
2016-04-23 06:02:23 +00:00
Lorenzo Colitti
8a14c224e3
Add more test coverage to ConnectivityManagerTest.
...
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
2016-04-22 22:25:51 +09:00
Chad Brubaker
bac071b74f
Rewrite X509TrustManagerExtensionsTest
...
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
2016-04-20 15:12:38 -07:00
Felipe Leme
0e47422a47
Changed order of metered network check.
...
BUG: 27808364
Change-Id: I8a1088673cdd2c310a787a0b0708ad58876e9ac0
2016-04-14 12:49:31 -07:00
Felipe Leme
f744474a28
Improvements on test case setup.
...
- 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
2016-04-14 11:47:34 -07:00
Owain Davies
c408601c24
Add assertion message if testDns ipv6 lookup reutrns ipv4.
...
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
2016-04-14 16:12:38 +01:00
Owain Davies
8884aac68d
Added assertion message to testDns failures
...
Identify tests that fail testDns because of no network connection.
Bug:26560000
Change-Id: I7683d54d2932ec46c5850bf360c602f6548b179e
2016-04-14 15:54:44 +01:00
Dianne Hackborn
d5dc8fe740
Test for issue #28156248 : Receiving connectivity receiver...
...
...broadcasts in Android N
New test to verify that modern apps can't receive CONNECTIVITY_CHANGE.
Change-Id: I9c5b6e99d14b782b3857460d8297f6a405545d87
2016-04-13 18:05:50 -07:00
Erik Kline
8d422e8c57
Extend CTS test coverage to include registerDefaultNetworkRequest()
...
Change-Id: I36491c2697ed1510da38c06324d2e4ddf653bc4e
2016-04-06 12:31:32 +09:00
Felipe Leme
52be3a68ad
Refactored tests to use 'list wifi-networks'.
...
BUG: 27808364
Change-Id: Ife3f35e9c3c6a4285b671eeb7d7d0223be908a1b
2016-04-01 15:40:41 -07:00
Felipe Leme
af092432df
Merge "Moved wi-fi switch to hostside." into nyc-dev
2016-04-01 17:40:15 +00:00
Philip P. Moltmann
058f525d35
Merge "Test that we can set and read txt records." into nyc-dev
2016-03-31 03:52:48 +00:00
Felipe Leme
eac0fe6ab1
Moved wi-fi switch to hostside.
...
BUG: 27808364
Change-Id: I89bca5f5ba90a7dc145d2ac170fd505161fd073d
2016-03-30 18:17:43 -07:00
Felipe Leme
bbb00ffc0f
Fixed build broken by bad merge.
...
BUG: 27324964
Change-Id: Idbe6f8237b560db31eb949971358db41ac00d530
2016-03-30 16:37:24 -07:00
Felipe Leme
eb7e5053c1
Test network restrictions while on foreground service state.
...
BUG: 27324964
BUG: 26776313
Change-Id: Idcd0a391333d243d17b6bd68c67becaad2b37fdd
2016-03-30 22:32:27 +00:00
Felipe Leme
9a4643cd0e
Improved test case for blacklist access.
...
BUG: 27127112
BUG: 26685616
Change-Id: I8b183cdb1cf5ebbc446176a042e4196ab063f1a3
2016-03-30 22:27:51 +00:00
Felipe Leme
3787c6bb7e
Merge "Refactored method to get UIDs." into nyc-dev
2016-03-30 17:09:11 +00:00
Felipe Leme
c3d29ebf21
Refactored method to get UIDs.
...
BUG: 27904062
Change-Id: Ib0d3911f40e0a5deed833f71e75abd10a224768f
2016-03-30 10:07:20 -07:00
Felipe Leme
3aef04bf0d
Merge "Added sanity check to verify process state." into nyc-dev
2016-03-30 15:41:51 +00:00
Felipe Leme
de7cbcf6ee
Added sanity check to verify process state.
...
BUG: 26776313
BUG: 27324964
Change-Id: I209c04d5c6d89acdac9b5bdaee5a4dbd7700c53e
2016-03-29 17:57:14 -07:00
Philip P. Moltmann
10788e7864
Test that we can set and read txt records.
...
Bug: 27696905
Change-Id: I494665adeb8a859791bb5d08fe5b6ee73f20ac8d
2016-03-29 11:28:23 -07:00
Wally Yau
825b3f1595
Merge "Fixed test for lingering traffic data." into marshmallow-cts-dev am: 0f7a74c am: 8bdae23 am: 810b12c am: 324a5da
...
am: 9a60672
* commit '9a606728458d1abc646fd39d32d273a5634c9142':
Fixed test for lingering traffic data.
2016-03-28 18:36:11 +00:00
Wally Yau
324a5da160
Merge "Fixed test for lingering traffic data." into marshmallow-cts-dev am: 0f7a74c am: 8bdae23
...
am: 810b12c
* commit '810b12cbb62c4c91f5deab49b228916bdb6f2708':
Fixed test for lingering traffic data.
2016-03-28 18:12:25 +00:00
Wally Yau
8bdae23147
Merge "Fixed test for lingering traffic data." into marshmallow-cts-dev
...
am: 0f7a74c
* commit '0f7a74c9f99bac16d6c599afc38d5f82cebb0ef3':
Fixed test for lingering traffic data.
2016-03-28 18:04:32 +00:00
Ningyuan Wang
ebbfd8ce11
handle null mScanResult for CTS test
...
This adds one more assert statement to ensure the ScanResult
variable is not null before we proceed.
Bug: 27744749
TEST=run cts test without error
Change-Id: I48f3c5369792d3a55b594b71250b0dfdf0d5282b
2016-03-22 16:42:18 -07:00
Nicholas Sauer
a552317982
[CTS] - Set test runtimes
...
bug: 27747405
Change-Id: If08ec156678d5435c88d9f179d3bacd064493aff
2016-03-19 00:10:02 +00:00
Felipe Leme
275d05f0d3
Re-try commands that set/get metered networks.
...
BUG: 27671582
Change-Id: I9160a964b44e6d48d8932dc1e1ea7702a5359885
2016-03-17 14:08:46 -07:00
Paul Stewart
104fd51f87
WifiManagerTest#testWifiWatchdog: Disambiguate failures
...
There is nothing in the WifiWatchdog test that supports the
assumption that the device under test is pre-configured with a
working WiFi network configuration. This CL makes it possible
from the test stack trace whether the test failed at the
beginning or during the reconnections.
Bug: 27638295
Change-Id: Iff1bd398c74076fb1a969741818562ea582e868e
2016-03-16 12:39:03 -07:00