Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Issue 2447183002: Refactor network_time_test_utils (Closed)

Created:
4 years, 1 month ago by estark
Modified:
4 years, 1 month ago
Reviewers:
meacer
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -49 lines) Patch
M components/network_time/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/network_time/network_time_test_utils.h View 2 chunks +23 lines, -8 lines 0 comments Download
M components/network_time/network_time_test_utils.cc View 2 chunks +32 lines, -2 lines 0 comments Download
M components/network_time/network_time_tracker_unittest.cc View 9 chunks +17 lines, -36 lines 0 comments Download
M components/ssl_errors/error_classification_unittest.cc View 2 chunks +11 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (17 generated)
estark
meacer, I'm going to be sending you a series of patches (this is the first ...
4 years, 1 month ago (2016-10-25 20:13:10 UTC) #15
meacer
On 2016/10/25 20:13:10, estark wrote: > meacer, I'm going to be sending you a series ...
4 years, 1 month ago (2016-10-26 00:19:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2447183002/40001
4 years, 1 month ago (2016-10-26 00:23:29 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-26 00:31:03 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 00:34:15 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9cf4bc9f98b73736007663f037b9f1fed67a75b6
Cr-Commit-Position: refs/heads/master@{#427551}

Powered by Google App Engine
This is Rietveld 408576698