summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/KeepalivePacketDataUtilTest.java
diff options
context:
space:
mode:
authorAaron Huang <huangaaron@google.com>2021-07-26 19:23:26 +0800
committerAaron Huang <huangaaron@google.com>2021-10-26 12:16:18 +0000
commit2685c929f40dfa8510b0b25aed6ef1ef57a1bf7a (patch)
treefd73d1b519c288a990911ebc31ddc3fab75bd49d /tests/unit/java/android/net/KeepalivePacketDataUtilTest.java
parenteaca5b198280705b9f9df68b7766b3b7571e2caf (diff)
Add a test for metered/non-metered mobile network
NetworkTemplate.buildTemplateMobileWithRatType() supports to build a template with metered filter, so a mobile network is metered or non-metered should be tested. This commit also rename buildMobile3gState to buildMobileState because originally this method uses NetworkInfo to simulate the network type. The NetworkInfo related codes were removed. Currently, setMobileRatTypeAndWaitForIdle is used to simulate the network type in test. Ignore-AOSP-First: The parent of this change contains a CL will conflict with internal tree so ignore AOSP first. Bug: 183776809 Test: this Change-Id: I8e54e2acb06db81fb0eaf330c4fd7cb391b01ff3
Diffstat (limited to 'tests/unit/java/android/net/KeepalivePacketDataUtilTest.java')
0 files changed, 0 insertions, 0 deletions