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 <stddef.h> |
| 6 |
5 #include <iterator> | 7 #include <iterator> |
6 | 8 |
7 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
8 #include "base/trace_event/heap_profiler_allocation_context.h" | 10 #include "base/trace_event/heap_profiler_allocation_context.h" |
9 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" | 11 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" |
10 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
12 | 14 |
13 namespace base { | 15 namespace base { |
14 namespace trace_event { | 16 namespace trace_event { |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 216 |
215 { | 217 { |
216 AllocationContext ctx = AllocationContextTracker::GetContextSnapshot(); | 218 AllocationContext ctx = AllocationContextTracker::GetContextSnapshot(); |
217 ASSERT_EQ(kCupcake, ctx.backtrace.frames[0]); | 219 ASSERT_EQ(kCupcake, ctx.backtrace.frames[0]); |
218 ASSERT_EQ(kFroyo, ctx.backtrace.frames[11]); | 220 ASSERT_EQ(kFroyo, ctx.backtrace.frames[11]); |
219 } | 221 } |
220 } | 222 } |
221 | 223 |
222 } // namespace trace_event | 224 } // namespace trace_event |
223 } // namespace base | 225 } // namespace base |
OLD | NEW |