Commit graph

73,362 commits

Message SHA1
Add tests to confirm that genjarjar keeps excluded Tests.
This adds tests for aosp/2498795.

Test: atest jarjar-rules-generator-test
Change-Id: I8077f0e74190bb4f6a35cb6c0d866c7453ca0ca0

Chidera Olibie   commited 2023-03-23 12:55:38 +00:00
aa44ef3b2f
Merge "Do not jarjar tests if explicitly excluded."
Chidera Olibie   authored and   Gerrit Code Review   commited 2023-03-23 08:26:47 +00:00
fb94c31fc0
gn2bp: Restrict visibility
Bug: 273656868
Test: ./update_results.sh, TH
Change-Id: Ieb8285b0308495c0cf2d9281ed54714280b7ebb0

Motomu Utsumi   commited 2023-03-23 11:00:03 +09:00
136f5106af
Setup NativeTestServer
this adds the classes dependent on the nativetestserverThis adds the classes dependent on the nativetestserver.

This setup depends on the cronet's platform implementation.
However, the tests jnilib is not prefixed and
because of that:
- We don't jarjar the base classes
- Don't jar the test classes
since the .so file needs the unjarjared versions.

Test: atest NetHttpTestServer
Bug: 267353182
Change-Id: Id5cfc8f842df4b13cef6f56dbaa6b9563c3989de

Chidera Olibie   commited 2023-03-22 14:36:08 +00:00
5b95954882
[Cronet] Add test jni lib
This contains the test specific native classes

Test: atest NetHttpCoverageTest
Bug: 267353182
Change-Id: I2ce745418225c35e5b96e477334990a16be7246d

Chidera Olibie   commited 2023-03-21 22:57:16 +00:00
4a755a7a99
cronet import: exclude .gitignore from import
Test: none
Change-Id: I79200198264a54f517a18a3cfbc77030e89f3401

Patrick Rohr   commited 2023-03-21 10:39:17 -07:00
2bbe771ceb
cronet import: Remove //components/grpc_support from import
Cronet does not actually depend on grpc_support, so it can be removed.

Test: none
Change-Id: Ib28591bc751774244d3c62298a0d07f2163f6720

Patrick Rohr   commited 2023-03-21 09:11:29 -07:00
82104369dd
Merge "Add addPublicKeyPins test"
Stefano Duo   authored and   Gerrit Code Review   commited 2023-03-21 14:22:56 +00:00
d18610d9b1
Merge changes I11d77e8a,Id988da4f,I51735fdb,I3df00ebf
* changes:
  cronet import: only clone repository if it doesn't already exist
  cronet import: use aosp/upstream-import branch
  cronet import: remove zlib from import
  cronet import: add url/third_party/mozilla

Patrick Rohr   authored and   Gerrit Code Review   commited 2023-03-21 14:17:16 +00:00
796f33f3d4
Add addPublicKeyPins test
Bug: 273626875
Test: atest -b
Change-Id: I7919e68cc44e74ab7c7978895cb2875c90ee308f

Stefano Duo   commited 2023-03-21 11:50:43 +00:00
e7529e8142
Merge "Add setEnableBrotli tests"
Chidera Olibie   authored and   Gerrit Code Review   commited 2023-03-21 11:46:12 +00:00
c9cf281abe
cronet import: only clone repository if it doesn't already exist
Otherwise, fetch and checkout the revision.

Test: run import
Change-Id: I11d77e8abfc50fee92f440ad46cb09ab87392e05

Patrick Rohr   commited 2023-03-21 04:45:38 -07:00
e095f9d8d6
cronet import: use aosp/upstream-import branch
upstream-import and upstream-staging have been created in aosp.

Test: none
Change-Id: Id988da4f1cf311f419963e1f20d4e89e92b11aca

Patrick Rohr   commited 2023-03-21 04:45:38 -07:00
447b79d632
cronet import: remove zlib from import
Test: run import
Change-Id: I51735fdbfee3118ec2529af7158611c25b34e79b

Patrick Rohr   commited 2023-03-21 04:45:38 -07:00
b781c8f882
cronet import: add url/third_party/mozilla
Test: run import -- see also aosp/2498638
Change-Id: I3df00ebf2a6e737d33783c3f7b9e438f33a46822

Patrick Rohr   commited 2023-03-21 04:45:38 -07:00
3b452fed22
Merge "Add cronet_tests target"
Chidera Olibie   authored and   Gerrit Code Review   commited 2023-03-21 10:30:50 +00:00
381860145a
Merge "Add new test for swtiching multiple upstream network."
Wayne Ma   authored and   Gerrit Code Review   commited 2023-03-21 08:51:42 +00:00
cd893e0825
Add new test for swtiching multiple upstream network.
Bug: 263681262
Test: atest TetheringMetricsTest
Change-Id: I70e88d36ecf4cac0f61ab54cc14efa46a4b5facb

