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

Side by Side Diff: printing/pdf_metafile_cg_mac_unittest.cc

Issue 1544623002: Switch to standard integer types in printing/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « printing/pdf_metafile_cg_mac.cc ('k') | printing/pdf_metafile_skia.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) 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/pdf_metafile_cg_mac.h" 5 #include "printing/pdf_metafile_cg_mac.h"
6 6
7 #import <ApplicationServices/ApplicationServices.h> 7 #import <ApplicationServices/ApplicationServices.h>
8 #include <stdint.h>
8 9
9 #include <string> 10 #include <string>
10 #include <vector> 11 #include <vector>
11 12
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 #include "ui/gfx/geometry/rect.h" 14 #include "ui/gfx/geometry/rect.h"
14 15
15 namespace printing { 16 namespace printing {
16 17
17 TEST(PdfMetafileCgTest, Pdf) { 18 TEST(PdfMetafileCgTest, Pdf) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 EXPECT_EQ(2U, pdf2.GetPageCount()); 59 EXPECT_EQ(2U, pdf2.GetPageCount());
59 gfx::Size page_size = pdf2.GetPageBounds(1).size(); 60 gfx::Size page_size = pdf2.GetPageBounds(1).size();
60 EXPECT_EQ(540, page_size.width()); 61 EXPECT_EQ(540, page_size.width());
61 EXPECT_EQ(720, page_size.height()); 62 EXPECT_EQ(720, page_size.height());
62 page_size = pdf2.GetPageBounds(2).size(); 63 page_size = pdf2.GetPageBounds(2).size();
63 EXPECT_EQ(720, page_size.width()); 64 EXPECT_EQ(720, page_size.width());
64 EXPECT_EQ(540, page_size.height()); 65 EXPECT_EQ(540, page_size.height());
65 } 66 }
66 67
67 } // namespace printing 68 } // namespace printing
OLDNEW
« no previous file with comments | « printing/pdf_metafile_cg_mac.cc ('k') | printing/pdf_metafile_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698