Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_experiments_stats_unittest.cc

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_expe riments_stats.h" 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_expe riments_stats.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/metrics/field_trial.h" 11 #include "base/metrics/field_trial.h"
12 #include "base/prefs/pref_service.h"
12 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
13 #include "base/test/histogram_tester.h" 14 #include "base/test/histogram_tester.h"
14 #include "base/time/time.h" 15 #include "base/time/time.h"
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_retrieval_params.h" 16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_retrieval_params.h"
16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h" 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h"
17 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h" 18 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h"
18 #include "components/prefs/pref_service.h"
19 #include "components/variations/variations_associated_data.h" 19 #include "components/variations/variations_associated_data.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 namespace { 22 namespace {
23 23
24 // Test value for how long a Data Reduction Proxy configuration should be valid. 24 // Test value for how long a Data Reduction Proxy configuration should be valid.
25 const int64_t kConfigExpirationSeconds = 60 * 60 * 24; 25 const int64_t kConfigExpirationSeconds = 60 * 60 * 24;
26 26
27 } // namespace 27 } // namespace
28 28
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 "DataReductionProxy.ConfigFetchLostBytesDiff_0", 0); 156 "DataReductionProxy.ConfigFetchLostBytesDiff_0", 0);
157 } else { 157 } else {
158 histogram_tester.ExpectUniqueSample( 158 histogram_tester.ExpectUniqueSample(
159 "DataReductionProxy.ConfigFetchLostBytesDiff_0", 159 "DataReductionProxy.ConfigFetchLostBytesDiff_0",
160 test_case.expected_diff, 1); 160 test_case.expected_diff, 1);
161 } 161 }
162 } 162 }
163 } 163 }
164 164
165 } // namespace data_reduction_proxy 165 } // namespace data_reduction_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698