Commit Graph

494 Commits

Author SHA1 Message Date
Adam Vartanian
1efb5151db DO NOT MERGE Add CTS test for URI fix.
Bug: 68341964
Test: cts -m CtsNetTestCases (on NYC branch)
Change-Id: If532123542155ea3be281044a3ea4ca0b6cf2db5
(cherry picked from commit a01da8536c)
2018-01-08 12:52:51 -08:00
Chenbo Feng
ba65ffc462 Add test to check sock addr in qtaguid ctrl file
This test verifies the socket address information is not leaked by
xt_qtaguid module inside the kernel. The sock_addr parsed from
proc/net/xt_qtaguid/ctrl file should always be 0

Bug: 62489688
Test: in cts-tf: run cts --package android.net.native
2017-06-28 13:47:30 -07:00
Nicolas Boichat
36c0f02d94 PacketReflector: Ignore IPv6 flow labels in ICMPv6 test
Since Linux kernel 4.2, net.ipv6.auto_flowlabels is set by default, and
therefore the request and reply may have different IPv6 flow label.

Bug: 31444338
Test: On a kernel 4.4 board, run com.android.cts.net.HostsideNetworkTests#testVpn
Test: On a kernel 3.18 board, run echo 1 > /proc/sys/net/ipv6/auto_flowlabels, then
      com.android.cts.net.HostsideNetworkTests#testVpn
Change-Id: I913bbf91574239a24cb32ae908834eb951ea2010
2016-09-13 17:32:40 +08:00
Jun Tahara
349f7ed040 Remove non-CTS packets assertion code
Symptom:
testTrafficStatsForLocalhost fails when applications or services
except CTS are using network.

Root cause:
testTrafficStatsForLocalhost can't calculate the number of
non-localhost packets for CTS.
It includes the all of packets for applications/services except CTS
and non-localhost packets for CTS.

Solution:
Remove this assertion and only logging the number of packets.

Change-Id: I49243d59f359f3a543c6bdb46f6a2645cde8f292
2016-06-20 17:50:39 +09:00
Android Merger
a6aa5bce79 Merge "Merge "Add assertion messages to testStartUsingNetworkFeature_enableHipri." into lollipop-mr1-cts-dev am: 92849de21f -s ours" into marshmallow-cts-dev 2016-05-19 17:28:36 +00:00
Marcus Nascimento
8074918f7f Merge "Add assertion messages to testStartUsingNetworkFeature_enableHipri." into lollipop-mr1-cts-dev
am: 92849de21f  -s ours

* commit '92849de21f245cd43c4c05b28fbf59ef6feb725a':
  Add assertion messages to testStartUsingNetworkFeature_enableHipri.

Change-Id: Iabea0582c95db8353d3d7e4ec5008a45aa05b403
2016-05-19 17:28:26 +00:00
Daniel Xie
92849de21f Merge "Add assertion messages to testStartUsingNetworkFeature_enableHipri." into lollipop-mr1-cts-dev 2016-05-19 16:39:30 +00:00
Android Merger
90419fc992 Merge "Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev am: ce158e65ae -s ours" into marshmallow-cts-dev 2016-04-29 10:59:36 +00:00
Marcus Nascimento
5d6e8323f6 Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev
am: ce158e65ae  -s ours

* commit 'ce158e65aec1b2c9687852872c9fd9ed74585144':
  Add assertion message to assertions for testExecute_withMobile.

Change-Id: I12a3b5e90ce51ebbc233d69126eb78e3a85d6ba3
2016-04-29 10:59:28 +00:00
Daniel Xie
ce158e65ae Merge "Add assertion message to assertions for testExecute_withMobile." into lollipop-mr1-cts-dev 2016-04-28 16:44:37 +00:00
Marcus Nascimento
51eb8c19a0 Add assertion message to assertions for testExecute_withMobile.
Some partner test devices without a SIM Card or with no signal, thus
without mobile network data connection.

Added a message to check signal and SIM card and rerun the test.

Also added a verification that the network type is supported in the
event of a Connectivity Action's timeout. Unsuported network type could
be caused by a network stack crash.

