summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/NetworkStatsTest.java
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2021-06-21 14:58:35 +0900
committerRemi NGUYEN VAN <reminv@google.com>2021-06-22 18:24:52 +0900
commit489275e84e6d93eb1e36ff9635ffe74f9dc127be (patch)
tree2fd99969d6c7769a99f35bf2d78eb814005e6670 /tests/unit/java/android/net/NetworkStatsTest.java
parent5d4f701244b55e33918c3995d7ae4c530a866058 (diff)
Add tests for duplicate PendingIntent requests
Add tests for requestNetwork and registerNetworkCallback with PendingIntents that are equal as per PendingIntent.intentFilterEquals. In such situations, the first request is documented to be automatically unregistered. This means that the PendingIntent should only be fired once, instead of being fired for both requests. Currently this behavior is broken for network callbacks (not for network requests). Test: atest ConnectivityManagerTest Bug: 174237997 Change-Id: Ic636c731c71474ef09043d7a26ccfd6e2bb5c39f
Diffstat (limited to 'tests/unit/java/android/net/NetworkStatsTest.java')
0 files changed, 0 insertions, 0 deletions