Commit Graph

4468 Commits

Author SHA1 Message Date
Nick Kralevich
77d823cf78 am 739152d2: am 8670b1c2: ListeningPortsTest: Make error message more useful.
* commit '739152d27899821227e7cc07670d1f47a9a4e39d':
  ListeningPortsTest: Make error message more useful.
2011-10-05 10:51:21 -07:00
Nick Kralevich
8670b1c23f ListeningPortsTest: Make error message more useful.
- Add UID of listener to error message.
- Convert hex port number to decimal for easier reading by humans.

Change-Id: I0b8edcf14ebd0c039b936055a265f4706558f9fe
2011-10-05 10:43:01 -07:00
Brian Muramatsu
a3b6f08cf8 Merge remote branch 'goog/honeycomb-mr2'
Conflicts:
	apps/CtsVerifier/AndroidManifest.xml
	apps/CtsVerifier/res/values/strings.xml
	apps/CtsVerifier/src/com/android/cts/verifier/features/FeatureSummaryActivity.java
	tests/core/runner/src/android/test/InstrumentationCtsTestRunner.java
	tests/expectations/knownfailures-3.0_r1.txt
	tests/expectations/knownfailures.txt
	tests/tests/app/src/android/app/cts/ActivityManagerMemoryClassTest.java
	tests/tests/dpi/src/android/dpi/cts/ConfigurationTest.java
	tests/tests/os/src/android/os/cts/BuildVersionTest.java
	tools/host/src/com/android/cts/Version.java

Change-Id: If9da4508f8eee25351538e3118e6ae990be49c60
2011-08-30 17:56:00 -07:00
Brian Muramatsu
68f66bffff Fix for ConnectivityManagerTest
Bug 5178134

Some network types can throw SecurityExceptions and depend on the
build configuration. Don't fail the test if those throw exceptions.

Change-Id: I5365f85280a348ef1777d05ce50b2dff17a1312f
2011-08-17 16:14:29 -07:00
Brian Muramatsu
b8ddbd082a Merge remote branch 'goog/gingerbread' into manualmerge 2011-06-29 15:58:54 -07:00
Brian Muramatsu
e5ed9f7d8a am b44dd720: am 952fb86a: am c2e543dc: Merge "Test for Apache HttpClient" into gingerbread
* commit 'b44dd720f7289c67ff31b15fae4f1dace30f03c6':
  Test for Apache HttpClient
2011-06-27 14:43:47 -07:00
Brian Muramatsu
b44dd720f7 am 952fb86a: am c2e543dc: Merge "Test for Apache HttpClient" into gingerbread
* commit '952fb86af1e1cb4714ee3aa03fa5b36a6ad204d4':
  Test for Apache HttpClient
2011-06-27 14:37:15 -07:00
Brian Muramatsu
a18b717579 Test for Apache HttpClient
Bug 4554251

This test launches multiple downloads at once to check that the
device can open up multiple sockets without OOMing. One test
tries to use wifi if available and the other tries to use
mobile by disconnecting wifi.

The CtsTestServer was modified to handle responses in separate
threads to test concurrent downloads.

Change-Id: Ifa1a11f409c69c1ae3ce621bf0542e0be56b50e0
2011-06-22 18:18:26 -07:00
Brian Muramatsu
1ae190ce77 Fix NetworkInfo_DetailedStateTest Again
Change-Id: I07d6a0ee21039859991a9594cd8b4e11ac4eecb6
2011-06-22 15:35:43 -07:00
Brian Muramatsu
36b6639763 Fix for NetworkInfo_DetailedStateTest
Update the test to support a new enum value.
Once the SignatureTest is fixed to check enums there
shouldn't be any need for these enum checking tests.

Change-Id: I85d75e86453c37a35f8be9e15d99dd47c690f6ea
2011-06-07 13:53:47 -07:00
Brian Muramatsu
8128f7face Merge remote branch 'goog/gingerbread' into manualmerge
Conflicts:
	tests/tests/accounts/src/android/accounts/cts/AccountManagerTest.java
	tests/tests/net/src/android/net/cts/ConnectivityManagerTest.java
	tests/tests/net/src/android/net/cts/NetworkInfoTest.java

Change-Id: Ia16b95167e5c023cc977ea9d6bf2323d5c6cbf71
2011-04-27 13:51:31 -07:00
Xia Wang
4a88b709cc Backport from HC to Fix NetworkInfoTest
Bug 4322307

