Index: base/trace_event/heap_profiler_allocation_register_unittest.cc |
diff --git a/base/trace_event/heap_profiler_allocation_register_unittest.cc b/base/trace_event/heap_profiler_allocation_register_unittest.cc |
index ceaff6e062fecf3165828350a7a415d11caf30a3..2d5129bc8a13a05bcde6c242b3f85dba48f56407 100644 |
--- a/base/trace_event/heap_profiler_allocation_register_unittest.cc |
+++ b/base/trace_event/heap_profiler_allocation_register_unittest.cc |
@@ -107,8 +107,10 @@ TEST_F(AllocationRegisterTest, DoubleInsertOverwrites) { |
// Find out the cause and ban double insert if possible. |
AllocationRegister reg; |
AllocationContext ctx = AllocationContext::Empty(); |
- StackFrame frame1 = "Foo"; |
- StackFrame frame2 = "Bar"; |
+ StackFrame frame1 = StackFrame::FromTraceEventName("Foo"); |
+ StackFrame frame2 = StackFrame::FromTraceEventName("Bar"); |
+ |
+ ctx.backtrace.frame_count = 1; |
ctx.backtrace.frames[0] = frame1; |
reg.Insert(reinterpret_cast<void*>(1), 11, ctx); |