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

Unified Diff: base/trace_event/memory_dump_manager_unittest.cc

Issue 2865243003: memory-infra: Rename Enable/Disable in MemoryDumpManager. (Closed)
Patch Set: rebase 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
« no previous file with comments | « base/trace_event/memory_dump_manager.cc ('k') | base/trace_event/memory_tracing_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c1e9befc5e3e0d8e6a5896d0d8617163bb9840e5..dbb16a691dffc84fe4fe03eaa6c8587acdb14c4f 100644
--- a/base/trace_event/memory_dump_manager_unittest.cc
+++ b/base/trace_event/memory_dump_manager_unittest.cc
@@ -1258,7 +1258,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));
@@ -1271,7 +1271,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);
}
« no previous file with comments | « base/trace_event/memory_dump_manager.cc ('k') | base/trace_event/memory_tracing_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698