Fixed some other assertions that didn't check for
either CONNECTING or CONNECTED. Cleaned up some
code and removed some extraneous checks.

Original description:
"Fix cts tests for Wi-Fi only devices.

For Wi-Fi only device,
startUsingNetworkFeature() returns Phone.APN_TYPE_NOT_AVAILABLE
stopUsingNetworkFeature() return 1;

In NetworkInfoTest:
cm.getAllNetworkInfo() returns an array of NetworkInfo.
But the index is not based on network type."

Change-Id: I0b5e3d0cfe5fac18bca0a5ca2ce4cc73bc4dfa16
2011-04-21 17:46:29 -07:00
Brian Muramatsu
4d2f2058dd Merge remote branch 'goog/gingerbread' into manualmerge
Conflicts:
	tests/expectations/knownfailures.txt

Change-Id: I9db887535ef970eef0209251460c13b367f23779
2011-04-07 11:30:45 -07:00
Irfan Sheriff
f108edaa63 Fix WifiInfoTest
Do not listen to supplicant state change for wifi disable action,
instead depend on wifi state changed action

Bug: 4242273
Change-Id: Ie53ff42d5e51bbc9f28d93a435fa3315611d342e
2011-04-06 10:26:32 -07:00
Brian Muramatsu
e704a78bf7 Merge remote branch 'goog/gingerbread' into manualmerge
Conflicts:
	tests/tests/app/src/android/app/cts/InstrumentationTest.java
	tests/tests/content/src/android/content/cts/ContextTest.java
	tests/tests/net/src/android/net/cts/ConnectivityManagerTest.java
	tests/tests/os/src/android/os/cts/BuildVersionTest.java
	tests/tests/telephony/src/android/telephony/cts/SmsManagerTest.java
	tests/tests/util/src/android/util/cts/EventLogTest.java
	tests/tests/view/src/android/view/cts/WindowTest.java
	tests/tests/view/src/android/view/inputmethod/cts/BaseInputConnectionTest.java
	tests/tests/widget/src/android/widget/cts/AutoCompleteTextViewTest.java
	tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/DeviceInfoInstrument.java
	tools/host/src/com/android/cts/TestDevice.java

Change-Id: Ic4ee072b6c82f97ba256b25a71db153195c958b9
2011-03-31 15:29:51 -07:00
Xia Wang
a89c9170d2 Fix cts tests for Wi-Fi only devices.
For Wi-Fi only device,
startUsingNetworkFeature() returns Phone.APN_TYPE_NOT_AVAILABLE
stopUsingNetworkFeature() return 1;

In NetworkInfoTest:
cm.getAllNetworkInfo() returns an array of NetworkInfo.
But the index is not based on network type.

bug#: 3513630

Change-Id: Ied0684a9fe2152dae242d779efe3dffd6c9c0609
2011-03-07 12:25:18 -08:00
Brian Muramatsu
456706e3e1 Merge remote branch 'korg/froyo' into froyomerge
Conflicts:
	tests/tests/dpi/src/android/dpi/cts/ConfigurationTest.java
	tests/tests/view/src/android/view/cts/WindowTest.java

Change-Id: Ibf7651011e4e594d0173c90f6341f75a9e71d45b
2011-02-28 18:25:14 -08:00
Brian Muramatsu
f3336d71e9 Remove Reference to Internal Phone Constant
Use the constant defined in the test instead.

Change-Id: Ia4c85a56663df0c79910395aaae534407952aaf6
2011-02-28 15:21:42 -08:00
Brian Muramatsu
636c31ade5 Merge remote branch 'korg/froyo' into manualmerge
Conflicts:
	tests/tests/os/src/android/os/cts/BuildVersionTest.java
	tests/tests/webkit/src/android/webkit/cts/WebChromeClientTest.java

Change-Id: I1befa31b0cce0a72a6d71760d18cae1bb97ca937
2011-02-16 14:28:49 -08:00
Brian Muramatsu
76e1414be8 Test startUsingNetworkFeature TYPE_MOBILE_HIPRI
Bug 3307293

Change-Id: I03b3e11e1de20333ece772e3448937c61ca0fe91
2011-02-15 13:03:55 -08:00
Brian Carlstrom
3bd4323ce4 Change SSLCertificateSocketFactoryTest.testCreateSocket host
The test may be flaky because it depends on a live server.
Switch to a different server that may be more reliable.

