DescriptionRefactor network_time_test_utils
This CL refactors network_time_test_utils in preparation for enabling
on-demand time fetches when a DATE_INVALID certificate error is
encountered.
The changes are:
1. Make FieldTrialTest no longer inherit from ::testing::Test, so that
it can be used compositionally in tests that subclass
e.g. RenderViewHostTestHarness. (A follow-up CL will use a
FieldTrialTest inside a RenderViewHostTestHarness test.)
2. Add an argument to enable on-demand fetches to
SetNetworkQueriesWithVariationsService(). This param is not yet used
anywhere but will be in follow-up CLs.
3. Move GoodTimeResponseHandler from network_time_tracker_unittest.cc to
network_time_test_utils.h/.cc. A follow-up CL will use this response
handler to test on-demand time fetches outside of
network_time_tracker_unittest.cc.
This is a series of patches to add on-demand time fetches when handling
cert date invalid errors.
CL #1: https://codereview.chromium.org/2447183002/ <== this one
CL #2: https://codereview.chromium.org/2453523002/
CL #3: https://codereview.chromium.org/2449193002/
BUG=589700
Committed: https://crrev.com/9cf4bc9f98b73736007663f037b9f1fed67a75b6
Cr-Commit-Position: refs/heads/master@{#427551}
Patch Set 1 #Patch Set 2 : BUILD.gn fix #Patch Set 3 : another BUILD.gn fix #
Dependent Patchsets: Messages
Total messages: 22 (17 generated)
|