Bug: 28207677
Change-Id: Ibca50359df7d5fb8371f4f4037fc81f029f48b30
2016-04-28 16:40:31 +00:00
Marcus Nascimento
335856c1d3 Add assertion messages to testStartUsingNetworkFeature_enableHipri.
testStartUsingNetworkFeature_enableHipri should be able to reconnect to Wifi Network.
Added a prefix to the already defined error message to rerun the test.

The ConnectivityManager's startUsingNetworkFeature will fail without SIM card and/or signal.
Changed the error message to check SIM card and signal and rerun the test.

Bug: 28264205
Change-Id: Ia1b35cab11afa65ae93ea7dab2f7cc3a330d8471
2016-04-26 11:32:30 +01:00
Android Merger
48216c2807 Merge "Merge "Add assertion message if testDns ipv6 lookup reutrns ipv4." into lollipop-mr1-cts-dev am: b996de8" into marshmallow-cts-dev 2016-04-23 06:07:51 +00:00
Android Merger
936375b6f2 Merge "Merge "Added assertion message to testDns failures" into lollipop-mr1-cts-dev am: 350b2aa" into marshmallow-cts-dev 2016-04-23 06:07:42 +00:00
Owain Davies
4455109378 Merge "Add assertion message if testDns ipv6 lookup reutrns ipv4." into lollipop-mr1-cts-dev
am: b996de8

* commit 'b996de81cde4d1596dc15346591ed0ccb41608ca':
  Add assertion message if testDns ipv6 lookup reutrns ipv4.

Change-Id: I4b791741f7c69f23097ccd9d56d33984a0862b5a
2016-04-23 06:07:33 +00:00
Owain Davies
7db24c68cf Merge "Added assertion message to testDns failures" into lollipop-mr1-cts-dev
am: 350b2aa

* commit '350b2aae5bc303d094a540c12bcb650a8bf5e139':
  Added assertion message to testDns failures

Change-Id: I347197b0db859e3875b14701424d2d55d9059d32
2016-04-23 06:07:31 +00:00
Daniel Xie
b996de81cd Merge "Add assertion message if testDns ipv6 lookup reutrns ipv4." into lollipop-mr1-cts-dev 2016-04-23 06:02:23 +00:00
Owain Davies
c408601c24 Add assertion message if testDns ipv6 lookup reutrns ipv4.
Some partner test networks connect by VPN and if the connection
fails during the testing this test will fail as the local internet
provider intercepts the DNS request and returns an ipv4 address.

Added a message to check the network configuration and rerun the test.

Bug: 26560000
Change-Id: I54e4976b2cef549bfe9fd55ff9609ba2e6513239
2016-04-14 16:12:38 +01:00
Owain Davies
8884aac68d Added assertion message to testDns failures
Identify tests that fail testDns because of no network connection.

Bug:26560000
Change-Id: I7683d54d2932ec46c5850bf360c602f6548b179e
2016-04-14 15:54:44 +01:00
Wally Yau
d7f1dbef66 Fixed test for lingering traffic data.
Change-Id: I7d68a518e25e17dbbaa57b12e2af4dc57b8df8d3
2016-03-07 16:16:09 -08:00
The Android Automerger
ee23541449 merge in lmp-mr1-cts-release history after reset to lmp-mr1-dev
am: 78df332ef1

* commit '78df332ef1a6be3cda40b776a6321425fa829ddb': (32 commits)
  cts: get video size from CamcorderProfile -- DO NOT MERGE
  BUG: 23792027 adding android.hardware.cts.helpers.sensorverification.EventOrderingVerificationTest#testSameTimestamp to knownfailure
  cts: get video size from CamcorderProfile -- DO NOT MERGE
  cts: get video size from CamcorderProfile -- DO NOT MERGE
  BUG: 23954202 fixed minimum memory to be 1099
  DO NOT MERGE ANYWHERE: fix breakage
  DO NOT MERGE: fix breakage
  rename android_security_cts_AudioflingerBinderTest.cpp to android_security_cts_AudioFlingerBinderTest.cpp
  Test if libstagefright dies in onInputBufferFilled on currupted file
  Should return true if the specified file doesn't exist
  DO NOT MERGE - Revert "Revert "Fix AudioTrackTest.testGetTimestamp""
  DO NOT MERGE ANYWHERE:revert and resubmit on lmp-dev
  DO NOT MERGE ANYWHERE:revert and resubmit to lmp-* branches
  Fix build error in ExtractDecodeEditEncodeMuxTest.
  Fixed android.uirendering package in CTS-5.0_R3
  TV: add multiple tracks tests to CtsVerifier
  TV: Add parental control tests to CtsVerifier
  TV: add a test for overlay view from TV input to CtsVerifier
  Add TV app tests to CtsVerifier
  DO NOT MERGE - Add security test for IEffect binder command
  ...
