Commit Graph

2690 Commits

Author SHA1 Message Date
Alex Klyubin
652d30b4b5 Test default config of SSLCertificateSocketFactory.
Bug: 11220570
Change-Id: I37440f3e8eda18215b9af703c027e4c8ca0334bf
2014-01-16 14:52:46 -08:00
Unsuk Jung
00677beb5b am c15b9ee0: am 210c2928: Merge "Lookup private resources in run-time"
* commit 'c15b9ee0ad36bb9f9266de824a332e704f498e40':
  Lookup private resources in run-time
2014-01-08 23:03:14 +00:00
Unsuk Jung
210c29288e Merge "Lookup private resources in run-time" 2014-01-08 22:49:55 +00:00
William Luh
e57a5f7b6f Merge "CTS test for X509TrustManagerExtensions.isUserAddedCertificate." 2013-12-13 18:21:53 +00:00
William Luh
638d1eeee7 CTS test for X509TrustManagerExtensions.isUserAddedCertificate.
Bug: 11257762
Change-Id: I4d8bec7b75613b3286063e28b0fe0cba4e5c716b
2013-11-12 10:05:11 -08:00
Stuart Scott
7fd24cb8df Refactoring CTS to remove PTS references.
PTS is now a part of CTS

bug: 11561456
Change-Id: I577296fe7735790e285aa4747dc7832bc8ae5b6d
2013-11-08 14:29:01 -08:00
Johan Redestig
b29370db34 Lookup private resources in run-time
This fixes the following cases for us:

android.net.cts.ConnectivityManagerTest#testGetAllNetworkInfo
android.net.cts.ConnectivityManagerTest#testGetNetworkInfo
android.net.cts.ConnectivityManagerTest#testIsNetworkSupported
android.net.cts.ConnectivityManagerTest#testRequestRouteToHost
android.net.cts.ConnectivityManagerTest#testSetNetworkPreference

We need to use the prebuilt binary but that has dependency to
private resource identities that differs in our environment. With
this change the resources are looked up in run-time to avoid the
build time dependency.

Change-Id: I6579338b591ca7a0da3f03f796136269c7789780
2013-10-30 14:22:07 +01:00
Vinit Deshapnde
851672c1ed Ignore duplicate events from mDNS stack in CTS
It is too late to fix the duplicate events, and they may have existed
in JB-MR2 as well. So fixing CTS to ignore them for now.

Bug: 11049532
Change-Id: I0785a32dbac04eacb6994b428b12ce1ec27945d2
2013-10-10 14:56:43 -07:00
Vinit Deshapnde
e52091e2cc Fix broken DNS Test
Couple of lines were just wrong (typo?) - and I have reduced our dependence
on multiple static IPs (used to test reverse mapping). It can still get
broken when external servers change their IP addresses though.

Bug: 8658901

Change-Id: I745c958df2f61130798552f0f5f736c73fb5de30
2013-09-23 16:21:04 -07:00
JP Abgrall
af3296605b TrafficStats: fix uncertainty in flushing network traffic
Flushing TCP traffic isn't reliable enough to force a packet on the socket,
even with Nagle disabled.

The kernel's socket sendto() is being invoked with 1024 bytes each time,
but something deeper in the stack is merging packets.
So now we wait 5ms between each of the 1024 packets after flushing.
This allows running the test overnight in a loop without failure
instead of only ~5 times.

The error messages are now more detailed.

Bug: 10668088
Change-Id: Ic47bec81c6dba2fad8b96eb4a41f183115c371de
2013-09-12 15:06:20 -07:00
Brian Carlstrom
4bc10e0fbe Change SSLCertificateSocketFactoryTest to use googlemail.com
Bug: 10351880

(cherry picked from commit 5d5ff5a81d)

