summaryrefslogtreecommitdiffstats
path: root/chrome/browser/io_thread_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/io_thread_unittest.cc')
-rw-r--r--chrome/browser/io_thread_unittest.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/chrome/browser/io_thread_unittest.cc b/chrome/browser/io_thread_unittest.cc
index aee6854..f2820d9 100644
--- a/chrome/browser/io_thread_unittest.cc
+++ b/chrome/browser/io_thread_unittest.cc
@@ -4,6 +4,7 @@
#include "base/command_line.h"
#include "base/metrics/field_trial.h"
+#include "base/test/mock_entropy_provider.h"
#include "chrome/browser/io_thread.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "net/http/http_network_session.h"
@@ -16,16 +17,6 @@ namespace test {
using ::testing::ElementsAre;
-class BadEntropyProvider : public base::FieldTrial::EntropyProvider {
- public:
- ~BadEntropyProvider() override {}
-
- double GetEntropyForTrial(const std::string& trial_name,
- uint32 randomization_seed) const override {
- return 0.5;
- }
-};
-
class IOThreadPeer {
public:
static void ConfigureQuicGlobals(
@@ -218,7 +209,7 @@ TEST_F(IOThreadTest, EnableQuicFromFieldTrialGroup) {
}
TEST_F(IOThreadTest, EnableQuicFromQuicProxyFieldTrialGroup) {
- base::FieldTrialList field_trial_list(new BadEntropyProvider());
+ base::FieldTrialList field_trial_list(new base::MockEntropyProvider());
base::FieldTrialList::CreateFieldTrial(
data_reduction_proxy::DataReductionProxyParams::GetQuicFieldTrialName(),
"Enabled");