Commit Graph

301 Commits

Author SHA1 Message Date
Nash Lincoln
0784f04f1b migrate net host tests to cts_v2
Change-Id: Ida3141522a536a2d33bb366fdb6b00ced907c3a4
2015-11-06 17:05:17 -08: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
Daniel Xie
c4662496ff am f0c0af79: am 57221480: am 05dc8dbc: am b9453ff9: am 9417d728: am ea9003d9: am 2b44bd54: am 42445696: Merge "Support WiFi only device at runtime." into kitkat-cts-dev automerge: 545427f automerge: f6915b6
* commit 'f0c0af79eb0bb8f67e051c845a1a96e402bb8241':
  Support WiFi only device at runtime.
2015-08-06 07:26:48 +00:00
Daniel Xie
b9453ff934 am 9417d728: am ea9003d9: am 2b44bd54: am 42445696: Merge "Support WiFi only device at runtime." into kitkat-cts-dev automerge: 545427f automerge: f6915b6
* commit '9417d7288ddd37b5d2e347a724afb76cf987f70f':
  Support WiFi only device at runtime.
2015-08-06 05:11:27 +00:00
Daniel Xie
9417d7288d am ea9003d9: am 2b44bd54: am 42445696: Merge "Support WiFi only device at runtime." into kitkat-cts-dev automerge: 545427f automerge: f6915b6
* commit 'ea9003d9692e1fc1384a02686c3d36f195d9d55e':
  Support WiFi only device at runtime.
2015-08-05 18:28:01 +00:00
Jim Guggemos
261d045317 am ada73333: am e8bc6e3f: am 0334b8ec: am b50470fc: Merge "New tests for (un)registerNetworkCallback with PendingIntent." into mnc-dev
* commit 'ada73333baec57907cbcba76ce38ef47ad9800da':
  New tests for (un)registerNetworkCallback with PendingIntent.
2015-07-30 00:28:07 +00:00
Jim Guggemos
b50470fcea Merge "New tests for (un)registerNetworkCallback with PendingIntent." into mnc-dev 2015-07-29 23:27:19 +00:00
Fyodor Kupolov
ecb47a6298 am c678fb40: am 6ec28d2b: am 9fc4e8cc: am 6a4d762c: Merge "Fix for ScanResultTest and WifiManagerTest" into mnc-dev
* commit 'c678fb40ffb5acddd5d5551f971b98827a8cab93':
  Fix for ScanResultTest and WifiManagerTest
2015-07-29 22:47:41 +00:00
Fyodor Kupolov
e57e9bcb96 Fix for ScanResultTest and WifiManagerTest
Added ACCESS_COARSE_LOCATION permission - it is now required to receive Wi-Fi
scan results(b/21852542).

Bug: 22790182
Change-Id: Idb72c200b08f7e4e95571504ab42c9e706f5c921
2015-07-29 11:24:34 -07:00
Daniel Xie
ea9003d969 am 2b44bd54: am 42445696: Merge "Support WiFi only device at runtime." into kitkat-cts-dev automerge: 545427f automerge: f6915b6
* commit '2b44bd54f88a4374ea631994650d464df4d6fe4e':
  Support WiFi only device at runtime.
2015-07-28 18:15:16 +00:00
Jim Guggemos
9030d1aceb New tests for (un)registerNetworkCallback with PendingIntent.
Fixed up flakiness if WiFi was disabled before executing
the test.

Bug: 21833352
Change-Id: Ief7e12c4a7151722ec926ac38ced9f8903cdb607
2015-07-28 00:13:02 -06:00
Erik Kline
0d090207ba am 26730e80: am 5ca3ddb5: am 1685838d: am d56f0067: Merge "QUIC port 80 support is going away" into mnc-dev
* commit '26730e807e491611e0489bb4aaa19f7f331dd9f5':
  QUIC port 80 support is going away
2015-07-27 06:03:42 +00:00
Erik Kline
e2815d360a QUIC port 80 support is going away
Change-Id: I29a81e67d121b2e7e832e9e0d5e798d70b4c594a
2015-07-27 13:45:15 +09:00
Daniel Xie
424456969a Merge "Support WiFi only device at runtime." into kitkat-cts-dev automerge: 545427f
automerge: f6915b6