Bug: 3188260
Change-Id: Ibba872489650914db8ddd9a117529556787f66ec
2011-02-10 15:41:48 -08:00
Brian Muramatsu
cda6b3d881 Merge remote branch 'korg/froyo' into manualmerge
Conflicts:
	tests/tests/permission/src/android/permission/cts/NoActivityRelatedPermissionTest.java
	tests/tests/telephony/src/android/telephony/cts/SmsManagerTest.java

Change-Id: Ie74c678a6ae142d9861b6965a8ca89ff58ebfa83
2011-01-20 15:03:31 -08:00
Madan Ankapura
328b217e58 DO NOT MERGE fix failing test testWifiInfoProperties for non-telephony devices
Device can still have a valid networkId even after disconnection
if it was associated with AP, getWifiState is a better check to
get valid state.

Change-Id: I31a8ca38f304fbf639e1f3111be4b5ed406e3b3c
2011-01-19 18:09:45 -08:00
Brian Muramatsu
d9aec36188 Merge remote branch 'korg/froyo' into gingerbread
Change-Id: Ieea971689f21c7a010c49d85818ef4ac089f3202
2011-01-14 14:18:22 -08:00
Masanori Ogino
d2488d6ffd Test requestRouteToHost() except TYPE_WIFI
If the device is set Wifi-ON, then testRequestRouteToHost always fails.

Change-Id: Ie487773552e8f6f1d4838755cc39e23c5aa57c1d
2011-01-13 15:52:34 +09:00
Jean-Baptiste Queru
5e9814b99e reconcile with open-source gingerbread CTS
Change-Id: I48668c65b9c0f0921954d309b4b53e026af3a86f
2011-01-10 12:23:47 -08:00
Brian Muramatsu
b511c888ec Nuke TrafficStatsTest#testTrafficStatsWithHost...
Bug 3189208

Removing this test due to potential problems with GB. This will need to
be brought back and investigated.

Change-Id: Ifeafdf44464c652b063edfb51c5f7931624b6973
2011-01-07 15:19:18 -08:00
Nick Kralevich
553ae9a71a still seeing flakyness. Increase retries.
Change-Id: I988afa2922dc503bcdff455822088ad22c854d97
2010-12-13 14:02:45 -08:00
Nick Kralevich
26c4fe935f Make ListeningPortsTest less flaky.
When a DNS lookup occurs, a new listening UDP socket will be
created to receive the DNS response.  This listening socket is
only temporary, and shouldn't count as a permanent open
socket.

Bug: 3276283

Change-Id: I45090c0e07d9b360cc26f4bce23833db8c399507
2010-12-13 12:52:34 -08:00
Brian Muramatsu
f074f02bc1 am 19b68add: am 8c329055: Merge "Fix Build" into froyo
* commit '19b68add2857e75ab9303c4e32f1abe987d7186d':
  Fix Build
2010-11-29 14:41:38 -08:00
Brian Muramatsu
5822cf4427 Fix Build
Didn't have the right javac set in my environment... :-(

Change-Id: I951a11460eafeb75c081a4a07787aaf320b48b31
2010-11-29 14:28:39 -08:00
Brian Muramatsu
358cf19274 am 6873bf0f: am 91d0b1ea: Merge "Fix android.net.cts.ProxyTest" into froyo
* commit '6873bf0fd29a0537ba8e44459a0674fb77e9029d':
  Fix android.net.cts.ProxyTest
2010-11-29 14:06:01 -08:00
Brian Muramatsu
91d0b1ea9b Merge "Fix android.net.cts.ProxyTest" into froyo 2010-11-29 13:57:54 -08:00
Brian Muramatsu
5f78c57fc5 Fix android.net.cts.ProxyTest
Bug 3188260

Remove the code that was trying to write to secure settings
and take off the BrokenTest annotation.

Change-Id: I0759db38225a9822b25c987e66a7590c555b5e9e
2010-11-29 12:57:14 -08:00
Brett Chabot
9e410175ba Stop WifiManagerTest from disabling current network.
Bug 3181376

Change-Id: Ia8d12a10f4ed0c46325e76f1dffeef93412a55e5
2010-11-29 12:21:20 -08:00
Brett Chabot
bfc9868369 Stop WifiManagerTest from disabling current network.
Bug 3181376

Change-Id: I93fa28f20a36b2cc90fbe0a59bbfbac758855c3a
2010-11-12 17:24:30 -08:00
Brian Muramatsu
5ff0ab314c Delete CM#testAccessNetworkPreference Test
Bug 3106981

