OLD | NEW |
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_conf
ig.h" | 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <stdint.h> | 8 #include <stdint.h> |
8 | 9 |
9 #include <map> | 10 #include <map> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/macros.h" |
13 #include "base/metrics/field_trial.h" | 15 #include "base/metrics/field_trial.h" |
14 #include "base/strings/safe_sprintf.h" | 16 #include "base/strings/safe_sprintf.h" |
15 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
17 #include "base/test/histogram_tester.h" | 19 #include "base/test/histogram_tester.h" |
18 #include "base/time/time.h" | 20 #include "base/time/time.h" |
19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" | 21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" |
20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
igurator_test_utils.h" | 22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
igurator_test_utils.h" |
21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_muta
ble_config_values.h" | 23 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_muta
ble_config_values.h" |
22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice.h" | 24 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv
ice.h" |
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 "DataReductionProxy.AutoLoFiAccuracy.Unknown", 3, 1); | 1196 "DataReductionProxy.AutoLoFiAccuracy.Unknown", 3, 1); |
1195 | 1197 |
1196 // Make sure that all buckets contain exactly one value. | 1198 // Make sure that all buckets contain exactly one value. |
1197 for (size_t bucket = 0; bucket < 4; ++bucket) { | 1199 for (size_t bucket = 0; bucket < 4; ++bucket) { |
1198 histogram_tester.ExpectBucketCount( | 1200 histogram_tester.ExpectBucketCount( |
1199 "DataReductionProxy.AutoLoFiAccuracy.Unknown", bucket, 1); | 1201 "DataReductionProxy.AutoLoFiAccuracy.Unknown", bucket, 1); |
1200 } | 1202 } |
1201 } | 1203 } |
1202 | 1204 |
1203 } // namespace data_reduction_proxy | 1205 } // namespace data_reduction_proxy |
OLD | NEW |