2015-12-10 10:37:14 -08: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
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
The Android Automerger
78df332ef1 merge in lmp-mr1-cts-release history after reset to lmp-mr1-dev 2015-09-24 07:26:50 -07:00
Daniel Xie
f056ab504b am f5c48b8e: am 760b6d86: am f6915b6f: Merge "Support WiFi only device at runtime." into kitkat-cts-dev automerge: 545427f
* commit 'f5c48b8e6f92717d82b2478bcaf685c67953ad98':
2015-09-22 16:48:46 +00:00
JP Abgrall
7e32f6e8c0 am 4c38e93e: am 740064e9: am ab0f0fe8: Merge "Fix CTS build" into lollipop-cts-dev
* commit '4c38e93e2067c8a0219865c0d5a10f5a66809d8c':
2015-09-22 16:47:02 +00:00
Daniel Xie
f5c48b8e6f am 760b6d86: am f6915b6f: Merge "Support WiFi only device at runtime." into kitkat-cts-dev automerge: 545427f
* commit '760b6d86ca79029a2a97ca81c97caee035e72cb1':
2015-09-22 03:52:55 +00:00
JP Abgrall
4c38e93e20 am 740064e9: am ab0f0fe8: Merge "Fix CTS build" into lollipop-cts-dev
* commit '740064e97f0e653427a7eb5f99052d9e5a8e27f3':
  Fix CTS build
2015-09-22 03:51:49 +00:00
Daniel Xie
760b6d86ca am f6915b6f: Merge "Support WiFi only device at runtime." into kitkat-cts-dev automerge: 545427f
* commit 'f6915b6f02ea3ff39bab6bd993072c323f470f27':
2015-09-22 03:46:53 +00: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
Unsuk Jung
3bbdccc774 am c06d3091: am b640b49e: am 9feaaaf4: Merge "resolve merge conflicts of a97c792 to kitkat-cts-dev" into kitkat-cts-dev automerge: 7e84d75
* commit 'c06d309115b6af2d4f9bd232acea2d285822290a':
2015-09-21 18:57:28 +00:00
Daniel Xie
9c37f4a070 am da12f30f: am b4a9fcb1: am a011f009: Merge "Lookup private resources in run-time" into kitkat-cts-dev automerge: ac8f57e
* commit 'da12f30fa5c7cb6e2cde866dcf586079c7f638fe':
2015-09-21 18:25:33 +00:00
Amith Dsouza
51139585f6 am 1dff0185: am 2d22fa9b: am 2e4ce593: Merge "LocalSocketTest.testAccessors: fix the *SendBufferSize* test" into lollipop-cts-dev
* commit '1dff01853ff06cc8ad9f198dfbba201dc6ce39db':
2015-09-18 02:19:59 +00:00
Daniel Xie
faa25e50f2 am 662de492: am 62495146: am 1840edcd: Merge "Accept more than one SD in NsdManagerTest" into lollipop-cts-dev
* commit '662de4922d9f7436a806e1ee7eaee75b4096aa48':
2015-09-18 02:19:53 +00:00
Unsuk Jung
c06d309115 am b640b49e: am 9feaaaf4: Merge "resolve merge conflicts of a97c792 to kitkat-cts-dev" into kitkat-cts-dev automerge: 7e84d75
* commit 'b640b49e4451dacb5ce181df86b7c662ee50e693':
2015-09-16 16:03:18 +00:00
Daniel Xie
da12f30fa5 am b4a9fcb1: am a011f009: Merge "Lookup private resources in run-time" into kitkat-cts-dev automerge: ac8f57e
* commit 'b4a9fcb132727d49fdfd96c31f71f731ceea7faa':
2015-09-16 16:02:58 +00:00
Unsuk Jung
b640b49e44 am 9feaaaf4: Merge "resolve merge conflicts of a97c792 to kitkat-cts-dev" into kitkat-cts-dev automerge: 7e84d75
* commit '9feaaaf44682c72dc5c771c93ef01ec793b6a7e3':
2015-09-16 15:56:34 +00:00
Daniel Xie
b4a9fcb132 am a011f009: Merge "Lookup private resources in run-time" into kitkat-cts-dev automerge: ac8f57e
* commit 'a011f009de12362f1a2b6fc92d2726be646a10f5':
2015-09-16 15:55:18 +00:00
Amith Dsouza
1dff01853f am 2d22fa9b: am 2e4ce593: Merge "LocalSocketTest.testAccessors: fix the *SendBufferSize* test" into lollipop-cts-dev
* commit '2d22fa9b07f2db449162c0de894faee288f6d85b':
  LocalSocketTest.testAccessors: fix the *SendBufferSize* test
