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

Side by Side Diff: printing/emf_win_unittest.cc

Issue 149203: Fix deps failure (include file was in a multi line comment).... (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "printing/emf_win.h" 5 #include "printing/emf_win.h"
6 6
7 // For quick access. 7 // For quick access.
8 #include <wingdi.h> 8 #include <wingdi.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 hdc = CreateCompatibleDC(NULL); 55 hdc = CreateCompatibleDC(NULL);
56 EXPECT_TRUE(hdc); 56 EXPECT_TRUE(hdc);
57 EXPECT_TRUE(emf.CreateFromData(&data.front(), size)); 57 EXPECT_TRUE(emf.CreateFromData(&data.front(), size));
58 RECT output_rect = {0, 0, 10, 10}; 58 RECT output_rect = {0, 0, 10, 10};
59 EXPECT_TRUE(emf.Playback(hdc, &output_rect)); 59 EXPECT_TRUE(emf.Playback(hdc, &output_rect));
60 EXPECT_TRUE(DeleteDC(hdc)); 60 EXPECT_TRUE(DeleteDC(hdc));
61 } 61 }
62 62
63 // TODO(sverrir): Re-enable after win_printing_context has been moved here. 63 // TODO(sverrir): Re-enable after win_printing_context has been moved here.
64 /* 64 /*
65 #include "chrome/browser/printing/win_printing_context.h" 65
66 #include "chrome/common/chrome_paths.h" 66 // DEPS check fails even if include is in a multi line comment:
67 // #include "chrome/browser/printing/win_printing_context.h"
68 // #include "chrome/common/chrome_paths.h"
67 69
68 // Disabled if no "UnitTest printer" exist. Useful to reproduce bug 1186598. 70 // Disabled if no "UnitTest printer" exist. Useful to reproduce bug 1186598.
69 TEST_F(EmfPrintingTest, Enumerate) { 71 TEST_F(EmfPrintingTest, Enumerate) {
70 if (IsTestCaseDisabled()) 72 if (IsTestCaseDisabled())
71 return; 73 return;
72 74
73 printing::PrintSettings settings; 75 printing::PrintSettings settings;
74 76
75 // My test case is a HP Color LaserJet 4550 PCL. 77 // My test case is a HP Color LaserJet 4550 PCL.
76 settings.set_device_name(L"UnitTest Printer"); 78 settings.set_device_name(L"UnitTest Printer");
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // If you get this assert, you need to lookup iType in wingdi.h. It starts 110 // If you get this assert, you need to lookup iType in wingdi.h. It starts
109 // with EMR_HEADER. 111 // with EMR_HEADER.
110 EMR_HEADER; 112 EMR_HEADER;
111 EXPECT_TRUE(itr->SafePlayback(NULL)) << 113 EXPECT_TRUE(itr->SafePlayback(NULL)) <<
112 " index: " << index << " type: " << itr->record()->iType; 114 " index: " << index << " type: " << itr->record()->iType;
113 } 115 }
114 context.PageDone(); 116 context.PageDone();
115 context.DocumentDone(); 117 context.DocumentDone();
116 } 118 }
117 */ 119 */
OLDNEW
« 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