diff options
| author | 2022-05-23 12:32:51 -0700 | |
|---|---|---|
| committer | 2022-05-23 12:38:38 -0700 | |
| commit | b4e7f6f7d4f87b4845e0e6948fad2bed886bc9fe (patch) | |
| tree | 8c778e8398622c7c82201301e2ecdc2d0fa1ccb2 /libs/androidfw/StringPool.cpp | |
| parent | 467ebb8379733543fe338743ae4515b2dcf60010 (diff) | |
Fix JobStoreTest after adding defensive copy to NetworkRequest.Builder
JobStatus.createFromJobInfo() uses the
NetworkRequest.Builder(NetworkRequest) API, which previously failed to
create a copy of the passed NetworkRequest. This means, that up until
now, SOME_UID was not only set on the second job status, but also on the
first, as the NetworkRequest used came from first.getRequiredNetwork().
Since JobStatus changes the JobInfo object, the second JobInfo object
should be compared a a JobInfo object that has also been changed by
JobStatus in the same way.
Test: atest JobStoreTest
Bug: 233580437
Change-Id: Ic4584575e2bc092c49b7b9ecb9b115da189bdfed
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions