| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ios/chrome/test/app/histogram_test_util.h" | 5 #import "ios/chrome/test/app/histogram_test_util.h" |
| 6 | 6 |
| 7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "base/metrics/histogram_samples.h" | 11 #include "base/metrics/histogram_samples.h" |
| 12 #include "base/metrics/metrics_hashes.h" | 12 #include "base/metrics/metrics_hashes.h" |
| 13 #include "base/metrics/sample_map.h" | 13 #include "base/metrics/sample_map.h" |
| 14 #include "base/metrics/statistics_recorder.h" | 14 #include "base/metrics/statistics_recorder.h" |
| 15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 failure_block( | 178 failure_block( |
| 179 [NSString stringWithFormat:@"Histogram \"%s\" doe not have the " | 179 [NSString stringWithFormat:@"Histogram \"%s\" doe not have the " |
| 180 "right total number of samples(%d). It has " | 180 "right total number of samples(%d). It has " |
| 181 "(%d).", | 181 "(%d).", |
| 182 name.c_str(), expected_count, actual_count]); | 182 name.c_str(), expected_count, actual_count]); |
| 183 } | 183 } |
| 184 return NO; | 184 return NO; |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace chrome_test_util | 187 } // namespace chrome_test_util |
| OLD | NEW |