Index: base/trace_event/memory_dump_manager_unittest.cc |
diff --git a/base/trace_event/memory_dump_manager_unittest.cc b/base/trace_event/memory_dump_manager_unittest.cc |
index 9806c5008ec4bd563b33b6e9278f90c5e5729872..fe1b2fe5ac8a1e9fd3102af8b4488a6cdce4d859 100644 |
--- a/base/trace_event/memory_dump_manager_unittest.cc |
+++ b/base/trace_event/memory_dump_manager_unittest.cc |
@@ -980,17 +980,17 @@ |
.WillByDefault(Return()); |
// Enabling memory-infra with the legacy TraceConfig (category filter) in |
- // a coordinator process should enable periodic dumps. |
- EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory); |
- EXPECT_TRUE(IsPeriodicDumpingEnabled()); |
+ // a coordinator process should not enable periodic dumps. |
+ EnableTracingWithLegacyCategories(MemoryDumpManager::kTraceCategory); |
+ EXPECT_FALSE(IsPeriodicDumpingEnabled()); |
DisableTracing(); |
// Enabling memory-infra with the new (JSON) TraceConfig in a coordinator |
- // process without specifying any "memory_dump_config" section should enable |
+ // process while specifying a "memory_dump_config" section should enable |
// periodic dumps. This is to preserve the behavior chrome://tracing UI, that |
- // is: ticking memory-infra should dump periodically with the default config. |
+ // is: ticking memory-infra should dump periodically with an explicit config. |
EnableTracingWithTraceConfig( |
- TraceConfigMemoryTestUtil::GetTraceConfig_NoTriggers()); |
+ TraceConfigMemoryTestUtil::GetTraceConfig_PeriodicTriggers(100, 5)); |
EXPECT_TRUE(IsPeriodicDumpingEnabled()); |
DisableTracing(); |