summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/NetworkStatsTest.java
diff options
context:
space:
mode:
authorJunyu Lai <junyulai@google.com>2021-12-22 15:50:13 +0000
committerJunyu Lai <junyulai@google.com>2022-01-07 06:45:56 +0000
commiteaa58de99152c95f22b094393221627d54477c6b (patch)
treeaa7f3b67aa99fc7dcac7af9b575a683ded681db5 /tests/unit/java/android/net/NetworkStatsTest.java
parent392161e651d870c1c5dcf5ff1b1cb5afd029dea4 (diff)
[MS17.2] Fix remaining daily budget assertion
Currently, the test didn't mock data usage of the month. Thus, when asserting remaining budget, the calculation always assumes there is no used data, hence wrong budget value is expected. See #getRemainingDailyBudget. This change makes data usage of this month includes the bytes used today. And adjust the policy limit accordingly. Test: atest MultipathPolicyTrackerTest Bug: 204830222 Change-Id: I3ca6505f8d502047485ba3676f16fbc474117cc1
Diffstat (limited to 'tests/unit/java/android/net/NetworkStatsTest.java')
0 files changed, 0 insertions, 0 deletions