Commit Graph

342 Commits

Author SHA1 Message Date
Vinit Deshpande
0d407aeaa8 Merge "Accept more than one SD in NsdManagerTest" 2015-02-04 02:07:55 +00:00
Elliott Hughes
82903d8438 Merge "Add missing include." 2015-01-30 07:04:38 +00:00
Elliott Hughes
17e2c23ad3 Add missing include.
Change-Id: I2a52d050a39e2c6dd38af868ea444278d9b6d54d
2015-01-29 23:02:17 -08:00
Filip Matusiak
970cbe09b5 Accept more than one SD in NsdManagerTest
In current implementation it's been assumed that there will be only one
interface registered for service discovery in mdnsresponder. In reality
there's possibility that some real but currently unused interfaces will
have link-local address assigned prior to registration, which will cause
mdnsresponder to register these interfaces for service discovery. This
will result in SERVICE_LOST and SERVICE_FOUND events to be received more
than one time. Current test implementation is not 100% prone for this
situation - depending upon time gap between both events it can PASS or
FAIL.

Fix by removing an assert on number of received events.

Change-Id: I147dc4d600f41f6d63d2b9e4bcb10efe90d5b3ec
2015-01-19 10:50:52 +01:00
Neil Fuller
40025ba80b Merge "Add HttpResponseCacheTest as a CTS test" 2015-01-15 16:52:57 +00:00
Neil Fuller
51130c9726 Add HttpResponseCacheTest as a CTS test
Moving HttpResponseCacheTest.java from
frameworks/base/core/tests/coretests/src/android/net/http
to
cts/tests/tests/net/src/android/net/http/cts

And making it work in the CTS runner by setting
temp directory permissions and making sure the
cache is initialized.

Change-Id: I032014789f27a66c1a7a0aee0fa0494f6041238e
2015-01-15 16:51:48 +00:00
Narayan Kamath
977f75ecbb Merge "Track changes to Posix.* API." 2014-12-15 17:11:46 +00:00
Narayan Kamath
0e87f2b861 Track changes to Posix.* API.
We need to flip() the byte buffer before attempting to read
the data written to it.

bug: 18641009

(cherry picked from commit 96f656c39e)

Change-Id: Ib796fafa1e4cf81351245fff6763ce17924acde9
2014-12-15 17:09:44 +00:00
Alex Klyubin
3d751e1d9c Merge "Fix build breakage due to SSLDefaultConfigurationAsserts rename." 2014-11-19 04:52:57 +00:00
Alex Klyubin
5bba35cb16 Fix build breakage due to SSLDefaultConfigurationAsserts rename.
libcore's SSLDefaultConfigurationAsserts was renamed and refactored
into SSLConfigurationAsserts in
782740701db73dd2dc4fef9df8cde270b0e631a4. This CL adjusts the
affected CTS test for android.net.SSLCertificateSocketFactory
accordingly.

Change-Id: I663042e7c08ad616b2dedc226acda54c95fd6968
2014-11-18 20:15:25 -08:00
Wei Wang
997750dae9 am 0d1bad9c: Merge "Add cts test for wifi scan timestamp." into lmp-dev
* commit '0d1bad9c05da8c3e1385009cad2ba73cff64c359':
  Add cts test for wifi scan timestamp.
2014-10-18 00:49:18 +00:00
Wei Wang
3839734188 Add cts test for wifi scan timestamp.
Bug:18014366
Change-Id: Ie25c53eb12077f4f03f45c7e6828a8ace25c0fdb
2014-10-18 00:33:08 +00:00
Unsuk Jung
615d78399d am 831e438b: Merge "Build CTS tests as multilib apks" into lmp-dev
* commit '831e438ba317402e19415f157cbe7d9c93c4f9ad':
  Build CTS tests as multilib apks
2014-10-09 12:51:27 +00:00
Unsuk Jung
94995b1dc8 Build CTS tests as multilib apks
CTS-tradefed uses the same apk for both 32 and 64 bit tests.

Bug: 17924614
Change-Id: Idbf2d93c54efbb1c281ad9e93f0f39430614df61
2014-10-09 01:08:48 -07:00
Paul Jensen
581a02c865 am c3486218: Merge "Update CTS ConnectivityManager tests to work with L release." into lmp-dev
* commit 'c34862184cfc47596f47088759ffac6ccb0b0b6c':
  Update CTS ConnectivityManager tests to work with L release.
