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

Unified Diff: printing/printing_context_win.cc

Issue 149288: Re-enable test (disabled while moving printing functionality to printing libr... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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 | « printing/emf_win_unittest.cc ('k') | printing\test\data\test4.emf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_win.cc
===================================================================
--- printing/printing_context_win.cc (revision 20086)
+++ printing/printing_context_win.cc (working copy)
@@ -288,7 +288,10 @@
di.lpszOutput = debug_dump_path.c_str();
}
- DCHECK_EQ(MessageLoop::current()->NestableTasksAllowed(), false);
+ // No message loop running in unit tests.
+ DCHECK(!MessageLoop::current() ? true :
+ !MessageLoop::current()->NestableTasksAllowed());
+
// Begin a print job by calling the StartDoc function.
// NOTE: StartDoc() starts a message loop. That causes a lot of problems with
// IPC. Make sure recursive task processing is disabled.
« no previous file with comments | « printing/emf_win_unittest.cc ('k') | printing\test\data\test4.emf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698