commit | 7351f471c895b6d7f0cec066af3f7419b2350414 | [log] [tgz] |
---|---|---|
author | Stefano Duo <stefanoduo@google.com> | Mon Jan 16 15:56:58 2023 +0000 |
committer | Stefano Duo <stefanoduo@google.com> | Mon Jan 23 18:47:54 2023 +0000 |
tree | 94b6244433f52c8bf42fc346ca08fcd83d20ffb5 | |
parent | 1e323768754f734fc78b8d6e55095658ee294e58 [diff] |
Refactor internet connection check into utility function The internet connectivity check will be required by multiple test classes. Refactor it into a standalone utility function and port the code to Kotlin at the same time. Also, instead of asserting, make use of junit.Assume. This way when ther is no internet connection the test won't fail but it will just be reported as skipped Test: atest CtsCronetTestCases Change-Id: I170aa19e23a9532d84da72cbcec567b65519bb0b