Wayne Ma   commited 2023-03-21 11:38:16 +08:00
2bcd523745
Merge "Clean up the LinkProperties when stop monitoring sockets"
Paul Hu   authored and   Gerrit Code Review   commited 2023-03-21 01:30:05 +00:00
46eb5f4b5e
Do not jarjar tests if explicitly excluded.
Test: m
Change-Id: I0ebd5f2d5566d12a1cf0136fcf3e588899757b7c

Chidera Olibie   commited 2023-03-20 23:05:40 +00:00
694295717c
Add cronet_tests target
Test: m cronet_aml_components_cronet_android_cronet_tests__testing
Bug: 267353182
Change-Id: Ib2f555e3d36a5590387a282f4ce8c2ecca2f66d0

Chidera Olibie   commited 2023-03-20 22:28:01 +00:00
26076f9ee6
Merge "Attempt to fix NetworkTracePollerTest flake"
Ryan Zuklie   authored and   Gerrit Code Review   commited 2023-03-20 19:22:41 +00:00
5e5542939c
gn2bp: Add boringssl change to gn2bp generator
Test: None
Change-Id: I5c32d3ec6e0e7351650896b96dd9f2755fe9ca1b

Mohannad Farrag   commited 2023-03-20 19:02:56 +00:00
1e68691ac2
[Cronet] Remove static_libs from genrules
Also adds soong_namespace to bp: cc: aosp/2493857

Test: th
Bug: 274094720
Change-Id: Iddcfee5da5d155708ba164783242c9e1e13b070d

Chidera Olibie   authored and   Patrick Rohr   commited 2023-03-20 18:48:57 +00:00
32f47411d0
Add setEnableBrotli tests
Test: atest CtsNetHttpTestCases
Bug: 251012627
Change-Id: I000b24fd91288e1500776b42c1aad5177cd3acfe

Chidera Olibie   commited 2023-03-20 16:52:59 +00:00
965a4bcbc5
Merge "Implement logging of upstream event type and duration."
Wayne Ma   authored and   Gerrit Code Review   commited 2023-03-20 16:50:37 +00:00
9d6b724887
Merge "Add setQuicOptions test"
Chidera Olibie   authored and   Gerrit Code Review   commited 2023-03-20 15:25:35 +00:00
023019600a
Merge "Add test for QuicOption.setHandshakeUserAgent"
Chidera Olibie   authored and   Gerrit Code Review   commited 2023-03-20 14:12:42 +00:00
8e7ff17ae9
Add setQuicOptions test
Bug: 251012627
Test: atest NetHttpTestCases
Change-Id: I8676a0f242d167e42b525b6e0cefc799441c2f7c

Chidera Olibie   commited 2023-03-20 13:38:10 +00:00
948fa4b07d
Add test for QuicOption.setHandshakeUserAgent
Test: atest CtsNetHttpTestCases
Bug: 251012627
Change-Id: Id9ed74715f946e42727c63e7e0d6788258b4300c

Chidera Olibie   commited 2023-03-20 13:18:05 +00:00
f118bf5e0a
Merge "Reland "Bundle Cronet's boringssl""
Stefano Duo   authored and   Gerrit Code Review   commited 2023-03-20 13:10:30 +00:00
a5e1029101
Merge "clatd: update a comment about ipv6 frag handling"
Patrick Rohr   authored and   Gerrit Code Review   commited 2023-03-20 09:34:53 +00:00
4c858872b5
Clean up the LinkProperties when stop monitoring sockets
The active network LinkProperties are not cleaned up after stop
socket monitoring. Then the apps will have duplicate sockets
to discover on one interface if the interface has been toggled,
because requestSocket will return both the old socket (for the
old netId that is actually gone) and a new socket on the same
interface, for the new netId. Thus, clean up the LinkProperties
when stop monitoring sockets.

Bug: 274063187
Test: atest FrameworksNetTests android.net.cts.NsdManagerTest
Change-Id: I3d600169b069a1534bd740e711bc21db107b1201

Paul Hu   commited 2023-03-20 15:06:05 +08:00
13921b2cdc
Merge "Add Tetheroffload AIDL interface support"
KH Shi   authored and   Gerrit Code Review   commited 2023-03-20 03:58:42 +00:00
7b8568927e
Merge "Adding keepalive metrics protos in the Connectivity module"
Frank Li   authored and   Gerrit Code Review   commited 2023-03-20 02:45:58 +00:00
af94741cc0
Adding keepalive metrics protos in the Connectivity module
Copy keepalive info metric's protos from stats/atoms.proto
into ConnectivityService module.