2014-09-29 20:48:30 +00:00
Paul Jensen
67e673f04e Update CTS ConnectivityManager tests to work with L release.
Removed most of getNetworkPreference() and setNetworkPreference() tests as
these functions are now fully deprecated and do nothing.  Just test that
they are still callable.
Adjust startUsingNetworkFeature() and stopUsingNetworkFeature() failure
codes to match new behavior.
Tested on devices with Wifi and Cellular radios, and Wifi-only.

bug:17417896
bug:17354855
Change-Id: Iea8b25e399f4e5b6ec3d2101ebf520f89697c4da
2014-09-25 10:07:21 -04:00
Elliott Hughes
28401b2607 am 4c01e968: Merge "LocalSocketTest.testAccessors: fix the *SendBufferSize* test"
* commit '4c01e96840853caca9abfb375a828b27f89022fb':
  LocalSocketTest.testAccessors: fix the *SendBufferSize* test
2014-09-05 15:43:08 +00:00
Elliott Hughes
4c01e96840 Merge "LocalSocketTest.testAccessors: fix the *SendBufferSize* test" 2014-09-05 05:42:25 +00:00
Constantin Musca
39f61377a5 LocalSocketTest.testAccessors: fix the *SendBufferSize* test
If one sets a *SendBufferSize* value which is less than
(2048 + SKB_DATA_ALIGN(sizeof(struct sk_buff))) then the value
retrieved will be (2 * (2048 + SKB_DATA_ALIGN(sizeof(struct sk_buff)))).
Otherwise, the value will be doubled.
Modify the test to use a larger value.

Bug: 16442451
Change-Id: I2d89393b1ad441783c8a082b072a806b8901830c
Signed-off-by: Constantin Musca <constantin.musca@intel.com>
2014-09-05 05:42:10 +00:00
Lorenzo Colitti
e6694c32fe Add a CTS test for multinetwork features.
For now, just checks that the kernel sysctls are present and
have the right permissions and expected values.

Bug: 15605143
Change-Id: I5feb6cb5f25b97e88cd0d9e8071213d13d4cc6e8
2014-07-16 22:10:04 +09:00
Benson Huang
23d0297286 am e2fc4e4e: am ad8f5b79: am 8b42ca86: am c893f50f: Fix CTS testStartUsingNetworkFeature_enableHipri fail
* commit 'e2fc4e4efb4b452d70e620f8f5bdaa637e19da04':
  Fix CTS testStartUsingNetworkFeature_enableHipri fail
2014-06-26 17:59:12 +00:00
Benson Huang
e2fc4e4efb am ad8f5b79: am 8b42ca86: am c893f50f: Fix CTS testStartUsingNetworkFeature_enableHipri fail
* commit 'ad8f5b79a042a333536e35528a18dff5e9f6d119':
  Fix CTS testStartUsingNetworkFeature_enableHipri fail
2014-06-26 17:54:09 +00:00
Benson Huang
ad8f5b79a0 am 8b42ca86: am c893f50f: Fix CTS testStartUsingNetworkFeature_enableHipri fail
* commit '8b42ca8621ada4a8139d964e867725d04dc4ca16':
  Fix CTS testStartUsingNetworkFeature_enableHipri fail
2014-06-26 17:48:36 +00:00
Benson Huang
c893f50f6f Fix CTS testStartUsingNetworkFeature_enableHipri fail
The return value of mWifiManager.isWifiEnabled()
&& mWifiManager.getConnectionInfo().getSSID() != null can not
correctly identify if WiFi is connected or not.

The fix is to modify the code logic used to judge if WiFi is connected.

Bug 15578218 and 15578219

Change-Id: I8ae40980c9cd1ea91dafe0ca7c893c84b35709bf
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
2014-06-26 05:35:49 +00:00
Benson Huang
d8b41009bd Fix CTS testStartUsingNetworkFeature_enableHipri fail
The return value of mWifiManager.isWifiEnabled()
&& mWifiManager.getConnectionInfo().getSSID() != null can not
correctly identify if WiFi is connected or not.

The fix is to modify the code logic used to judge if WiFi is connected.

Bug 15578218 and 15578219

Change-Id: I8ae40980c9cd1ea91dafe0ca7c893c84b35709bf
Signed-off-by: Benson Huang <benson.huang@mediatek.com>
2014-06-26 04:17:11 +00:00
Jason Parks
2ec3b1801a am bc7fa978: am 9b6f8ac9: Merge "Don’t run the WifiConfig tests if there is no Wifi." into klp-modular-dev
* commit 'bc7fa978be5ae2356871edc6753842788ab2f4f1':
  Don’t run the WifiConfig tests if there is no Wifi.
