| 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/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 Loading... |
| 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 |
| OLD | NEW |