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

Unified Diff: chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc

Issue 2396743002: Leak reports collect information about the memory usage (Closed)
Patch Set: Make the unit tests pass Created 4 years, 2 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: chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
diff --git a/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc b/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
index f900f216d646e3476e2e0019b88a43b0a3012444..23695d6ae71dcb9232bde6b3a527579024251ede 100644
--- a/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
+++ b/chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc
@@ -32,7 +32,10 @@ class TestLeakDetectorController : public LeakDetectorController {
public:
using LeakDetectorController::OnLeaksFound;
- TestLeakDetectorController() {}
+ // This constructor suppresses starting memory metrics job in the superclass.
+ TestLeakDetectorController() {
+ LeakDetectorController::waiting_for_collect_memory_usage_ = true;
Simon Que 2016/10/07 06:24:58 You have the right idea but this is not the best d
mwlodar 2016/10/07 18:54:35 Done.
+ }
private:
DISALLOW_COPY_AND_ASSIGN(TestLeakDetectorController);

Powered by Google App Engine
This is Rietveld 408576698