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

Side by Side Diff: printing/emf_win_unittest.cc

Issue 6126002: Remove base/scoped_handle_win.h stub and fix up all callers to use the new location and namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include <winspool.h> 9 #include <winspool.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/path_service.h" 14 #include "base/path_service.h"
15 #include "base/scoped_handle_win.h"
16 #include "base/scoped_ptr.h" 15 #include "base/scoped_ptr.h"
17 #include "base/scoped_temp_dir.h" 16 #include "base/scoped_temp_dir.h"
18 #include "base/win/scoped_hdc.h" 17 #include "base/win/scoped_hdc.h"
19 #include "printing/printing_context.h" 18 #include "printing/printing_context.h"
20 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
21 20
22 namespace { 21 namespace {
23 22
24 // This test is automatically disabled if no printer named "UnitTest Printer" is 23 // This test is automatically disabled if no printer named "UnitTest Printer" is
25 // available. 24 // available.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // Playback the data. 188 // Playback the data.
190 hdc = CreateCompatibleDC(NULL); 189 hdc = CreateCompatibleDC(NULL);
191 EXPECT_TRUE(hdc); 190 EXPECT_TRUE(hdc);
192 EXPECT_TRUE(emf.CreateFromFile(metafile_path)); 191 EXPECT_TRUE(emf.CreateFromFile(metafile_path));
193 RECT output_rect = {0, 0, 10, 10}; 192 RECT output_rect = {0, 0, 10, 10};
194 EXPECT_TRUE(emf.Playback(hdc, &output_rect)); 193 EXPECT_TRUE(emf.Playback(hdc, &output_rect));
195 EXPECT_TRUE(DeleteDC(hdc)); 194 EXPECT_TRUE(DeleteDC(hdc));
196 emf.CloseEmf(); 195 emf.CloseEmf();
197 } 196 }
198 197
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698