| OLD | NEW | 
|---|
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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 | 65 | 
| 66 // DEPS check fails even if include is in a multi line comment: | 66 // DEPS check fails even if include is in a multi line comment: | 
| 67 // #include "chrome/browser/printing/win_printing_context.h" | 67 // #include "printing/printing_context.h" | 
| 68 // #include "chrome/common/chrome_paths.h" | 68 // #include "chrome/common/chrome_paths.h" | 
| 69 | 69 | 
| 70 // Disabled if no "UnitTest printer" exist. Useful to reproduce bug 1186598. | 70 // Disabled if no "UnitTest printer" exist. Useful to reproduce bug 1186598. | 
| 71 TEST_F(EmfPrintingTest, Enumerate) { | 71 TEST_F(EmfPrintingTest, Enumerate) { | 
| 72   if (IsTestCaseDisabled()) | 72   if (IsTestCaseDisabled()) | 
| 73     return; | 73     return; | 
| 74 | 74 | 
| 75   printing::PrintSettings settings; | 75   printing::PrintSettings settings; | 
| 76 | 76 | 
| 77   // My test case is a HP Color LaserJet 4550 PCL. | 77   // My test case is a HP Color LaserJet 4550 PCL. | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 110     // 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 | 
| 111     // with EMR_HEADER. | 111     // with EMR_HEADER. | 
| 112     EMR_HEADER; | 112     EMR_HEADER; | 
| 113     EXPECT_TRUE(itr->SafePlayback(NULL)) << | 113     EXPECT_TRUE(itr->SafePlayback(NULL)) << | 
| 114         " index: " << index << " type: " << itr->record()->iType; | 114         " index: " << index << " type: " << itr->record()->iType; | 
| 115   } | 115   } | 
| 116   context.PageDone(); | 116   context.PageDone(); | 
| 117   context.DocumentDone(); | 117   context.DocumentDone(); | 
| 118 } | 118 } | 
| 119 */ | 119 */ | 
| OLD | NEW | 
|---|