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

Side by Side Diff: base/test/histogram_tester.cc

Issue 1544113002: Switch to standard integer types in base/test/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « base/test/histogram_tester.h ('k') | base/test/launcher/test_launcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/test/histogram_tester.h" 5 #include "base/test/histogram_tester.h"
6 6
7 #include <stddef.h>
8
7 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
8 #include "base/metrics/histogram_samples.h" 10 #include "base/metrics/histogram_samples.h"
9 #include "base/metrics/metrics_hashes.h" 11 #include "base/metrics/metrics_hashes.h"
10 #include "base/metrics/sample_map.h" 12 #include "base/metrics/sample_map.h"
11 #include "base/metrics/statistics_recorder.h" 13 #include "base/metrics/statistics_recorder.h"
12 #include "base/stl_util.h" 14 #include "base/stl_util.h"
13 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
14 16
15 namespace base { 17 namespace base {
16 18
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 171
170 bool Bucket::operator==(const Bucket& other) const { 172 bool Bucket::operator==(const Bucket& other) const {
171 return min == other.min && count == other.count; 173 return min == other.min && count == other.count;
172 } 174 }
173 175
174 void PrintTo(const Bucket& bucket, std::ostream* os) { 176 void PrintTo(const Bucket& bucket, std::ostream* os) {
175 *os << "Bucket " << bucket.min << ": " << bucket.count; 177 *os << "Bucket " << bucket.min << ": " << bucket.count;
176 } 178 }
177 179
178 } // namespace base 180 } // namespace base
OLDNEW
« no previous file with comments | « base/test/histogram_tester.h ('k') | base/test/launcher/test_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698