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

Side by Side Diff: base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc

Issue 1546033002: Switch to standard integer types in base/trace_event/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 <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
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
OLDNEW
« no previous file with comments | « base/trace_event/heap_profiler_allocation_context.h ('k') | base/trace_event/heap_profiler_allocation_register.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698