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

Side by Side Diff: components/metrics/leak_detector/ranked_list_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 months 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
OLDNEW
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/metrics/leak_detector/ranked_list.h" 5 #include "components/metrics/leak_detector/ranked_list.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <algorithm> 10 #include <algorithm>
8 11
9 #include "base/macros.h" 12 #include "base/macros.h"
10 #include "components/metrics/leak_detector/custom_allocator.h" 13 #include "components/metrics/leak_detector/custom_allocator.h"
11 #include "components/metrics/leak_detector/leak_detector_value_type.h" 14 #include "components/metrics/leak_detector/leak_detector_value_type.h"
12 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
13 16
14 namespace metrics { 17 namespace metrics {
15 namespace leak_detector { 18 namespace leak_detector {
16 19
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 for (const auto& entry : dest_list) { 262 for (const auto& entry : dest_list) {
260 EXPECT_LT(index, arraysize(kExpectedValues)); 263 EXPECT_LT(index, arraysize(kExpectedValues));
261 EXPECT_EQ(kExpectedValues[index].value.size(), entry.value.size()); 264 EXPECT_EQ(kExpectedValues[index].value.size(), entry.value.size());
262 EXPECT_EQ(kExpectedValues[index].count, entry.count); 265 EXPECT_EQ(kExpectedValues[index].count, entry.count);
263 ++index; 266 ++index;
264 } 267 }
265 } 268 }
266 269
267 } // namespace leak_detector 270 } // namespace leak_detector
268 } // namespace metrics 271 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/leak_detector/leak_detector_impl_unittest.cc ('k') | components/metrics/machine_id_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698