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

Unified Diff: components/metrics/leak_detector/leak_detector_unittest.cc

Issue 2012393002: Leak detector posts notifications to task runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CHECK -> EXPECT_TRUE Created 4 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 | « components/metrics/leak_detector/leak_detector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/leak_detector/leak_detector_unittest.cc
diff --git a/components/metrics/leak_detector/leak_detector_unittest.cc b/components/metrics/leak_detector/leak_detector_unittest.cc
index 58ad7d60bace9cf5beeaf522a3528eabdb5e0a9d..ef0efea6dc586ea0a43bccb0e1634178c88bc086 100644
--- a/components/metrics/leak_detector/leak_detector_unittest.cc
+++ b/components/metrics/leak_detector/leak_detector_unittest.cc
@@ -9,6 +9,7 @@
#include "base/allocator/allocator_extension.h"
#include "base/macros.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -75,7 +76,8 @@ class LeakDetectorTest : public ::testing::Test {
params.set_call_stack_suspicion_threshold(
kDefaultCallStackSuspicionThreshold);
- detector_->Init(params);
+ EXPECT_TRUE(base::ThreadTaskRunnerHandle::IsSet());
+ detector_->Init(params, base::ThreadTaskRunnerHandle::Get());
}
protected:
« no previous file with comments | « components/metrics/leak_detector/leak_detector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698