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

Unified Diff: base/trace_event/memory_dump_manager_unittest.cc

Issue 2865243003: memory-infra: Rename Enable/Disable in MemoryDumpManager. (Closed)
Patch Set: fix commet Created 3 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
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 a75eab2f7cabfde0f2785b1b0cfd5d0abea56f20..78d1870126dbe3606b88e0f7aa5424d7378b9f00 100644
--- a/base/trace_event/memory_dump_manager_unittest.cc
+++ b/base/trace_event/memory_dump_manager_unittest.cc
@@ -1312,7 +1312,7 @@ TEST_F(MemoryDumpManagerTest, DumpWithTracingDisabled) {
const TraceConfig::MemoryDumpConfig& memory_dump_config =
trace_config.memory_dump_config();
- mdm_->Enable(memory_dump_config);
+ mdm_->SetupForTracing(memory_dump_config);
EXPECT_CALL(global_dump_handler_, RequestGlobalMemoryDump(_, _)).Times(3);
EXPECT_CALL(mdp, OnMemoryDump(_, _)).Times(3).WillRepeatedly(Return(true));
@@ -1325,7 +1325,7 @@ TEST_F(MemoryDumpManagerTest, DumpWithTracingDisabled) {
// successful we also managed to add the dump to the trace.
EXPECT_FALSE(last_callback_success_);
- mdm_->Disable();
+ mdm_->TeardownForTracing();
mdm_->UnregisterDumpProvider(&mdp);
}

Powered by Google App Engine
This is Rietveld 408576698