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

Unified Diff: printing/emf_win_unittest.cc

Issue 9387027: Revert 121840 - Make scoped dc objects smarter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « chrome/service/cloud_print/print_system_win.cc ('k') | remoting/host/disconnect_window_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/emf_win_unittest.cc
===================================================================
--- printing/emf_win_unittest.cc (revision 121842)
+++ printing/emf_win_unittest.cc (working copy)
@@ -127,7 +127,7 @@
TEST_F(EmfPrintingTest, PageBreak) {
base::win::ScopedCreateDC dc(
CreateDC(L"WINSPOOL", L"UnitTest Printer", NULL, NULL));
- if (!dc.get())
+ if (!dc.Get())
return;
uint32 size;
std::vector<BYTE> data;
@@ -153,11 +153,11 @@
DOCINFO di = {0};
di.cbSize = sizeof(DOCINFO);
di.lpszDocName = L"Test Job";
- int job_id = ::StartDoc(dc.get(), &di);
+ int job_id = ::StartDoc(dc.Get(), &di);
Emf emf;
EXPECT_TRUE(emf.InitFromData(&data.front(), size));
- EXPECT_TRUE(emf.SafePlayback(dc.get()));
- ::EndDoc(dc.get());
+ EXPECT_TRUE(emf.SafePlayback(dc.Get()));
+ ::EndDoc(dc.Get());
// Since presumably the printer is not real, let us just delete the job from
// the queue.
HANDLE printer = NULL;
« no previous file with comments | « chrome/service/cloud_print/print_system_win.cc ('k') | remoting/host/disconnect_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698