Description[Cronet] Unit test refactoring and fixes
1. Refactoring: introduced registerHostResolver(...) method in the base class that allow registering
the resolver for the legacy and new APIs. Refactored QuicTest, SdchTest and PkpTest to use it.
2. Bug fix: Every call to start CronetTestBase.startCronetTestFramework…() resulted in deletion of QUIC
cache. It is not desirable in some cases, e.g. in tests that check persistence. As the result of the
change, the cache is always cleared on setUp() method. That eliminates dependencies between tests.
If a test needs to clear the cache between multiple engine instantiation within a single test, it
can call CronetTestFramework.prepareTestStorage() method.
To simplify the CL, the changes related to the CronetHttpURLConnection tests and the CronetTestBase.mCronetTestFramework member are excluded from this CL.
BUG=565365
Committed: https://crrev.com/b0293a3aa2ce09755ed6fab5838b4f978d56f313
Cr-Commit-Position: refs/heads/master@{#363876}
Patch Set 1 #
Total comments: 7
Patch Set 2 : Removed changes related to CronetHttpURLConnection tests #
Total comments: 2
Messages
Total messages: 17 (5 generated)
|