2014-06-12 19:37:53 +00:00
Jason Parks
bc7fa978be am 9b6f8ac9: Merge "Don’t run the WifiConfig tests if there is no Wifi." into klp-modular-dev
* commit '9b6f8ac99a0d9be7804120601b965277e9235d08':
  Don’t run the WifiConfig tests if there is no Wifi.
2014-06-12 19:34:04 +00:00
Jason Parks
fd24c913c2 Don’t run the WifiConfig tests if there is no Wifi.
Bug: 15090701
Change-Id: I19d3fd5fe8165d94dd5d4d952bd5674b5df19684
2014-06-12 14:17:53 -05:00
Vinod Krishnan
829a7c87ff am 149b73a2: am 4fed4153: Merge "Small change to CTS" into klp-modular-dev
* commit '149b73a246cc45fdfa5fec9bc51553f6c631d346':
  Small change to CTS
2014-06-06 01:56:11 +00:00
Vinod Krishnan
149b73a246 am 4fed4153: Merge "Small change to CTS" into klp-modular-dev
* commit '4fed4153f565a48f4be90e550763767bde7d36b0':
  Small change to CTS
2014-06-06 00:16:25 +00:00
Vinod Krishnan
5f308a9b10 Small change to CTS
Change-Id: I7b31bd6b05dd1379dcf7d4627eee1856fda87164
2014-06-05 15:03:18 -07:00
Bill Yi
448ed20b74 am 599f068e: am a52d69f6: (-s ours) Merge klp-dev-plus-aosp into stage-aosp-master
* commit '599f068ea9a52d5cf6bd5197ac3c6991b3d7809e':
2014-04-30 00:21:54 +00:00
Bill Yi
599f068ea9 am a52d69f6: (-s ours) Merge klp-dev-plus-aosp into stage-aosp-master
* commit 'a52d69f62e33ff4a690ff5d18be8723087cd22c4':
2014-04-30 00:17:06 +00:00
Bill Yi
a52d69f62e Merge klp-dev-plus-aosp into stage-aosp-master
Change-Id: Ib7b1888248402804ce55782f52d08bf17fb434de
2014-04-29 15:28:59 -07:00
Elliott Hughes
a14f572c62 am 6a1c0059: am 2fed6caf: Merge "Libcore.os has moved to android.system.Os."
* commit '6a1c0059b11c1e4459875beb81f0bf78ed6aa746':
  Libcore.os has moved to android.system.Os.
2014-04-25 00:49:00 +00:00
Elliott Hughes
6a1c0059b1 am 2fed6caf: Merge "Libcore.os has moved to android.system.Os."
* commit '2fed6caf1a2fda1783116b9c3749d4e365fdd787':
  Libcore.os has moved to android.system.Os.
2014-04-25 00:42:29 +00:00
Elliott Hughes
81f625634e Libcore.os has moved to android.system.Os.
Change-Id: Icfd1cffbed754c147f83fc42ce905beb7904340c
2014-04-24 16:58:17 -07:00
JP Abgrall
a08b565d0f am 8083b7e6: am 03a9e6ed: Merge "Fix CTS android.net package testTrafficStatsForLocalhost seldom fail issue"
* commit '8083b7e660038f98252ca37c65e4d530bd87d170':
  Fix CTS android.net package testTrafficStatsForLocalhost seldom fail issue
2014-04-02 18:46:45 +00:00
JP Abgrall
8083b7e660 am 03a9e6ed: Merge "Fix CTS android.net package testTrafficStatsForLocalhost seldom fail issue"
* commit '03a9e6ed450c6c5f77b201c4d95cb10cf22d3a7c':
  Fix CTS android.net package testTrafficStatsForLocalhost seldom fail issue
2014-04-02 18:40:14 +00:00
JP Abgrall
03a9e6ed45 Merge "Fix CTS android.net package testTrafficStatsForLocalhost seldom fail issue" 2014-04-02 18:32:01 +00:00
Junjie Hu
0d4434d998 Fix CTS android.net package testTrafficStatsForLocalhost seldom fail issue
For testTrafficStatsForLocalhost's UID testing, it will also calcuate the wlan0 interface.
There are some TCP re-tranmission in SSLCertificateSocketFactoryTest and it is the same UID as this test case. Need to consider those extra pacetks.
For example,
   Before testTrafficStatsForLocalhost test casae:
   01-08 15:49:11.316  7826  7839 D TrafficStats: parseUidStats, buffer: 14 wlan0 0x0 10067 0 31857 67 4582 55 31857 67 0 0 0 0 4582 55 0 0 0 0
   01-08 15:49:11.335  7826  7839 D TrafficStats: parseUidStats, buffer: 24 lo    0x0 10067 0 40    1    60 1 40 1 0 0 0 0 60 1 0 0 0 0
   After testTrafficStatsForLocalhost test casae:
   01-08 15:49:19.210  7826  7839 D TrafficStats: parseUidStats, buffer: 14 wlan0 0x0 10067 0 31857 67 4738 58 31857 67 0 0 0 0 4738 58 0 0 0 0
   01-08 15:49:19.212  7826  7839 D TrafficStats: parseUidStats, buffer: 24 lo 0x0 10067 0 1155336 2053 1155408 2054 1155336 2053 0 0 0 0 1155408 2054 0 0 0 0
   => There are three extra IP packets after testing due to TCP FIN retreamsisions in previous test case
