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

Side by Side Diff: printing/emf_win_unittest.cc

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 years, 7 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 | « net/disk_cache/cache_util_unittest.cc ('k') | remoting/host/host_key_pair_unittest.cc » ('j') | 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) 2011 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/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/scoped_temp_dir.h"
16 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/scoped_temp_dir.h"
17 #include "base/win/scoped_hdc.h" 17 #include "base/win/scoped_hdc.h"
18 #include "printing/printing_context.h" 18 #include "printing/printing_context.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "ui/gfx/point.h" 20 #include "ui/gfx/point.h"
21 #include "ui/gfx/size.h" 21 #include "ui/gfx/size.h"
22 22
23 namespace { 23 namespace {
24 24
25 // This test is automatically disabled if no printer named "UnitTest Printer" is 25 // This test is automatically disabled if no printer named "UnitTest Printer" is
26 // available. 26 // available.
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 HDC hdc = CreateCompatibleDC(NULL); 195 HDC hdc = CreateCompatibleDC(NULL);
196 EXPECT_TRUE(hdc); 196 EXPECT_TRUE(hdc);
197 printing::Emf emf; 197 printing::Emf emf;
198 EXPECT_TRUE(emf.InitFromFile(metafile_path)); 198 EXPECT_TRUE(emf.InitFromFile(metafile_path));
199 RECT output_rect = {0, 0, 10, 10}; 199 RECT output_rect = {0, 0, 10, 10};
200 EXPECT_TRUE(emf.Playback(hdc, &output_rect)); 200 EXPECT_TRUE(emf.Playback(hdc, &output_rect));
201 EXPECT_TRUE(DeleteDC(hdc)); 201 EXPECT_TRUE(DeleteDC(hdc));
202 } 202 }
203 203
204 } // namespace printing 204 } // namespace printing
OLDNEW
« no previous file with comments | « net/disk_cache/cache_util_unittest.cc ('k') | remoting/host/host_key_pair_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698