Change-Id: Ied4db819e0a62352776f7b19365e30a079a51b9f
2013-08-27 11:21:50 -07:00
Brian Carlstrom
19a37cadda am 6469dee2: am d15dd73c: am d26b8028: am 64bb1b75: am 799044f3: am 505ce805: Merge "Change SSLCertificateSocketFactoryTest to use googlemail.com" into jb-dev
* commit '6469dee2c0a7b6c51eafbbef339878fcc42ad962':
  Change SSLCertificateSocketFactoryTest to use googlemail.com
2013-08-26 14:36:16 -07:00
Brian Carlstrom
64bb1b7548 am 799044f3: am 505ce805: Merge "Change SSLCertificateSocketFactoryTest to use googlemail.com" into jb-dev
* commit '799044f32079eea8e057afda4d07b173db5da4d8':
  Change SSLCertificateSocketFactoryTest to use googlemail.com
2013-08-26 14:26:44 -07:00
Brian Carlstrom
799044f320 am 505ce805: Merge "Change SSLCertificateSocketFactoryTest to use googlemail.com" into jb-dev
* commit '505ce805c31d697dd12bb2c033eb69b3d7ec9696':
  Change SSLCertificateSocketFactoryTest to use googlemail.com
2013-08-26 14:23:39 -07:00
Brian Carlstrom
27c7fe5420 Change SSLCertificateSocketFactoryTest to use googlemail.com
Bug: 10351880

(cherry picked from commit d6e12427d0b69032fc82d0635a7b10bdbd39c78c)

Change-Id: I0d2708c507da5cd84f61bdd50ac3b76b3ac15a0d
2013-08-22 12:42:50 -07:00
Brian Carlstrom
5d5ff5a81d Change SSLCertificateSocketFactoryTest to use googlemail.com
Bug: 10351880
Change-Id: I759fe361b0c543535d100ca26ca5047ff4dbc026
2013-08-21 23:13:15 -07:00
Lorenzo Colitti
58a91ac733 Add a CTS test for IPv6 ping socket support.
IPv6 ping socket support is needed for apps to successfully run
ping6, but the kernel support was only merged recently. This
test ensures that the required kernel support is available.

Bug: 9701153
Change-Id: Ieac32ca9dbcaf3890fa3e57c1326fa83787ac6d1
2013-08-21 22:06:43 +09:00
Wink Saville
a73db07a53 Add test for TYPE_MOBILE_IA.
Bug: 10373518
Change-Id: Ifb976760ea91a858bfc5387fb93e465665cf078f
2013-08-17 16:47:29 -07:00
Vinit Deshapnde
4fd65d09bc Add a CTS test for NSD manager API
A simple test that registers, discovers and then resolves a service.

Bug: 9574276

Change-Id: I685df3c02112cf79b11b2c97efd560dda7232fda
2013-07-23 16:04:58 -07:00
Robert Greenwalt
822136e2c0 am 5faebf8a: am c8ddd2d7: Fix CTS test for scan-always-available env
* commit '5faebf8a570ad1ced971aa1c3b7d53eff82b6ff3':
  Fix CTS test for scan-always-available env
2013-06-27 14:50:49 -07:00
Robert Greenwalt
c8ddd2d780 Fix CTS test for scan-always-available env
Even if you disable wifi the supplicant will still be pingable
if we're set in always scanning mode.  Make the test aware.

bug:9545987
Change-Id: I7f1bd0166b877a706de51f8ef169355c98ae25a3
2013-06-27 11:28:11 -07:00
Robert Greenwalt
69f9447ac9 DO NOT MERGE - remove dns test from MR2
bug:8658901
Change-Id: I979f38545d7bde91e3711d09ba4278e02183a05b
2013-05-21 16:37:17 +00:00
Robert Greenwalt
359df64b1c am af290b1a: am 0691d964: Merge "Add debug logging." into jb-mr2-dev
* commit 'af290b1a4439672b980209a71ef8eea6fb1f4694':
  Add debug logging.
