commit | 5d67667e9b96270131df610c676060e7dfc1c53f | [log] [tgz] |
---|---|---|
author | Remi NGUYEN VAN <reminv@google.com> | Tue Aug 03 11:40:10 2021 +0900 |
committer | Remi NGUYEN VAN <reminv@google.com> | Tue Aug 03 12:43:57 2021 +0900 |
tree | 9a46060c6503492236895fd5756c8d1def41f7b5 | |
parent | 44021f4a17636026528c1ca4089a0c1e3d08b980 [diff] |
Do not use mockito to create HttpURLConnection Instead, use a dedicated MockConnection class. This should improve performance of the test, and works around failures where mockito crashes when creating mocks when openConnection is called. The failures are believed to be a bug in mockito-extended, but are not likely to be fixed soon. Bug: 185083316 Test: atest FrameworksNetIntegrationTests Change-Id: I32deaaaaa5ce9876611314c8e8b9d8bdd6325df0