| Index: net/disk_cache/backend_unittest.cc
|
| diff --git a/net/disk_cache/backend_unittest.cc b/net/disk_cache/backend_unittest.cc
|
| index bd0827666895b7ca5c28f86bd2c5fa8ca215c312..e92dd9b2f59ce8d07ee293ce6e536c16402ec1ce 100644
|
| --- a/net/disk_cache/backend_unittest.cc
|
| +++ b/net/disk_cache/backend_unittest.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/files/file.h"
|
| #include "base/files/file_util.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/metrics/field_trial.h"
|
| #include "base/run_loop.h"
|
| #include "base/strings/string_number_conversions.h"
|
| @@ -2057,7 +2058,8 @@ TEST_F(DiskCacheTest, SimpleCacheControlJoin) {
|
|
|
| // Instantiate the SimpleCacheTrial, forcing this run into the
|
| // ExperimentControl group.
|
| - base::FieldTrialList field_trial_list(new base::MockEntropyProvider());
|
| + base::FieldTrialList field_trial_list(
|
| + base::MakeUnique<base::MockEntropyProvider>());
|
| base::FieldTrialList::CreateFieldTrial("SimpleCacheTrial",
|
| "ExperimentControl");
|
| net::TestCompletionCallback cb;
|
| @@ -2081,7 +2083,8 @@ TEST_F(DiskCacheTest, SimpleCacheControlJoin) {
|
| TEST_F(DiskCacheTest, SimpleCacheControlRestart) {
|
| // Instantiate the SimpleCacheTrial, forcing this run into the
|
| // ExperimentControl group.
|
| - base::FieldTrialList field_trial_list(new base::MockEntropyProvider());
|
| + base::FieldTrialList field_trial_list(
|
| + base::MakeUnique<base::MockEntropyProvider>());
|
| base::FieldTrialList::CreateFieldTrial("SimpleCacheTrial",
|
| "ExperimentControl");
|
|
|
| @@ -2121,7 +2124,8 @@ TEST_F(DiskCacheTest, SimpleCacheControlLeave) {
|
| {
|
| // Instantiate the SimpleCacheTrial, forcing this run into the
|
| // ExperimentControl group.
|
| - base::FieldTrialList field_trial_list(new base::MockEntropyProvider());
|
| + base::FieldTrialList field_trial_list(
|
| + base::MakeUnique<base::MockEntropyProvider>());
|
| base::FieldTrialList::CreateFieldTrial("SimpleCacheTrial",
|
| "ExperimentControl");
|
|
|
| @@ -2132,7 +2136,8 @@ TEST_F(DiskCacheTest, SimpleCacheControlLeave) {
|
|
|
| // Instantiate the SimpleCacheTrial, forcing this run into the
|
| // ExperimentNo group.
|
| - base::FieldTrialList field_trial_list(new base::MockEntropyProvider());
|
| + base::FieldTrialList field_trial_list(
|
| + base::MakeUnique<base::MockEntropyProvider>());
|
| base::FieldTrialList::CreateFieldTrial("SimpleCacheTrial", "ExperimentNo");
|
| net::TestCompletionCallback cb;
|
|
|
|
|