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 <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <cstdlib> | 10 #include <cstdlib> |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
18 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
21 #include "base/memory/ref_counted.h" | 21 #include "base/memory/ref_counted.h" |
| 22 #include "base/message_loop/message_loop.h" |
22 #include "base/metrics/field_trial.h" | 23 #include "base/metrics/field_trial.h" |
23 #include "base/run_loop.h" | 24 #include "base/run_loop.h" |
24 #include "base/strings/safe_sprintf.h" | 25 #include "base/strings/safe_sprintf.h" |
25 #include "base/strings/string_number_conversions.h" | 26 #include "base/strings/string_number_conversions.h" |
26 #include "base/strings/string_util.h" | 27 #include "base/strings/string_util.h" |
27 #include "base/test/histogram_tester.h" | 28 #include "base/test/histogram_tester.h" |
28 #include "base/test/simple_test_tick_clock.h" | 29 #include "base/test/simple_test_tick_clock.h" |
29 #include "base/threading/platform_thread.h" | 30 #include "base/threading/platform_thread.h" |
30 #include "base/time/time.h" | 31 #include "base/time/time.h" |
31 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" | 32 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf
ig_test_utils.h" |
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1387 // Sleep to ensure that the delayed task is posted. | 1388 // Sleep to ensure that the delayed task is posted. |
1388 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); | 1389 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); |
1389 RunUntilIdle(); | 1390 RunUntilIdle(); |
1390 histogram_tester.ExpectTotalCount( | 1391 histogram_tester.ExpectTotalCount( |
1391 "DataReductionProxy.LoFi.Accuracy.1.Unknown", 1); | 1392 "DataReductionProxy.LoFi.Accuracy.1.Unknown", 1); |
1392 histogram_tester.ExpectBucketCount( | 1393 histogram_tester.ExpectBucketCount( |
1393 "DataReductionProxy.LoFi.Accuracy.1.Unknown", 0, 1); | 1394 "DataReductionProxy.LoFi.Accuracy.1.Unknown", 0, 1); |
1394 } | 1395 } |
1395 | 1396 |
1396 } // namespace data_reduction_proxy | 1397 } // namespace data_reduction_proxy |
OLD | NEW |