Bug: 271790833
Test: statsd_testdrive
Change-Id: Idaf4b95e5cbd81d3d424ef7138cdd812d3aa1b6d

Frank Li   commited 2023-03-20 02:43:06 +00:00
d5c936b535
Merge changes from topics "nonAutoIPSelection", "preferredIpProtocol"
* changes:
  Test IP version and encap type set in non-auto IP selection mode
  Test reading preferred IP protocol from carrierconfig

Chiachang Wang   authored and   Gerrit Code Review   commited 2023-03-20 02:39:42 +00:00
f6682143ac
Merge "Update to /external/robolectric rather than older /external/robolectric-shadows"
Rex Hoffman   authored and   Gerrit Code Review   commited 2023-03-18 06:48:17 +00:00
19bde5b0da
Update to /external/robolectric rather than older /external/robolectric-shadows
Bug: 261728063
Test: atest with both robolectric tests.

same failures before/after

Change-Id: Idf0a9073287e98dce70c93910a50946940118305

Rex Hoffman   commited 2023-03-17 22:33:58 +00:00
e6f0b196ed
clatd: update a comment about ipv6 frag handling
Test: N/A, comment only
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Id41148e01f5ea8e924bd7bdd09216178081a44c5

Maciej Żenczykowski   commited 2023-03-17 18:29:04 +00:00
bdcb8968b8
Add CTS for QuicException
Bug: 251012627
Test: atest CtsNetHttpTestCases
Change-Id: Ib04c7474b0936dadaee5d1852fdf673baef7ed93

Chidera Olibie   commited 2023-03-17 17:35:30 +00:00
596e9d8e5a
Merge "cronet: Update APIs naming"
Motomu Utsumi   authored and   Gerrit Code Review   commited 2023-03-17 14:41:51 +00:00
f4ea712ce4
Reland "Bundle Cronet's boringssl"
This relands commit 2cd4ac8725

Merged-In: I903369dbad37b663a39e80149e25b0634386df6d
Change-Id: I018121bf4d02ccc59c89de39e3d1598deb9cf67b
Bug: 274094720

Stefano Duo   commited 2023-03-17 13:46:25 +00:00
43d89f659f
Merge "Add a CompatChange flag to enable platform backend"
Paul Hu   authored and   Gerrit Code Review   commited 2023-03-17 13:14:19 +00:00
62503cfef1
cronet: Update APIs naming
Bug: 265674359
Bug: 273937039
Test: TH
Change-Id: I5fc149396511effdfabd462eba80d1a010ee205a

Motomu Utsumi   commited 2023-03-17 09:04:56 +00:00
2441e4aea6
Add Tetheroffload AIDL interface support
Add the AIDL HAL service interface support and abstract the HIDL/AIDL
interface implementations to allow OffloadController to talk to both
interfaces.

Bug: b/205762647
Test: atest com.android.networkstack.tethering
      atest ConnectivityCoverageTests
      atest ConntrackSocketTest
Change-Id: If7634a298d03668ed70b328f1ad6ca0ac0fe170b

KH Shi   commited 2023-03-17 16:56:47 +08:00
3d5e65cb48
Implement logging of upstream event type and duration.
Bug: 263681262
Test: atest TetheringMetricsTest
Test: statsd_testdrive 303
Change-Id: I80301ee035a9814920e3ce4b9eca6bcdc59350db

Wayne Ma   commited 2023-03-17 16:40:06 +08:00
c0e9e2901b
Connectivity Tests: join handler thread after calling quitSafely
Somewhat surprisingly, HandlerThread#quitSafely is *not* a synchronous
method, so the tearDown() method still needs to wait for the thread to
join.

Test: TH
Change-Id: I0433e2100adf9299a67af5c259a518cf44f4be57

Patrick Rohr   commited 2023-03-17 01:01:09 -07:00
98021b650b
Merge "Factor out adding records to a generic"
Paul Hu   authored and   Gerrit Code Review   commited 2023-03-17 02:30:39 +00:00
a08f8867f8
Add a CompatChange flag to enable platform backend
Apps targeting sdk < U are considered to use a legacy native
daemon as NsdManager backend, but other apps use a
platform-integration mDNS implementation as backend. So add a
CompatChange flag to enable platform backend for non-legacy
apps.

Bug: 270306772
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: I7ba58f8a5186fb49ad5f8aeacc8b8234bef1eabe

Paul Hu   commited 2023-03-17 09:10:46 +08:00
2e0a88c0fa