| 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 056aa2c001d78a62db10b9bd9db7dcd3490305f0..de19ea25b863b269b6659d74da2b9f1c96cfd1a5 100644
|
| --- a/base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc
|
| +++ b/base/trace_event/heap_profiler_allocation_context_tracker_unittest.cc
|
| @@ -27,18 +27,6 @@
|
| const char kFroyo[] = "Froyo";
|
| const char kGingerbread[] = "Gingerbread";
|
|
|
| -const char kFilteringTraceConfig[] =
|
| - "{"
|
| - " \"event_filters\": ["
|
| - " {"
|
| - " \"excluded_categories\": [],"
|
| - " \"filter_args\": {},"
|
| - " \"filter_predicate\": \"heap_profiler_predicate\","
|
| - " \"included_categories\": [\"*\"]"
|
| - " }"
|
| - " ]"
|
| - "}";
|
| -
|
| // Asserts that the fixed-size array |expected_backtrace| matches the backtrace
|
| // in |AllocationContextTracker::GetContextSnapshot|.
|
| template <size_t N>
|
| @@ -80,15 +68,15 @@
|
| AllocationContextTracker::CaptureMode::PSEUDO_STACK);
|
| // Enabling memory-infra category sets default memory dump config which
|
| // includes filters for capturing pseudo stack.
|
| - TraceConfig config(kFilteringTraceConfig);
|
| - TraceLog::GetInstance()->SetEnabled(config, TraceLog::FILTERING_MODE);
|
| + TraceConfig config(MemoryDumpManager::kTraceCategory, "");
|
| + TraceLog::GetInstance()->SetEnabled(config, TraceLog::RECORDING_MODE);
|
| AllocationContextTracker::SetCurrentThreadName(kThreadName);
|
| }
|
|
|
| void TearDown() override {
|
| AllocationContextTracker::SetCaptureMode(
|
| AllocationContextTracker::CaptureMode::DISABLED);
|
| - TraceLog::GetInstance()->SetDisabled(TraceLog::FILTERING_MODE);
|
| + TraceLog::GetInstance()->SetDisabled();
|
| }
|
| };
|
|
|
|
|