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

Unified Diff: printing/printing_context_win_unittest.cc

Issue 2114583002: Windows: Make it possible to print text with GDI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again, resolve conflicts Created 4 years, 4 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/printing_context_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_win_unittest.cc
diff --git a/printing/printing_context_win_unittest.cc b/printing/printing_context_win_unittest.cc
index fc6fee0ced3d791175a89f528d85f47770aab0d8..088873614d2e31d9bef988a265da5cdf3e698e0c 100644
--- a/printing/printing_context_win_unittest.cc
+++ b/printing/printing_context_win_unittest.cc
@@ -40,6 +40,7 @@ class PrintingContextTest : public PrintingTest<testing::Test>,
};
namespace {
+
struct FreeHandleTraits {
typedef HANDLE Handle;
static void CloseHandle(HANDLE handle) { GlobalFree(handle); }
@@ -49,12 +50,13 @@ struct FreeHandleTraits {
typedef base::win::GenericScopedHandle<FreeHandleTraits,
base::win::DummyVerifierTraits>
ScopedGlobalAlloc;
-}
-class MockPrintingContextWin : public PrintingContextSytemDialogWin {
+} // namespace
+
+class MockPrintingContextWin : public PrintingContextSystemDialogWin {
public:
- MockPrintingContextWin(Delegate* delegate)
- : PrintingContextSytemDialogWin(delegate) {}
+ explicit MockPrintingContextWin(Delegate* delegate)
+ : PrintingContextSystemDialogWin(delegate) {}
protected:
// This is a fake PrintDlgEx implementation that sets the right fields in
« no previous file with comments | « printing/printing_context_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698