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

Unified Diff: base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc

Issue 1950313005: [tracing] Move and rename TRACE_EVENT_API_TASK_EXECUTION_EVENT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_missing_task
Patch Set: fix unittest. Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/trace_event/heap_profiler.h ('k') | base/trace_event/trace_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc
diff --git a/base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc b/base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc
index cf2360fe60521abfe9acff842e40d7c18027848f..436f7542e2a491b293ec577a66d719208c838e7e 100644
--- a/base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc
+++ b/base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc
@@ -260,14 +260,14 @@ TEST_F(AllocationContextTrackerTest, TrackTaskContext) {
const char kContext2[] = "context2";
{
// The context from the scoped task event should be used as type name.
- TRACE_EVENT_API_SCOPED_TASK_EXECUTION_EVENT event1(kContext1);
+ TRACE_HEAP_PROFILER_API_SCOPED_TASK_EXECUTION event1(kContext1);
AllocationContext ctx1 =
AllocationContextTracker::GetInstanceForCurrentThread()
->GetContextSnapshot();
ASSERT_EQ(kContext1, ctx1.type_name);
// In case of nested events, the last event's context should be used.
- TRACE_EVENT_API_SCOPED_TASK_EXECUTION_EVENT event2(kContext2);
+ TRACE_HEAP_PROFILER_API_SCOPED_TASK_EXECUTION event2(kContext2);
AllocationContext ctx2 =
AllocationContextTracker::GetInstanceForCurrentThread()
->GetContextSnapshot();
« no previous file with comments | « base/trace_event/heap_profiler.h ('k') | base/trace_event/trace_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698