* commit 'f6915b6f02ea3ff39bab6bd993072c323f470f27':
  Support WiFi only device at runtime.
2015-07-25 04:58:57 +00:00
Daniel Xie
f6915b6f02 Merge "Support WiFi only device at runtime." into kitkat-cts-dev
automerge: 545427f

* commit '545427fc9ecf0d1ed3e4d34697e11e09c5775b63':
  Support WiFi only device at runtime.
2015-07-24 22:32:23 +00:00
Liangcai Li
adbcf22426 Support WiFi only device at runtime.
As what is done in ConnectivityService to fix
bug: 8562845. Otherwise some related tests like 'testGetAllNetworkInfo'
would fail with runtime detection on WiFi only device.

Change-Id: I94922729c11826b3711abf42f594dcdd994324b6
Signed-off-by: Liangcai Li <liangcail@nvidia.com>
2015-07-23 15:42:27 +08:00
Jim Guggemos
2e32665eb9 am 7fd5fcd3: am 7729b780: am c363eb8b: am 781c5be7: Merge "New CTS test for ConnectivityManager.(un)registerNetworkCallback." into mnc-dev
* commit '7fd5fcd3a10afba61d18628cfffbaad182945504':
  New CTS test for ConnectivityManager.(un)registerNetworkCallback.
2015-07-17 16:09:19 +00:00
Jim Guggemos
7443acfd8f New CTS test for ConnectivityManager.(un)registerNetworkCallback.
Tested on device with wifi enabled and disabled before
executing the test.

Bug: 21833352
Change-Id: I42222bd229a370f780f08fa056d331ff1431b87a
2015-07-16 17:46:58 -06:00
Jim Guggemos
25062b987d am be603e66: am 3fae4215: am 4156442e: am 77d482d6: Merge "New CTS test for ConnectivityManager.getActiveNetwork." into mnc-dev
* commit 'be603e666a41e3798d879716681bc00191fb7a26':
  New CTS test for ConnectivityManager.getActiveNetwork.
2015-07-16 13:49:26 +00:00
Jim Guggemos
708349cba6 New CTS test for ConnectivityManager.getActiveNetwork.
Bug: 21833352
Change-Id: I970a114e3c94c9885186bd55c608bbc4bcb9a7fa
2015-07-15 22:36:14 -06:00
JP Abgrall
92ec8f7720 am c4b48e7e: am 4e7386bd: am 89b22492: Merge "Fix CTS build" into lollipop-cts-dev automerge: ab0f0fe
* commit 'c4b48e7e39465eb0bb34d481e4dc46b5e8a4239c':
  Fix CTS build
2015-07-15 05:50:51 +00:00
JP Abgrall
c4b48e7e39 am 4e7386bd: am 89b22492: Merge "Fix CTS build" into lollipop-cts-dev automerge: ab0f0fe
* commit '4e7386bda93c41b622c64b1ce17b7d1b8bd503fd':
  Fix CTS build
2015-07-15 05:37:08 +00:00
JP Abgrall
89b22492ee Merge "Fix CTS build" into lollipop-cts-dev
automerge: ab0f0fe

* commit 'ab0f0fe884c280adcde0259f4692cebfb3d0bf08':
  Fix CTS build
2015-07-15 05:21:41 +00:00
Bart Sears
aa43f342e1 am 512df522: am 525d2597: am d57e21f4: am a8a7282c: Merge "Fix CTS build" into mnc-dev
* commit '512df522ba49cf0cd4c6062ef89a66651231415a':
  Fix CTS build
2015-07-15 03:10:18 +00:00
JP Abgrall
0852bee4a9 Fix CTS build
Revert "Merge "resolve merge conflicts of a97c792 to kitkat-cts-dev" into kitkat-cts-dev"

This reverts commit 9feaaaf446, reversing
changes made to 65fbe1fcd153c5647f8d1e1a7443b3f04b7b25fd.
2015-07-14 19:13:31 -07:00