Suggest to add some extra IP packets for consider the extra traffic in wlan0 interface.
Signed-off-by: Junjie Hu <junjie.hu@mediatek.com>

Change-Id: I981f98fc8647469fb105361516b6a59c53530c70
2014-04-02 15:12:32 +08:00
Brett Chabot
cf8d741f3d Move to android.support.test as CTS instrumentation runner.
Also do the following related cleanup
- Remove references to deprecated BrokenTest and KnownFailure
- Switch CTS tests to build against SDK and not private
android.test.runner where possible

Bug: 12924356

Change-Id: If6151b836456eec4838f8d7d6e11c9834c007fca
2014-03-11 17:54:45 -07:00
Lorenzo Colitti
e0265033ec am 047db28d: Merge "Test both recvfrom() and read() in PingTest."
* commit '047db28da2ed1ceb56f47f17509a750058099605':
  Test both recvfrom() and read() in PingTest.
2014-03-07 01:35:17 +00:00
Lorenzo Colitti
70269974fb am 4bc3fb89: Merge "Document kernel code necessary to pass PingTest."
* commit '4bc3fb892f3409feeed70fab0cecf2625e1b1cd3':
  Document kernel code necessary to pass PingTest.
2014-03-07 01:34:21 +00:00
Daniel Kim
dcc6843556 am 8c2ae7b4: am 2f35ccfb: am 69d3004e: am 0979fd66: am e51c7a43: am 6b21c965: am 467eda57: am 14ba13d4: am 2678d5bc: cherry pick from aosp. https://android-review.googlesource.com/63805
* commit '8c2ae7b418e31b658ffb14678098411556d7f935':
  cherry pick from aosp. https://android-review.googlesource.com/63805
2014-02-05 22:32:35 +00:00
Daniel Kim
8c2ae7b418 am 2f35ccfb: am 69d3004e: am 0979fd66: am e51c7a43: am 6b21c965: am 467eda57: am 14ba13d4: am 2678d5bc: cherry pick from aosp. https://android-review.googlesource.com/63805
* commit '2f35ccfbcf47cda70c21f28e410bdd3233ec8477':
  cherry pick from aosp. https://android-review.googlesource.com/63805
2014-02-05 22:26:19 +00:00
Daniel Kim
69d3004ed7 am 0979fd66: am e51c7a43: am 6b21c965: am 467eda57: am 14ba13d4: am 2678d5bc: cherry pick from aosp. https://android-review.googlesource.com/63805
* commit '0979fd6697e4880cbcfd67b76ac71d8b5ad77f90':
  cherry pick from aosp. https://android-review.googlesource.com/63805
2014-02-05 22:19:50 +00:00
Daniel Kim
e51c7a43f0 am 6b21c965: am 467eda57: am 14ba13d4: am 2678d5bc: cherry pick from aosp. https://android-review.googlesource.com/63805
* commit '6b21c965059549397168991741474ebc75f02d4f':
  cherry pick from aosp. https://android-review.googlesource.com/63805
2014-02-05 22:11:41 +00:00
Daniel Kim
6b21c96505 am 467eda57: am 14ba13d4: am 2678d5bc: cherry pick from aosp. https://android-review.googlesource.com/63805
* commit '467eda5756e85388e41fbedc34f4d0f2f411d710':
  cherry pick from aosp. https://android-review.googlesource.com/63805
2014-02-05 14:08:33 -08:00
Daniel Kim
467eda5756 am 14ba13d4: am 2678d5bc: cherry pick from aosp. https://android-review.googlesource.com/63805
* commit '14ba13d4bceef04e586220bef386d3224eda4ae8':
  cherry pick from aosp. https://android-review.googlesource.com/63805
2014-02-05 14:02:08 -08:00