mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
21 lines
629 B
C++
21 lines
629 B
C++
// Copyright 2015 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "base/test/mock_entropy_provider.h"
|
|
|
|
namespace base {
|
|
|
|
MockEntropyProvider::MockEntropyProvider() : entropy_value_(0.5) {}
|
|
MockEntropyProvider::MockEntropyProvider(double entropy_value)
|
|
: entropy_value_(entropy_value) {}
|
|
MockEntropyProvider::~MockEntropyProvider() = default;
|
|
|
|
double MockEntropyProvider::GetEntropyForTrial(
|
|
const std::string& trial_name,
|
|
uint32_t randomization_seed) const {
|
|
return entropy_value_;
|
|
}
|
|
|
|
} // namespace base
|