Cut down combinatorial explosion in parameterized HTTPSSVC tests.
In https://crrev.com/c/2089958, httpssvc_metrics_unittest.cc added 1.5% more tests to net_unittests (39202 to 39790). We can compute the number of tests that httpssvc_metrics_unittest.cc produces by looking at both occurrences of INSTANTIATE_TEST_SUITE_P and the number of parameterized tests. This accounts for (3*2*2)*(3*2*2)*2*2 + 2*6 = 588 tests = 39790 - 39202. This CL eliminates some redundancy in the instantiation of HttpssvcMetricsTestDomainParsing, bringing us to (3*2*2)*(2*1*1)*2*2 + 2*6 = 108 tests, which only contributes 0.28% more tests from a baseline of 39202. Bug: 1096073 Change-Id: I8d37f5ebcf883f7c116d46db9d6aa52c8bb75e7c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248751Reviewed-by:Eric Orth <ericorth@chromium.org> Commit-Queue: Dan McArdle <dmcardle@chromium.org> Cr-Commit-Position: refs/heads/master@{#780524}
Showing
Please register or sign in to comment