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

Unified Diff: chrome/test/base/testing_io_thread_state.cc

Issue 1052373008: [chrome/test] favor DCHECK_CURRENTLY_ON for better logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | chrome/test/base/tracing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_io_thread_state.cc
diff --git a/chrome/test/base/testing_io_thread_state.cc b/chrome/test/base/testing_io_thread_state.cc
index e79423fb67954f5baa05b86f75190734b01330f9..30b9069805556229a074c0c2b53f6dedf82d43e5 100644
--- a/chrome/test/base/testing_io_thread_state.cc
+++ b/chrome/test/base/testing_io_thread_state.cc
@@ -79,7 +79,7 @@ TestingIOThreadState::~TestingIOThreadState() {
}
void TestingIOThreadState::Initialize(const base::Closure& done) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
io_thread_state_->SetGlobalsForTesting(new IOThread::Globals());
@@ -87,7 +87,7 @@ void TestingIOThreadState::Initialize(const base::Closure& done) {
}
void TestingIOThreadState::Shutdown(const base::Closure& done) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
delete io_thread_state_->globals();
io_thread_state_->SetGlobalsForTesting(NULL);
« no previous file with comments | « no previous file | chrome/test/base/tracing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698