diff options
| author | Junyu Lai <junyulai@google.com> | 2021-12-22 15:50:13 +0000 |
|---|---|---|
| committer | Junyu Lai <junyulai@google.com> | 2022-01-07 06:45:56 +0000 |
| commit | eaa58de99152c95f22b094393221627d54477c6b (patch) | |
| tree | aa7f3b67aa99fc7dcac7af9b575a683ded681db5 /tests/common/java/android/net/NetworkCapabilitiesTest.java | |
| parent | 392161e651d870c1c5dcf5ff1b1cb5afd029dea4 (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/common/java/android/net/NetworkCapabilitiesTest.java')
0 files changed, 0 insertions, 0 deletions