2013-04-25 21:27:11 -07:00
Robert Greenwalt
fc0f6f4721 Add debug logging.
Also fix timing issue with setNetworkPreference
bug:8658717

Change-Id: Ifc6de4758a3d800a52f4e53cb4c6d2a4c6109390
2013-04-25 17:08:18 -07:00
Andy McFadden
a47523d872 Fix file permissions
Java source files are not generally executable.

Change-Id: I4fe45a3eb7bc136ba29dd6632bf9865f2f940bf3
2013-04-25 12:57:28 -07:00
Irfan Sheriff
bc404f17a6 Merge "EAP API CTS tests" into jb-mr2-dev 2013-04-19 19:45:53 +00:00
Irfan Sheriff
9d24abdc7d EAP API CTS tests
Bug: 8646305
Change-Id: Id5595ee0d1bfedae827df8c99516cd4e27d0a97a
2013-04-19 11:15:28 -07:00
Robert Greenwalt
5e1b502ce8 Add CTS tests for ConnectivityService
bug:4074341
Change-Id: Ic02d08e51c051789ed7fa1c949d42fa22bdc8a08
2013-04-15 22:50:28 +00:00
Jeff Sharkey
66bc4595dc TrafficStats are always supported, tag tests.
Bug: 8417220
Change-Id: I2a06d2e752606cec4bfe35266d9e37271c275d95
2013-03-26 14:00:34 -07:00
Irfan Sheriff
98eea9f03a Add cts to test quotes on ssid in WifiInfo
Bug: 7892415
Change-Id: I0e7b97762aa755f9d10655572be0ad550e370716
2013-03-22 13:56:42 -07:00
JP Abgrall
fe3b3f62a4 Fixup TrafficStats test wrt mobile vs total vs loopback
- Use getMobileBlabla() instead of getTotalBlabla()
- Have getTotalBlabla() reflect the fact that it includes loopback.
- Adjust checks to take headers, acks, and packet counts into account.

Change-Id: I9e1dfbbbdb9a6f932a14a2e3baee7a34469b9008
2013-03-04 18:58:07 +00:00
Robert Greenwalt
9ac09493ad Add Dns CTS test.
Checks java and native calls.
Adds some performance tests, but need to look at how that should be used.

Change-Id: I158164829da13302d9532275cef3482c4736168e
2013-02-14 12:04:46 -08:00
Wink Saville
775417bd58 Delete frameworks/base/voip use voip-common from frameworks/opt/net/voip
Change-Id: Ieaba759a0f69b45c4b8839cbed1fe757cdf190c5
2013-01-28 20:00:57 -08:00
Jake Hamby
566cad494d Fix race condition causing occasional CTS failures.
WifiManagerTest was waiting for SUPPLICANT_STATE_CHANGED_ACTION
after enabling or disabling WiFi. Fix the code to check if the
WiFi state is already the desired state, and if not, to wait for
the WIFI_STATE_CHANGED_ACTION broadcast intent.

Bug: 7082455
Change-Id: Id1c2242c32311084f5587ea5403f6b227d1b8b04
2012-10-26 16:01:09 -07:00
Irfan Sheriff
a0a19ea8aa Make packet count test more robust
Ensure the packet count test does not fail due to a single attempt.
Our goal is to just ensure the packet count API exists.

Bug: 7001746
Change-Id: I8c6604528946166969126cd5b085024f81790a77
2012-10-17 16:12:19 -07:00
Robert Greenwalt
3de9654925 Fix NetworkInfo CTS test.
bug:7074876
Change-Id: I29cf9086fda62dda8078b42a1632f139ec65ee52
2012-09-16 17:11:52 -07:00
Iliyan Malchev
87abf00d2f Merge "Revert "Revert "CTS for timestamp in ScanResult""" into jb-mr1-dev 2012-08-20 14:58:31 -07:00
Iliyan Malchev
f1537c2ba4 Revert "Revert "CTS for timestamp in ScanResult""
With b/6979211 fixed, we can reinstate timestamps.