ConnectivityManager#setNetworkPreference used to be synchronous,
but now it merely sends a handler message. As a result, the
method won't throw any SecurityExceptions, because it will throw
it in the handler instead when trying to write to System.Secure
settings. The test tries to write invalid settings or the same
settings value to test that it won't throw a SecurityException.
Since the method won't throw the exceptions anymore and its
not clear how long to wait to confirm that the settings weren't
going to be changed, just delete these tests.

Change-Id: I9e754bb0e026656511512b17108c42c37d84b069
2010-10-20 15:04:28 -07:00
Brian Carlstrom
bf05633358 Create CTS test for SSL hostname checks
Bug: 2807618
Change-Id: I05b051d779850e51eabea0880400273cdcc2f748
2010-09-23 10:59:12 -07:00
DongseokYi
878dd15dce Need enough time (1 sec) to read amounts of packet from /proc/stat_uid/[uid]/tcp_snd.
Change-Id: I93fdd1bc383e8b944a76e211166e2c5fdb9707cd
2010-09-16 11:44:04 +09:00
Brian Muramatsu
fa2e66961f DO NOT MERGE Merge Eclair CTS Changes into Froyo
Changes to branches beyond Froyo will be done separately to avoid
further merge conflicts.

Change-Id: I157c687fa059f9505f5cf62b6d1348b0411bca1c
2010-07-07 11:53:35 -07:00
Brian Muramatsu
20a98ac150 Prohibit Listening Ports on Devices
Bug 2732034

Check that devices do not have any listening ports open by
scanning files in the /proc/net directory.

Change-Id: Ic6204667809b3a0c136e38f35fe536bc6d79dcad
2010-06-14 15:02:53 -07:00
Dan Egnor
4706a3af15 CTS test for android.net.TrafficStats
Change-Id: I35fecea2a343fe2483d8c723b7f3a2d9916d47f2
2010-04-08 14:02:54 -07:00
Brett Chabot
c4b56b887f Fix NetworkInfoTest#testAccessNetworkInfoProperties
Bug 2483701

Change-Id: I98c0fc74471d9a7a9511c224d5eaa52542a8d68f
2010-03-03 19:16:18 -08:00
Brian Carlstrom
cd7a8fa373 SslCertificate should provide Date interface
While working on out openssl code, I found a Y2k bug that the dates
from invalidate certificates could be shown as 1909 instead of 2009.
The reason was because SslCertificate/BrowserActivity passed the
values around as Strings even though the started as Dates (from
X509Certificate) and were converted backed to Dates before
presentation by BrowserActivity's reformatCertificateDate.

SslCertificate now maintains date fields internally as Date objects
without converting them to Strings. The constructor and String
accessors, which are now @deprecated, now specify the format as an ISO
8601 date string which uses 4 digit years.

BrowserActivity now reformatCertificateDate is now simply
formatCertificateDate and no longer has to convert from String to Date
and back to String to get proper Locale formatting.

CTS SslCertificateTest also updated.
2010-03-02 10:01:45 -08:00
Brett Chabot
7aa0090ef5 Fix ConnectivityManagerTest testRequestRouteToHost and testGetAllNetworkInfo.
Bugs 2138046 and 2138034.

Change-Id: I2c3973be9166892caaf2deb07bc15344b897b552
2009-12-08 19:52:35 -08:00
Brett Chabot
1bf60c89bb Fix MailToTest.
Changed the toString assertions to be parameter order independent.
2009-11-03 15:57:26 -08:00
Brett Chabot
dcccc54888 Change CTS tests to not build against SDK.
Most CTS test packages reference test related annotations in dalvik.annotation
which are not part of SDK. This was previously allowed due to bug in build
build system. For now, temporarily change CTS makefiles so they are not built
against SDK.

BUG 2114936
2009-09-11 15:31:30 -07:00
Brett Chabot
1505142f7b Change CTS makefiles so apps are built in data not system partition.
BUG 2053298

Change-Id: I2c541c03f7c33c69cde7b0567b080710658c8d28
2009-08-28 14:19:28 -07:00
Brett Chabot
f4ffdb9732 Remove a bunch of unused CTS tests from continuous test build to save space.
BUG 2053298
2009-08-14 14:17:58 -07:00
Brett Chabot
bda6b58510 More CTS cleanup
- Mark currently failing CTS tests as BrokenTests.
 - Fix race condition in LocationManagerTest
 - tweak host config to run tests in batch mode
 - fix genDefaultTestPlan and rename java package so permission2 tests get
included properly,

BUG 2053939
2009-08-14 01:42:59 -07:00