blob: 5ebf19a7c737a71b60fe0af93d48287909fcb655 [file] [log] [blame]
dbeam73792942015-04-18 01:46:211// Copyright 2015 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "base/test/mock_entropy_provider.h"
6
7namespace base {
8
jwd67c08f752016-05-18 21:04:599MockEntropyProvider::MockEntropyProvider() : entropy_value_(0.5) {}
10MockEntropyProvider::MockEntropyProvider(double entropy_value)
11 : entropy_value_(entropy_value) {}
dbeam73792942015-04-18 01:46:2112MockEntropyProvider::~MockEntropyProvider() {}
13
14double MockEntropyProvider::GetEntropyForTrial(
avid351e5a2015-12-24 03:28:0215 const std::string& trial_name,
16 uint32_t randomization_seed) const {
jwd67c08f752016-05-18 21:04:5917 return entropy_value_;
dbeam73792942015-04-18 01:46:2118}
19
20} // namespace base