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 "components/metrics/leak_detector/leak_detector.h" | 5 #include "components/metrics/leak_detector/leak_detector.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
| 9 #include "base/allocator/allocator_extension.h" |
9 #include "base/macros.h" | 10 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "content/public/test/test_browser_thread_bundle.h" | 12 #include "content/public/test/test_browser_thread_bundle.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 | 14 |
14 namespace metrics { | 15 namespace metrics { |
15 | 16 |
16 namespace { | 17 namespace { |
17 | 18 |
18 // Default values for LeakDetector params. See header file for the meaning of | 19 // Default values for LeakDetector params. See header file for the meaning of |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 for (const TestObserver* obs : {&obs1, &obs2, &obs3}) { | 116 for (const TestObserver* obs : {&obs1, &obs2, &obs3}) { |
116 EXPECT_EQ(6U, obs->reports().size()); | 117 EXPECT_EQ(6U, obs->reports().size()); |
117 for (const auto& report : {reports1[0], reports1[1], reports1[2], | 118 for (const auto& report : {reports1[0], reports1[1], reports1[2], |
118 reports2[0], reports2[1], reports2[2]}) { | 119 reports2[0], reports2[1], reports2[2]}) { |
119 EXPECT_TRUE(obs->reports().find(report) != obs->reports().end()); | 120 EXPECT_TRUE(obs->reports().find(report) != obs->reports().end()); |
120 } | 121 } |
121 } | 122 } |
122 } | 123 } |
123 | 124 |
124 } // namespace metrics | 125 } // namespace metrics |
OLD | NEW |