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

Side by Side Diff: printing/pdf_metafile_mac_unittest.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | « printing/pdf_metafile_mac.cc ('k') | printing/print_settings.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/pdf_metafile_mac.h" 5 #include "printing/pdf_metafile_mac.h"
6 6
7 #import <ApplicationServices/ApplicationServices.h> 7 #import <ApplicationServices/ApplicationServices.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "gfx/rect.h"
13 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "ui/gfx/rect.h"
14 14
15 TEST(PdfMetafileTest, Pdf) { 15 TEST(PdfMetafileTest, Pdf) {
16 // Test in-renderer constructor. 16 // Test in-renderer constructor.
17 printing::PdfMetafile pdf; 17 printing::PdfMetafile pdf;
18 EXPECT_TRUE(pdf.Init() != NULL); 18 EXPECT_TRUE(pdf.Init() != NULL);
19 19
20 // Render page 1 at origin (10.0, 10.0). 20 // Render page 1 at origin (10.0, 10.0).
21 gfx::Point origin_1(10.0f, 10.0f); 21 gfx::Point origin_1(10.0f, 10.0f);
22 gfx::Size size_1(540, 720); 22 gfx::Size size_1(540, 720);
23 pdf.StartPage(size_1, origin_1, 1.25); 23 pdf.StartPage(size_1, origin_1, 1.25);
(...skipping 29 matching lines...) Expand all
53 53
54 // Test that the PDF is correctly reconstructed. 54 // Test that the PDF is correctly reconstructed.
55 EXPECT_EQ(2U, pdf2.GetPageCount()); 55 EXPECT_EQ(2U, pdf2.GetPageCount());
56 gfx::Size page_size = pdf2.GetPageBounds(1).size(); 56 gfx::Size page_size = pdf2.GetPageBounds(1).size();
57 EXPECT_EQ(540, page_size.width()); 57 EXPECT_EQ(540, page_size.width());
58 EXPECT_EQ(720, page_size.height()); 58 EXPECT_EQ(720, page_size.height());
59 page_size = pdf2.GetPageBounds(2).size(); 59 page_size = pdf2.GetPageBounds(2).size();
60 EXPECT_EQ(720, page_size.width()); 60 EXPECT_EQ(720, page_size.width());
61 EXPECT_EQ(540, page_size.height()); 61 EXPECT_EQ(540, page_size.height());
62 } 62 }
OLDNEW
« no previous file with comments | « printing/pdf_metafile_mac.cc ('k') | printing/print_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698