1 // 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 7 namespace base { 8 MockEntropyProvider()9MockEntropyProvider::MockEntropyProvider() : entropy_value_(0.5) {} MockEntropyProvider(double entropy_value)10MockEntropyProvider::MockEntropyProvider(double entropy_value) 11 : entropy_value_(entropy_value) {} 12 MockEntropyProvider::~MockEntropyProvider() = default; 13 GetEntropyForTrial(const std::string & trial_name,uint32_t randomization_seed) const14double MockEntropyProvider::GetEntropyForTrial( 15 const std::string& trial_name, 16 uint32_t randomization_seed) const { 17 return entropy_value_; 18 } 19 20 } // namespace base 21