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

Issue 2145963002: Add simpler API for changing parameters in tests. (Closed)

Created:
4 years, 5 months ago by jkrcal
Modified:
4 years, 5 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add simpler API for changing parameters in tests. When in need of changing variation parameters in unittests, one has to dig unneccessarily deep into the inner workings of variations::. This CL adds a simple class to use in unittests. Simplifying existing unittest code is a matter of further CLs. BUG=629013 Committed: https://crrev.com/86e3d75af3140dce0826f797da9fbadb5bf952bd Cr-Commit-Position: refs/heads/master@{#405992}

Patch Set 1 #

Patch Set 2 : A few typos. #

Total comments: 10

Patch Set 3 : Alexei's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -0 lines) Patch
M components/variations/variations_associated_data.h View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M components/variations/variations_associated_data.cc View 1 2 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
jkrcal
Hi Alexei, PTAL. I was really missing this - what do you think?
4 years, 5 months ago (2016-07-13 12:20:29 UTC) #2
jkrcal
For first simple use, please see https://codereview.chromium.org/2146863002/.
4 years, 5 months ago (2016-07-13 12:50:06 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/2145963002/diff/20001/components/variations/variations_associated_data.cc File components/variations/variations_associated_data.cc (right): https://codereview.chromium.org/2145963002/diff/20001/components/variations/variations_associated_data.cc#newcode275 components/variations/variations_associated_data.cc:275: new base::FieldTrialList(new metrics::SHA1EntropyProvider(kEntropy))); You can just pass nullptr here. ...
4 years, 5 months ago (2016-07-15 14:51:01 UTC) #4
jkrcal
Thanks, PTAL, again. https://codereview.chromium.org/2145963002/diff/20001/components/variations/variations_associated_data.cc File components/variations/variations_associated_data.cc (right): https://codereview.chromium.org/2145963002/diff/20001/components/variations/variations_associated_data.cc#newcode275 components/variations/variations_associated_data.cc:275: new base::FieldTrialList(new metrics::SHA1EntropyProvider(kEntropy))); On 2016/07/15 14:51:01, ...
4 years, 5 months ago (2016-07-18 13:09:02 UTC) #6
Alexei Svitkine (slow)
lgtm
4 years, 5 months ago (2016-07-18 14:40:16 UTC) #11
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/2145963002/40001
4 years, 5 months ago (2016-07-18 15:04:25 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-18 15:09:49 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 15:12:00 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/86e3d75af3140dce0826f797da9fbadb5bf952bd
Cr-Commit-Position: refs/heads/master@{#405992}

Powered by Google App Engine
This is Rietveld 408576698