DescriptionFix flaky CertificateReportingService browser tests.
CertificateReportingService browser tests wait for the IO thread
after sending a report or resetting the service. This doesn't seem
reliable and the tests occasionally fail. A better approach is to:
- For reports, wait for requests to be destroyed
(CertificateReportingService unit test already does this).
- For service resets, wait for a callback to be called.
This CL does these: It removes WaitForIOThread calls from the browser
test and replaces them with the above. It also refactors the following:
- RequestObserver is shared between browser and unit tests.
- NetworkDelegate is no longer used in the unit tests. RequestObserver is
used instead.
- All tests now expect no URL requests to remain during tear down.
- The code to check expected reports is now shared.
BUG=677560
Review-Url: https://codereview.chromium.org/2605403002
Cr-Commit-Position: refs/heads/master@{#442008}
Committed: https://chromium.googlesource.com/chromium/src/+/ba3bd9c5fe080d75f8d451709dc42372b9083daa
Patch Set 1 #Patch Set 2 : Clean up #Patch Set 3 : Style #
Total comments: 2
Patch Set 4 : Fix build #Patch Set 5 : Fix broken tests #
Total comments: 15
Patch Set 6 : estark comments #Messages
Total messages: 29 (18 generated)
|