summaryrefslogtreecommitdiff
path: root/tests/src/android
AgeCommit message (Collapse)Author
2019-05-21Move the NetworkStack tests to unit/ to add an integration test.Lorenzo Colitti
Test: m Change-Id: If638183f45956b60d694c859a759dd761c0598b2
2019-05-14apf: Remove IPv6 NAT-T keepalive related codes and ApfTest improvementAaron Huang
Remove IPv6 related codes since we don't support IPv6 NAT-T keepalive as the kernel doesn't support IPv6 UDP encapsulation. Renaming keepaliveAck to keepaliveResponce since NAT-T keeaplive response is not an ack. Also, add generateV4NattKeepaliveFilters() if multicast filter is disabled. Verify incoming packet contains 1 byte payload but it is not 0xff will pass NAT-T keepalive filter. Bug: 33530442 Test: atest FrameworksNetTests atest NetworkStackTests Change-Id: Ifb9e088c0c8d71c763ebd9ad122103d0f97ca278
2019-05-10Dropping NAT-T keepalive packet from APFAaron Huang
Add NAT Traversal keepalive filter to APF program to drop NAT-T keepalive packets when NAT-T keepalive offload is starting. Bug: 33530442 Test: - atest NetworkStackTests - atest FrameworksNetTests Change-Id: I1c537485e11b31e5a6e0d8b7b6a1f396f9441746
2019-04-29Support adding NATT keepalive packet filterAaron Huang
Support adding NATT keepalive packet filter to APF filter. Generating APF program will be addressed in another CL. Bug: 33530442 Test: - atest NetworkStackTests - atest FrameworksNetTests Change-Id: I4961d5da343d8700600269632787c28112f0f9f1
2019-04-27Fix some checkstyle nits in DhcpPacketTest.Lorenzo Colitti
Use the Generated code suppression comment filter instead of the IndentationCheck suppression comment filter because the latter complains that '+' should be on a new line. Bug: 120584519 Bug: 127423755 Test: atest NetworkStackTests Test: atest FrameworksNetTests Change-Id: Ia9865c75f940e2fbb3aef374a297339e8ea2fd1b
2019-04-27Additional code for server name in DHCP packets.Lorenzo Colitti
- Add the hostname to DhcpResultsParcelable. - Don't store the server hostname if option overload is in use, as this is not valid. - Add unit tests. Bug: 120584519 Bug: 127423755 Test: atest NetworkStackTests Test: atest FrameworksNetTests Change-Id: I47d9d53d1fb58968322cc8b071a44fbc8f7156e1
2019-04-23Freeze the networkstack-aidl-interfaces interfaceRemi NGUYEN VAN
This freezes the interface as of the latest beta build, not the tip of tree. IIpClient#setL2KeyAndGroupHint is not in the frozen definition in particular. Generated with: m networkstack-aidl-interfaces-freeze-api \ ipmemorystore-aidl-interfaces-freeze-api Test: flashed, booted, WiFi and captive portal working Bug: 128803828 Change-Id: Ideabe73fc93bbefca2d624ee9ca190cf31419424
2019-04-05Add a mechanism to pass the L2Key and group hint to IpClientChalard Jean
Test: IpClientTest Change-Id: I399b20ce29a385a74971b7a7248a48cb4d66deb6
2019-04-02Make CaptivePortalProbeSpec and CaptivePortalProbeResult as a librarypaulhu
These two classes were added to @SystemApi because they are used both by NetworkMonitor and CaptivePortalLogin. However it turns out they are not needed in the framework, so having them as a library sounds better. Change-Id: Iadf77ec5952b6da8812dc6d006a39bd4e93d2bd9 Fix: 129433264 Test: atest NetworkStackTests FrameworksNetTests
2019-03-25apf: Documentation improvements and code optimizations for keepalive filtersAaron Huang
Optimizing instruction to reduce code size of keepalive filters. Bug: 123992088 Test: atest NetworkStackTests Change-Id: I9ae55977c6d6740277ba55603ee957f33a97ecaa
2019-03-18Move the IpMemoryStore to the network stack.Chalard Jean
Test: atest FrameworksNetTests Change-Id: Ic5bd6ff54b09a6fa92b6863f240a5b053011acb6
2019-03-16Remove aidl wrappers for framework parcelablesRemi NGUYEN VAN
The new @JavaOnlyStableParcelable annotation allows using the framework parcelables directly, which removes a lot of boilerplate. Includes new copy constructors for IpPrefix and LinkAddress so they can be copied easily as-is into parcelables. Test: atest FrameworksNetTests Test: booted, WiFi works Bug: 126477266 Change-Id: Icac8afe498d0b5ebf9a0d0b9eceb14d64a29b381
2019-03-08Remove NetworkStack test dependency on testutilsRemi NGUYEN VAN
frameworks-base-testutils is close to unused in the tests, and has the side-effect of adding some unrelated tests to be run in NetworkStackTests like TestLooperTest. TestLooperTest is also failing in some cases. Bug: 127908503 Test: atest NetworkStackTests Change-Id: Iebc174ed1362e8c341d765129a7fc51f8ed1999d
2019-03-01Migrate frameworks/base/tests/testables and its users to androidx.testBrett Chabot
See go/jetpack-test-android-migration Test: atest TestablesTests NetworkStackTests FrameworksServicesTests SystemUITests FrameworksUiServicesTests ExtServicesUnitTests Exempt-From-Owner-Approval: already reviewed Change-Id: I083fcdaa71b503535aa2b3c257740f3ecf055373 Merged-In: Ib04d80954bd8536914d88c66b28e6632e60a6245
2019-02-15Replace TcpSocketInfo with TcpKeepalivePacketDataParcelable in ApfTest.Xiao Ma
Test: atest NetworkStackTests Change-Id: I95fde70c07b398a2a2f734f35165870284a3959c
2019-02-15Merge "Fix testApfFilterKeepaliveAck."Xiao Ma
2019-02-14Fix testApfFilterKeepaliveAck.Xiao Ma
Apf program for TCP keep alive ACK also compares protocol field in IPv4 header and the total length of TCP keep alive ACK packet. Besides, should set the ACK flag in the the TCP header of keep alive ACK packet. Bug: 123992564 Test: atest NetworkStackTests Change-Id: I997cd6807a33f7e1af25566226d803dcc2e257dd
2019-02-14Remove deps from framework on netd interfacesRemi NGUYEN VAN
If included in framework.jar, the interfaces conflict with any app that needs to depend on them, including the NetworkStack. Bug: 124033493 Test: atest FrameworksNetTests NetworkStackTests Change-Id: I2db9f87b7154130726d4700b241d55b041635d98 Merged-In: I0ecae20d514bf888f3a80331f19369ceb1c52aa3
2019-02-06[KA07] Drop TCP keepalive ack packetsAaron Huang
To support TCP keepalive offload, APF filter needs to add program for dropping keepalive ack packets when offload is starting. Bug: 114151147 Test: runtest frameworks-net -c android.net.apf.ApfTest Change-Id: If16a9bc04eb29dfedb950b6e4c85fe9ad4cf259f
2019-01-30Remove last NetworkStack usage of hidden APIsRemi NGUYEN VAN
Includes various small changes to stop using hidden APIs Test: make NetworkStack Test: flashed, booted, WiFi and tethering working Bug: 112869080 Change-Id: Id2830795a444f484b377ed6437435a1cd833697a
2019-01-29Run IpClientLinkObserver on Binder threadRemi NGUYEN VAN
This restores previous behavior, where callbacks would not be called on the IpClient handler thread. Test: atest FrameworksNetTests NetworkStackTests Test: flashed, WiFi works Bug: 123062477 Change-Id: I3015566b0922d76ac7cf70579a1de3e033bf7b4a
2019-01-29Remove IpClient usage of NetworkManagementServiceRemi NGUYEN VAN
Use the new NetworkObserverRegistry instead. Test: atest FrameworksNetTests NetworkStackTests Test: flashed, WiFi working fine Bug: 112869080 Change-Id: If16ecfd6489f86afec67c22b4c3692cd68f4edbf
2019-01-28Merge "Add hidden utils and constants to NetworkStack"Remi NGUYEN VAN
2019-01-28Merge "Move NetworkUtils used by NetworkStack"Remi NGUYEN VAN
2019-01-28Add hidden utils and constants to NetworkStackRemi NGUYEN VAN
Test: atest FrameworksNetTests NetworkStackTests Bug: 112869080 Change-Id: I1a803f7954ab760294436226d6c1cffb934e98f9
2019-01-28Move NetworkUtils used by NetworkStackRemi NGUYEN VAN
Depending on usage move into NetworkStackUtils or shared Inet4AddressUtils. Test: atest FrameworksNetTests NetworkStackTests Bug: 112869080 Merged-In: Ie20dcee375b377236004a7689890729493aca857 Change-Id: Ib8d000529872796022706a35050fdc2c7141f2ab
2019-01-24Fix IpClientTestRemi NGUYEN VAN
NetworkStackTests is run with a version of mockito that allows mocking final methods, which broke mocking of the ConnectivityService. Test: atest NetworkStackTests Change-Id: I430fe12216c43a0c4265a504dbefafad37c09291
2019-01-23Move IpClient to NetworkStackRemi NGUYEN VAN
Test: atest FrameworksNetTests NetworkStackTests Bug: b/112869080 Change-Id: I7d00848c052382cd1b6ce458868bed6a1e9e8ec5
2019-01-09Move DhcpServer to NetworkStack appRemi NGUYEN VAN
Test: atest FrameworksNetTests && atest NetworkStackTests Bug: b/112869080 Change-Id: I96c40e63e9ceb37b67705bdd4d120307e114715b