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

Unified Diff: chrome/common/metrics/entropy_provider_unittest.cc

Issue 11783033: Fix problem where field trials using kExpirationYearInFuture could get disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/metrics/variations/variations_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/metrics/entropy_provider_unittest.cc
===================================================================
--- chrome/common/metrics/entropy_provider_unittest.cc (revision 175570)
+++ chrome/common/metrics/entropy_provider_unittest.cc (working copy)
@@ -192,9 +192,9 @@
base::FieldTrialList field_trial_list(new SHA1EntropyProvider("client_id"));
scoped_refptr<base::FieldTrial> trials[] = {
base::FieldTrialList::FactoryGetFieldTrial("one", 100, "default",
- base::FieldTrialList::kExpirationYearInFuture, 1, 1, NULL),
+ base::FieldTrialList::kNoExpirationYear, 1, 1, NULL),
base::FieldTrialList::FactoryGetFieldTrial("two", 100, "default",
- base::FieldTrialList::kExpirationYearInFuture, 1, 1, NULL) };
+ base::FieldTrialList::kNoExpirationYear, 1, 1, NULL) };
for (size_t i = 0; i < arraysize(trials); ++i) {
trials[i]->UseOneTimeRandomization();
@@ -220,9 +220,9 @@
new PermutedEntropyProvider(1234, kMaxLowEntropySize));
scoped_refptr<base::FieldTrial> trials[] = {
base::FieldTrialList::FactoryGetFieldTrial("one", 100, "default",
- base::FieldTrialList::kExpirationYearInFuture, 1, 1, NULL),
+ base::FieldTrialList::kNoExpirationYear, 1, 1, NULL),
base::FieldTrialList::FactoryGetFieldTrial("two", 100, "default",
- base::FieldTrialList::kExpirationYearInFuture, 1, 1, NULL) };
+ base::FieldTrialList::kNoExpirationYear, 1, 1, NULL) };
for (size_t i = 0; i < arraysize(trials); ++i) {
trials[i]->UseOneTimeRandomization();
« no previous file with comments | « chrome/browser/metrics/variations/variations_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698