Felipe Leme
310885be93
Added tests for restricted background APIs.
...
Although the main purpose of these change is to test the new public
API (ConnectivityManager.getRestrictBackgroundStatus()), it also
indirectly tests the new private API on
INetworkPolicyManager (addRestrictBackgroundWhitelistedUid(),
removeRestrictBackgroundWhitelistedUid(), and
getRestrictBackgroundWhitelistedUids()), since they're used on each test
to setup the device state.
This change also modified how the device-side tests are run: the
runDeviceTests() had a className parameter that was not used, and this
CL not only uses it but also introduces a methodName as well. The
reasoning for this change is that the host-side tests must interact with
the device-side tests many times during each test; in fact, the "real"
test is done at the host side, while the device-side test is just used
to assert the expected result of getRestrictBackgroundStatus()).
BUG: 26451391
Change-Id: I7114e350f3b247d2f05b0c280a09cad383c61f9a
2016-01-27 09:32:44 -08:00
Nicolas Prevot
6f1da5f774
Cts tests for multiple CA Certificates for WifiEnterpriseConfig.
...
BUG:22547958
Change-Id: I6e6da2732f57f9642dd34cb1d9d46e8e85e8d3f7
2016-01-22 11:46:06 +00:00
Sergio Giro
d223b32572
Merge "AbstractVerifierTest: adapt tests to the new behaviour concerning whitespace" am: c21b54c82b am: 6aa2e158e4
...
am: fceca8f0e9
* commit 'fceca8f0e94e915e47e60096ef3b6d11f6cfe404':
AbstractVerifierTest: adapt tests to the new behaviour concerning whitespace
2016-01-18 12:25:12 +00:00
Sergio Giro
fceca8f0e9
Merge "AbstractVerifierTest: adapt tests to the new behaviour concerning whitespace" am: c21b54c82b
...
am: 6aa2e158e4
* commit '6aa2e158e4494329087e48c26af1dcd128a1c048':
AbstractVerifierTest: adapt tests to the new behaviour concerning whitespace
2016-01-18 12:23:29 +00:00
Sergio Giro
53f06c0d1d
AbstractVerifierTest: adapt tests to the new behaviour concerning whitespace
...
In a DN like "cn=\na" the "\n" now gets trimmed, which makes sense.
Changing tests to reflect the change.
Bug: 26517725
Change-Id: I641687dd864524d66b925f555000edd44c970962
2016-01-18 12:14:09 +00:00
Dimitry Ivanov
a907d75f06
Merge "Untie MultinetworkApiTest from platform libc++.so" am: 2e14e9afaa am: 4577e05c13
...
am: 5a78c96856
* commit '5a78c968564520b256ea1e23e36c4b11ca130bc4':
Untie MultinetworkApiTest from platform libc++.so
2016-01-13 18:54:39 +00:00
Dimitry Ivanov
5a78c96856
Merge "Untie MultinetworkApiTest from platform libc++.so" am: 2e14e9afaa
...
am: 4577e05c13
* commit '4577e05c13459a4fe27cd5e080eec04975160355':
Untie MultinetworkApiTest from platform libc++.so
2016-01-12 21:28:10 +00:00
Dimitry Ivanov
04d19df9ca
Untie MultinetworkApiTest from platform libc++.so
...
Bug: http://b/26512135
Change-Id: Ia01fd851fd7d2e50708620adf11d904e42de0b3b
2016-01-12 12:19:12 -08:00
Yi Kong
074b8b0de5
Merge "ConcurrencyTest: re-enable WiFi during teardown" am: a49620ff08
...
am: 8cf5a71ec0
* commit '8cf5a71ec0100fda09c19fc7116c1b50a0e5f096':
ConcurrencyTest: re-enable WiFi during teardown
2015-12-31 14:43:17 +00:00
Yi Kong
27c101458c
ConcurrencyTest: re-enable WiFi during teardown
...
Bug: 26182816
Change-Id: I3d5704794b17e0ec536a979a544a97a3e1f7b5c7
(cherry picked from commit f79ef7ff21ca9301035b9130d2d864112e8f9ae3)
2015-12-31 14:38:44 +00:00
Yi Kong
bed4c40f42
ConcurrencyTest: re-enable WiFi during teardown
...
Bug: 26182816
Change-Id: I3d5704794b17e0ec536a979a544a97a3e1f7b5c7
2015-12-23 13:21:37 +00:00
Stuart Scott
131383d5e4
Add support for tests to declare runtime hints.
...
bug:21762834
Change-Id: I11f3e6ecb026dcbbb8c73c750c7a70d8a15d81fb
2015-12-22 08:53:12 -08:00
Neil Fuller
1ca5875aea
Merge "Isolate Local(Server|)SocketTest CTS tests" am: 85ac7d010e am: 6962425a88
...
am: b64304dd62
* commit 'b64304dd6255cf5efa5a2144d84a69520b251464':
Isolate Local(Server|)SocketTest CTS tests
2015-12-19 10:11:07 +00:00
Neil Fuller
b64304dd62
Merge "Isolate Local(Server|)SocketTest CTS tests" am: 85ac7d010e
...
am: 6962425a88
* commit '6962425a885f3e32431a15d8a5c34a78c633c777':
Isolate Local(Server|)SocketTest CTS tests
2015-12-19 10:09:08 +00:00
Neil Fuller
85ac7d010e
Merge "Isolate Local(Server|)SocketTest CTS tests"
2015-12-19 10:05:20 +00:00
Neil Fuller
8ff7b0e3a6
Isolate Local(Server|)SocketTest CTS tests
...
Tests are failing with "Address in use". It does not repeat when the
test is run locally.
It is unclear why this has started happening: all tests should be
closing their respective sockets. This change will either prevent
conflicts between tests or help debug if they continue to fail.
Bug: 26140463
Change-Id: I72172b70e00936a6cca9d35c7977fe191621b0cc
2015-12-14 13:47:55 +00:00
Sergio Giro
ee3370d33a
Merge "frameworks/base: add tests for AbstractVerifier" am: f4756068ed am: 05c2b772a3
...
am: 6449e09912
* commit '6449e09912dd7d26e0c1fc8fa7c64b3442d39ef2':
frameworks/base: add tests for AbstractVerifier
2015-11-27 14:19:43 +00:00
Sergio Giro
6449e09912
Merge "frameworks/base: add tests for AbstractVerifier" am: f4756068ed
...
am: 05c2b772a3
* commit '05c2b772a3b80b8bcfe384fac47dd3efb63480fc':
frameworks/base: add tests for AbstractVerifier
2015-11-27 14:16:39 +00:00
Sergio Giro
615ffeb922
frameworks/base: add tests for AbstractVerifier
...
DistinguishedNameParser was moved to frameworks/base in
46972b2d825a2368706e7d2210559ca18fc2b332
Testing its behaviour through AbstractVerifier.
DistinguishedNameParserTest adapted from
f7ce6a3b235a9aaf884d3b96e50d6b249dd770e0
Bug: 25882613
Change-Id: Idf901503d96df8b160d84f4f88dbf79359f0e035
2015-11-27 13:55:32 +00:00
Daniel Xie
eb2b399ce9
Merge "Don\'t run Wifi scan timestamp tests when location is turned off." into marshmallow-cts-dev am: 57031aa47e am: 3f0866e144 am: 9bfb43c08f am: 3b7e1623b3
...
am: df3a267558
* commit 'df3a2675583188747cc04e7e9daa141f7ca3b53d':
Don't run Wifi scan timestamp tests when location is turned off.
2015-11-17 04:16:41 +00:00
Daniel Xie
975335db32
Merge "Don\'t run Wifi scan timestamp tests when location is turned off." into marshmallow-cts-dev am: 57031aa47e am: 3f0866e144 am: 9bfb43c08f am: 3b7e1623b3
...
am: df3a267558
* commit 'df3a2675583188747cc04e7e9daa141f7ca3b53d':
Don't run Wifi scan timestamp tests when location is turned off.
2015-11-17 01:45:02 +00:00
Wei Wang
abe587984a
Don't run Wifi scan timestamp tests when location is turned off.
...
Bug:24957400
Change-Id: I891040ffc0808d62a8f5f1bb20fd633b9f7f482c
2015-11-10 14:23:55 -08:00
Nash Lincoln
0784f04f1b
migrate net host tests to cts_v2
...
Change-Id: Ida3141522a536a2d33bb366fdb6b00ced907c3a4
2015-11-06 17:05:17 -08:00
Daniel Xie
935fba1ab2
Squashed mnc-dev changes:
...
This contains all of the changes from b54aa51 to
791e51a on mnc-dev, except the changes
to tests/tests/security.
Bug: 24846656
Change-Id: I01f53a1a238ac49f86928e0e22796dc73e0e34af
2015-10-19 16:01:03 -07:00
Aaron Holden
58bb58ab7b
Move WiFi Precondition from device to host side
...
This enables the option to synchronously connect to a Wifi network if
not already connected.
bug:23939594
Change-Id: I2c808fc95acba324ee72564d08983a2b6e00db95
2015-10-09 12:33:25 -07:00
Stuart Scott
48d6d1ed5f
Remove common-config and switch to AndroidJUnitTest.
...
bug:21762834
Change-Id: I17e1b44e4429a3fbeb9f110a74038e4ec306af38
2015-10-06 10:55:25 -07:00
Aaron Holden
c75c7e30f6
Cleanup of CTS Preconditions work
...
- removed unused constant from ScreenLockHelper class
- used getProperty method of ITestDevice, instead of executeShellCommand
- modified BuildCheckTest to reflect use of 'getProperty' method above
- placed target preparer for Wifi check above apk installer, so apk
isn't installed until precondition check has passed
- removed unused imports in net module's PreconditionsTest
- added Wifi precondition check to content, text, webkit & widget modules
bug:23939594
Change-Id: I125b9937b974d142c0d2343f584516bfc713787a
2015-10-06 09:50:57 -07:00
Stuart Scott
f9a13a9b49
Migrate Admin to CTSv2.
...
bug:21762834
Change-Id: Ibec9df07e2f635218bdae70ddf36fda6e60de0e0
2015-10-05 13:36:17 -07:00
Aaron Holden
d62c5997f6
Add WiFi precondition check to 'net' CTS module
...
bug:23939594
Change-Id: I9e625e635fc6942c9eaa95915888f0fe7284a9ea
2015-09-28 13:17:30 -07:00
Paul Jensen
69ab5795b1
am c9ab5af9: am 8fafeb28: am df4f2629: am a1b4d2de: am 22e42b48: resolved conflicts for 3e4042eb to mnc-dev
...
* commit 'c9ab5af9f2a811e2b6459b077092c29ca13b6f6d':
CTS: verify ConnectivityManager.requestNetwork throws for restricted networks
2015-09-25 18:16:04 +00:00
Paul Jensen
c9ab5af9f2
am 8fafeb28: am df4f2629: am a1b4d2de: am 22e42b48: resolved conflicts for 3e4042eb to mnc-dev
...
* commit '8fafeb28797eb5ff96ebde62b1e7178ab56f29fe':
CTS: verify ConnectivityManager.requestNetwork throws for restricted networks
2015-09-25 18:09:20 +00:00
Paul Jensen
22e42b48f5
resolved conflicts for 3e4042eb to mnc-dev
...
Change-Id: I3476d55641288b21a1609a8e72f37012d86bad03
2015-09-25 07:28:26 -04:00
Paul Jensen
3e4042eb78
am 063f9718: am 358b4b14: am 8c04baef: am e287a5c6: Merge "CTS: verify ConnectivityManager.requestNetwork throws for restricted networks" into lmp-dev
...
* commit '063f971859d0ef5ac96b69de345cd94fd4788b7e':
CTS: verify ConnectivityManager.requestNetwork throws for restricted networks
2015-09-25 11:09:06 +00:00
Paul Jensen
063f971859
am 358b4b14: am 8c04baef: am e287a5c6: Merge "CTS: verify ConnectivityManager.requestNetwork throws for restricted networks" into lmp-dev
...
* commit '358b4b140f9811667471596293fc1f5cfa2d536c':
CTS: verify ConnectivityManager.requestNetwork throws for restricted networks
2015-09-25 11:02:47 +00:00
Paul Jensen
358b4b140f
am 8c04baef: am e287a5c6: Merge "CTS: verify ConnectivityManager.requestNetwork throws for restricted networks" into lmp-dev
...
* commit '8c04baef4cb8066712c6b1af345781b41a17aa8a':
CTS: verify ConnectivityManager.requestNetwork throws for restricted networks
2015-09-25 10:57:05 +00:00
Paul Jensen
e287a5c6d8
Merge "CTS: verify ConnectivityManager.requestNetwork throws for restricted networks" into lmp-dev
2015-09-25 10:45:39 +00:00
Paul Jensen
45984684aa
CTS: verify ConnectivityManager.requestNetwork throws for restricted networks
...
Bug:21900139
Change-Id: Ib026bc4e66437f015729bdf7c923145ffa41fbde
2015-09-22 08:07:46 -04:00
JP Abgrall
740064e97f
am ab0f0fe8: Merge "Fix CTS build" into lollipop-cts-dev
...
* commit 'ab0f0fe884c280adcde0259f4692cebfb3d0bf08':
Fix CTS build
2015-09-22 03:45:28 +00:00
Nash Lincoln
de95223f87
migrate net tests to cts_v2
...
bug:21762834
Change-Id: Ic86dee963720c1412a42ec231c81c97d7f322420
2015-09-17 13:46:25 -07:00
Amith Dsouza
2d22fa9b07
am 2e4ce593: Merge "LocalSocketTest.testAccessors: fix the *SendBufferSize* test" into lollipop-cts-dev
...
* commit '2e4ce593e3b6c611783bc660f95e2e783e004cd3':
LocalSocketTest.testAccessors: fix the *SendBufferSize* test
2015-09-15 17:00:13 +00:00
Daniel Xie
624951463c
am 1840edcd: Merge "Accept more than one SD in NsdManagerTest" into lollipop-cts-dev
...
* commit '1840edcd80a4bc62bae117848ef64a5c4bf83ef2':
Accept more than one SD in NsdManagerTest
2015-09-15 17:00:07 +00:00
Daniel Xie
f4efe32775
am e260657a: am 45643db7: am 03786bc4: am 545427fc: Merge "Support WiFi only device at runtime." into kitkat-cts-dev
...
* commit 'e260657a086ed507a80e8809315d22495faa15e4':
Support WiFi only device at runtime.
2015-09-12 00:31:35 +00:00
Daniel Xie
e260657a08
am 45643db7: am 03786bc4: am 545427fc: Merge "Support WiFi only device at runtime." into kitkat-cts-dev
...
* commit '45643db78515be3603ad2a17244d21badfd89a25':
Support WiFi only device at runtime.
2015-09-10 18:25:59 +00:00
Takayuki Hoshi
f8e2416639
am 2212f189: Merge "Normalize ipv6.cts.PingTest#testLoopbackPing\'s packet size" into lmp-sprout-dev
...
* commit '2212f189a42be9b52e37a10e8b94d3d07c51e109':
Normalize ipv6.cts.PingTest#testLoopbackPing's packet size
2015-09-10 04:41:04 +00:00
Unsuk Jung
bfd0aabaa5
am b8ad8a1a: am 17607b8a: am 4106602e: am 7e84d75c: Merge "resolve merge conflicts of a97c792 to kitkat-cts-dev" into kitkat-cts-dev
...
* commit 'b8ad8a1a990597951faaf9e82722e628ff74c0e3':
Fix CTS android.net package testTrafficStatsForLocalhost seldom fail issue
2015-09-10 03:47:23 +00:00
Unsuk Jung
b8ad8a1a99
am 17607b8a: am 4106602e: am 7e84d75c: Merge "resolve merge conflicts of a97c792 to kitkat-cts-dev" into kitkat-cts-dev
...
* commit '17607b8a36287108099db71b9a15f20d64434203':
Fix CTS android.net package testTrafficStatsForLocalhost seldom fail issue
2015-09-09 22:19:06 +00:00
Erik Kline
551fccedf3
am e1bbb869: am 19467ab3: am 28c60e6e: am d20107df: Merge "Add trivial retransmission of QUIC packets" into mnc-dev
...
* commit 'e1bbb86947e2933f192b760e25551d0edc00597d':
Add trivial retransmission of QUIC packets
2015-08-19 23:08:47 +00:00
Erik Kline
f19c63e5b1
Add trivial retransmission of QUIC packets
...
Also:
- correct use of strlcpy()
- add some more logging
Bug: 21833352
Bug: 22181260
Change-Id: Id153e17b8d4d32a35d38846599aa51147739e163
2015-08-20 04:45:08 +09:00
Lorenzo Colitti
7f6e116a6f
am 3bf4612e: am 35a548e1: am ca6150b2: am c2aaf355: Merge "Update CTS for unsupported legacy ConnectivityManager APIs" into mnc-dev
...
* commit '3bf4612e6462a37242f3784405199d1ec6ba8093':
Update CTS for unsupported legacy ConnectivityManager APIs
2015-08-07 02:13:44 +00:00
Lorenzo Colitti
cfc277c7f1
Update CTS for unsupported legacy ConnectivityManager APIs
...
http://ag/736511 made the deprecated ConnectivityManager routing
APIs {start,stop}UsingNetworkFeature and requestRouteToHost throw
exceptions for apps whose target SDK version is 23 or above. Move
the tests for these APIs to a new APK that targets SDK version 22
and update the current test APK to ensure that they throw an
exception.
Bug: 22977863
Bug: 23003441
Bug: 23003635
Change-Id: Icf58e928fdc0018d977ce8aa315866659d32debb
2015-08-07 10:45:33 +09:00