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/leak_detector_impl.h" | 5 #include "components/metrics/leak_detector/leak_detector_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
| 8 #include <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 | 10 |
10 #include <complex> | 11 #include <complex> |
11 #include <new> | 12 #include <new> |
12 #include <set> | 13 #include <set> |
13 #include <vector> | 14 #include <vector> |
14 | 15 |
15 #include "base/macros.h" | 16 #include "base/macros.h" |
16 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
17 #include "components/metrics/leak_detector/custom_allocator.h" | 18 #include "components/metrics/leak_detector/custom_allocator.h" |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 kStack4.stack[i] <= kMappingAddr + kMappingSize) { | 456 kStack4.stack[i] <= kMappingAddr + kMappingSize) { |
456 EXPECT_EQ(kStack4.stack[i] - kMappingAddr, report2.call_stack()[i]); | 457 EXPECT_EQ(kStack4.stack[i] - kMappingAddr, report2.call_stack()[i]); |
457 } else { | 458 } else { |
458 EXPECT_EQ(kStack4.stack[i], report2.call_stack()[i]); | 459 EXPECT_EQ(kStack4.stack[i], report2.call_stack()[i]); |
459 } | 460 } |
460 } | 461 } |
461 } | 462 } |
462 | 463 |
463 } // namespace leak_detector | 464 } // namespace leak_detector |
464 } // namespace metrics | 465 } // namespace metrics |
OLD | NEW |