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

Unified Diff: base/trace_event/memory_dump_manager_unittest.cc

Issue 2895083004: memory-infra: rename service folder to memory_instrumentation (Closed)
Patch Set: comments 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') | chrome/browser/DEPS » ('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 c641ff061c96fad839194233090b900b956f3ad8..9806c5008ec4bd563b33b6e9278f90c5e5729872 100644
--- a/base/trace_event/memory_dump_manager_unittest.cc
+++ b/base/trace_event/memory_dump_manager_unittest.cc
@@ -247,14 +247,12 @@ class MemoryDumpManagerTest : public testing::Test {
void SetUp() override {
last_callback_success_ = false;
message_loop_.reset(new MessageLoop());
- mdm_.reset(new MemoryDumpManager());
- results_.clear();
- MemoryDumpManager::SetInstanceForTesting(mdm_.get());
+ mdm_ = MemoryDumpManager::CreateInstanceForTesting();
ASSERT_EQ(mdm_.get(), MemoryDumpManager::GetInstance());
+ results_.clear();
}
void TearDown() override {
- MemoryDumpManager::SetInstanceForTesting(nullptr);
mdm_.reset();
message_loop_.reset();
TraceLog::DeleteForTesting();
« no previous file with comments | « base/trace_event/memory_dump_manager.cc ('k') | chrome/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698