2015-09-15 21:33:57 +00:00
Daniel Xie
662de4922d am 62495146: am 1840edcd: Merge "Accept more than one SD in NsdManagerTest" into lollipop-cts-dev
* commit '624951463c7fa9e548ab51a0344bbd485cafc80f':
  Accept more than one SD in NsdManagerTest
2015-09-15 21:33:53 +00:00
Daniel Xie
a8dfc9acfe am aa87b6d1: am f4efe327: am e260657a: am 45643db7: am 03786bc4: am 545427fc: Merge "Support WiFi only device at runtime." into kitkat-cts-dev
* commit 'aa87b6d1ce1ae0cc0db88b6a5bee8e857c0803af':
2015-09-15 21:31:04 +00: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
Takayuki Hoshi
4544716d2d am 7f9f8b1d: am f8e24166: am 2212f189: Merge "Normalize ipv6.cts.PingTest#testLoopbackPing\'s packet size" into lmp-sprout-dev
* commit '7f9f8b1dc549df5210dadd9f0805f257e733a331':
2015-09-15 00:52:55 +00:00
Unsuk Jung
7bc2c81736 am f742ea6d: am bfd0aaba: am b8ad8a1a: am 17607b8a: am 4106602e: am 7e84d75c: Merge "resolve merge conflicts of a97c792 to kitkat-cts-dev" into kitkat-cts-dev
* commit 'f742ea6d30fde381f6b93776fe247b232edebd74':
2015-09-15 00:50:55 +00:00
Daniel Xie
91a9bc2ac2 am 67651de7: am 32540663: am 4ed5d94e: am ee05618c: am ca4ee5db: am ac8f57e8: Merge "Lookup private resources in run-time" into kitkat-cts-dev
* commit '67651de7590224c2483d0e574217a0939b5c78bd':
2015-09-15 00:50:33 +00:00
Daniel Xie
aa87b6d1ce am f4efe327: am e260657a: am 45643db7: am 03786bc4: am 545427fc: Merge "Support WiFi only device at runtime." into kitkat-cts-dev
* commit 'f4efe32775207f1f47e2ee21686b9a0aed777894':
  Support WiFi only device at runtime.
2015-09-12 06:30:42 +00:00
Takayuki Hoshi
7f9f8b1dc5 am f8e24166: am 2212f189: Merge "Normalize ipv6.cts.PingTest#testLoopbackPing\'s packet size" into lmp-sprout-dev
* commit 'f8e2416639adea724e0699240cf85d51672db1ee':
2015-09-12 06:26:52 +00:00
Unsuk Jung
f742ea6d30 am bfd0aaba: am b8ad8a1a: am 17607b8a: am 4106602e: am 7e84d75c: Merge "resolve merge conflicts of a97c792 to kitkat-cts-dev" into kitkat-cts-dev
* commit 'bfd0aabaa5222173f74915b68a560d098deebc80':
  Fix CTS android.net package testTrafficStatsForLocalhost seldom fail issue
2015-09-12 04:08:15 +00:00
Daniel Xie
67651de759 am 32540663: am 4ed5d94e: am ee05618c: am ca4ee5db: am ac8f57e8: Merge "Lookup private resources in run-time" into kitkat-cts-dev
* commit '32540663fe6b9982c4542a7371bc5280fdf6ba29':
  Lookup private resources in run-time
2015-09-12 04:07:55 +00:00