Commit Graph

689 Commits

Author SHA1 Message Date
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
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
Kevin Ma
604deb783c Add theater mode test. am: d857ae7745
am: 6b5cb02329

* commit '6b5cb023290fa341f1ed68b91df41fd6cd491185':
  Add theater mode test.
2016-03-14 22:38:24 +00:00
Kevin Ma
f1b8dcd75b Merge "Add Airplane mode test." into cw-e-dev am: c7e43bddd3
am: 1525e170ea

* commit '1525e170eabb306f6c193d40570a9f99ccf337c4':
  Add Airplane mode test.
2016-03-14 22:18:09 +00:00
Kevin Ma
d857ae7745 Add theater mode test.
Change-Id: Ie4c4d690fc1b10e917104536e7224c667365db6e
2016-03-14 15:15:42 -07:00
Kevin Ma
744f5e2688 Add Airplane mode test.
Change-Id: If3bfa92828cdc878b2f994beafc41faba7398feb
2016-03-14 15:05:37 -07:00
Roshan Pius
2bbc892a80 Wifi Cts: Set 'disableOthers' flag in enableNetwork
Wifi framework only enables a network if it is going to connect to it
which is not the case when 'disableOthers' flag is false.

BUG: 27567420
Change-Id: I45d39f4f8efebd7e19fd0bcf5bd97a68d08217ee
2016-03-14 12:09:58 -07:00
Felipe Leme
f448ccd08d Print uid when running network checks.
BUG: 27570398
Change-Id: I4dcbd4e41641c406c687a0e29e2637581d91b17c
2016-03-09 15:10:55 -08:00
Felipe Leme
b3cc6ef3ae Added tests for battery save mode on non-metered networks.
BUG: 27127112
Change-Id: I4a05194a32294d15badfaa4156606e728f943a9a
2016-03-09 12:27:32 -08:00
Wally Yau
d7f1dbef66 Fixed test for lingering traffic data.
Change-Id: I7d68a518e25e17dbbaa57b12e2af4dc57b8df8d3
2016-03-07 16:16:09 -08:00
Felipe Leme
37c0bf0477 Added CTS tests for apps that are blacklisted for restricted background data.
BUG: 27432317
Change-Id: Ie9156ab4f2fa7c639d8e9a978954e09b322d6187
2016-03-02 14:35:20 -08:00
Felipe Leme
d207fe5beb Tagged app2 as a CTS test artifact.
BUG: 27436960

Change-Id: I4e97b6341dae3361f4efdaec3132a7aa9a38dece
2016-03-01 16:31:58 -08:00
Stuart Scott
a9e563cf83 Switch to CTSv2
bug:21762834
Change-Id: Ie51a0ed4560b46c2f360e14980e5fab7fe6479fe
2016-02-29 21:51:59 -08:00
Felipe Leme
31c9ec9cb4 Added CTS tests to check background network access while on power save mode.
BUG: 27127112
Change-Id: Ifa3019d7b94459d737a9dff80b4b36a2dd43aca5
2016-02-23 14:14:55 -08:00
Felipe Leme
0a0857762a Split client-side test in 2 classes so some common code can be used to
test Power Save Mode.

BUG:  27127112
Change-Id: I6954ce8474da6da678d4bfe194334ed5a08aaeff
2016-02-19 15:21:18 -08:00