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

Unified Diff: base/test/mock_entropy_provider.h

Issue 1984003002: Use low entropy for studies that send experiment IDs to Google properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « base/metrics/field_trial.cc ('k') | base/test/mock_entropy_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/mock_entropy_provider.h
diff --git a/base/test/mock_entropy_provider.h b/base/test/mock_entropy_provider.h
index 32e9332e109ebf788c80a3685303e3633487a366..ca2b4bc8fe05d39b760c9c1a2b69d5373548d3da 100644
--- a/base/test/mock_entropy_provider.h
+++ b/base/test/mock_entropy_provider.h
@@ -13,11 +13,18 @@ namespace base {
class MockEntropyProvider : public base::FieldTrial::EntropyProvider {
public:
+ MockEntropyProvider();
+ explicit MockEntropyProvider(double entropy_value);
~MockEntropyProvider() override;
// base::FieldTrial::EntropyProvider:
double GetEntropyForTrial(const std::string& trial_name,
uint32_t randomization_seed) const override;
+
+ private:
+ double entropy_value_;
+
+ DISALLOW_COPY_AND_ASSIGN(MockEntropyProvider);
};
} // namespace base
« no previous file with comments | « base/metrics/field_trial.cc ('k') | base/test/mock_entropy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698