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

Unified Diff: base/memory/memory_coordinator_proxy.h

Issue 2726983006: Clean up after each MemoryCoordinatorImpl test (Closed)
Patch Set: Created 3 years, 10 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/memory/memory_coordinator_proxy.h
diff --git a/base/memory/memory_coordinator_proxy.h b/base/memory/memory_coordinator_proxy.h
index 036f126f4c62b451f886bce3a5aa3331d9237f05..2e7d85652d53becd4dcce8b87f665a1c28eb94c8 100644
--- a/base/memory/memory_coordinator_proxy.h
+++ b/base/memory/memory_coordinator_proxy.h
@@ -33,6 +33,10 @@ class BASE_EXPORT MemoryCoordinatorProxy {
// This should be called before any components starts using this proxy.
static void SetMemoryCoordinator(MemoryCoordinator* coordinator);
+ // Reset globals. Used in tests to clean up globals to prevent leaking to the
+ // next test.
+ static void ResetGlobals();
+
// Returns the current memory state.
MemoryState GetCurrentMemoryState() const;
« no previous file with comments | « no previous file | base/memory/memory_coordinator_proxy.cc » ('j') | content/browser/memory/memory_coordinator_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698