This reverts commit 72010dbfcf

Change-Id: I1066567c728b233ad1d6c6af912c32ef099580e6
2012-08-20 13:21:49 -07:00
Yuhao Zheng
72465772e0 CTS test for WiFi watchdog.
The new WiFi watchdog requires kernel/driver to export some packet loss
counters. This CTS tests whether those counters are correctly exported.

Change-Id: Ic764eff64ff2ef354b46f17e46eb74b14f191e4c
2012-08-15 15:24:36 -07:00
Iliyan Malchev
72010dbfcf Revert "CTS for timestamp in ScanResult"
This accompanies:
https://googleplex-android-review.googlesource.com/217002

This reverts commit e9adc27111

Change-Id: Ib37b72c59aad34fe9fd4461979c5f51af1218e37
2012-08-14 12:24:25 -07:00
Irfan Sheriff
e9adc27111 CTS for timestamp in ScanResult
Bug: 2961159
Change-Id: I8f1fd270a71173e2bd43b590914b7315232e4fba
2012-08-13 14:25:37 -07:00
Jean-Baptiste Queru
b59a2f446b am dc250c32: Merge "Fix CTS case testStartUsingNetworkFeature of ConnectivityManagerTest"
* commit 'dc250c329f994891fe4334f16681ddc05c573acd':
  Fix CTS case testStartUsingNetworkFeature of ConnectivityManagerTest
2012-08-08 12:00:06 -07:00
Jean-Baptiste Queru
dc250c329f Merge "Fix CTS case testStartUsingNetworkFeature of ConnectivityManagerTest" 2012-08-08 11:21:36 -07:00
Irfan Sheriff
f16bea1f59 Ignore case on network info name
Bug: 6309231
Change-Id: I41244e25ccbf0d896edebf886c7f67ab1ded0a04
2012-07-25 12:10:40 -07:00
Irfan Sheriff
c0e2e5715b Fix NPE in CTS test
wifiConfigurations returned by getConfiguredNetworks() can be null.
It is only incidental that this test passed fine in the past.

Bug: 6822950
Change-Id: I570ab6e7fd6cc5eb150914a5d7ca527ccc2f16cd
2012-07-23 10:19:34 -07:00
Keun young Park
30199405c3 change testRunner to CtsTestRunner
- unlock keyguard by default

Change-Id: I0452a72cfa54edfa79b485894ffd0493a71122ee
2012-07-12 12:57:30 -07:00
Brian Muramatsu
a4170d951a Merge "Fix WifiInfoTest flakiness" into jb-dev 2012-06-27 12:56:05 -07:00
Irfan Sheriff
f7e73fcc35 Add wifi & p2p Concurrency test
Change-Id: I5a35fb097b22b00366b189bad9c44a640a7d5b5a
2012-06-26 16:54:35 -07:00
Brian Muramatsu
237e076594 Fix WifiInfoTest flakiness
Poll a bit longer waiting for getNetworkId and getWifiState to return
the proper values. The bug reports seem to indicate that the WiFi
is shutting down properly.

Add a new static check method to PollingCheck that I think is simpler
than the existing way of creating a new PollingCheck, overriding
check, and then making sure to call run. This new variation also allows
you to specify a message rather than just "unexpected timeout."

Bug 6443337

Change-Id: I9f7c942f6e26b957bb717b58b1ab984acc556bf7
2012-06-26 15:05:08 -07:00
bs
562af417ed Fix CTS case testStartUsingNetworkFeature of ConnectivityManagerTest
Check if type of network is supported on the devices.
The device supporting TYPE_WIFI returns failureCode(-1).
But, not supported device returns wifiOnlyStartFailureCode or
wifiOnlyStopFailureCode.

Change-Id: I070bb19f6740367c476e78b884c2a36d111ff3ee
2012-06-26 20:23:47 +09:00