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

Unified Diff: content/browser/browser_thread_unittest.cc

Issue 2721223004: Fix for BrowserThreadTest tests (Closed)
Patch Set: Applied nit comment 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_thread_unittest.cc
diff --git a/content/browser/browser_thread_unittest.cc b/content/browser/browser_thread_unittest.cc
index 71cd598236d48faa34b99602ace654d57e3b0eb8..68f6a96425e4775a929bfd2c71792d1e0a9b24cd 100644
--- a/content/browser/browser_thread_unittest.cc
+++ b/content/browser/browser_thread_unittest.cc
@@ -40,6 +40,10 @@ class BrowserThreadTest : public testing::Test {
void TearDown() override {
StopUIThread();
file_thread_->Stop();
+ ui_thread_ = nullptr;
+ file_thread_ = nullptr;
+ BrowserThreadImpl::ResetGlobalsForTesting(BrowserThread::UI);
+ BrowserThreadImpl::ResetGlobalsForTesting(BrowserThread::FILE);
}
static void BasicFunction(base::MessageLoop* message_loop) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698