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_usage/android/traffic_stats_amortizer.h" | 5 #include "components/data_usage/android/traffic_stats_amortizer.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <stdint.h> | 8 #include <stdint.h> |
8 | 9 |
9 #include <string> | 10 #include <string> |
10 | 11 |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
15 #include "base/metrics/histogram_base.h" | 16 #include "base/metrics/histogram_base.h" |
16 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 1000 * kExpectedBufSize, 1); | 669 1000 * kExpectedBufSize, 1); |
669 histogram_tester.ExpectUniqueSample(kAmortizationDelayHistogram, 0, 1); | 670 histogram_tester.ExpectUniqueSample(kAmortizationDelayHistogram, 0, 1); |
670 histogram_tester.ExpectUniqueSample(kBufferSizeOnFlushHistogram, | 671 histogram_tester.ExpectUniqueSample(kBufferSizeOnFlushHistogram, |
671 kExpectedBufSize, 1); | 672 kExpectedBufSize, 1); |
672 } | 673 } |
673 | 674 |
674 } // namespace | 675 } // namespace |
675 | 676 |
676 } // namespace android | 677 } // namespace android |
677 } // namespace data_usage | 678 } // namespace data_usage |
OLD | NEW |