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

Unified Diff: chrome/common/extensions/feature_switch_unittest.cc

Issue 2060803002: Use separate time values for 32 and 64 bit systems in feature tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TODO added Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/feature_switch_unittest.cc
diff --git a/chrome/common/extensions/feature_switch_unittest.cc b/chrome/common/extensions/feature_switch_unittest.cc
index 6aade919c66235a1c67424d7fb2f655c8b811cd6..1125efcd37c32f0eb629b05604a8b9c49331adff 100644
--- a/chrome/common/extensions/feature_switch_unittest.cc
+++ b/chrome/common/extensions/feature_switch_unittest.cc
@@ -25,8 +25,15 @@ scoped_refptr<base::FieldTrial> CreateFieldTrial(
// worth it.
scoped_refptr<base::FieldTrial> trial =
base::FieldTrialList::FactoryGetFieldTrial(
- kFieldTrialName, kTotalProbability, "default", 5000, 1, 1,
- base::FieldTrial::SESSION_RANDOMIZED, nullptr);
+ kFieldTrialName, kTotalProbability, "default",
+// TODO(maksims): remove architecture check
+// in the future. https://crbug.com/619828
+#if defined(OS_LINUX) && defined(ARCH_CPU_64_BITS)
+ 5000,
+#else
+ 2038,
+#endif
+ 1, 1, base::FieldTrial::SESSION_RANDOMIZED, nullptr);
trial->AppendGroup(group_name, kTotalProbability);
return trial;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698