diff options
author | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-01 16:06:25 +0000 |
---|---|---|
committer | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-01 16:06:25 +0000 |
commit | 830cf7481fce9545527467d0b578b09baf0e6bb4 (patch) | |
tree | 9fd45614c7e4211af156a6016504229ba5728e5c /printing/emf_win_unittest.cc | |
parent | 00b1a06d7d0b2d1205bd913bb97d341d3e5ae4fb (diff) | |
download | chromium_src-830cf7481fce9545527467d0b578b09baf0e6bb4.zip chromium_src-830cf7481fce9545527467d0b578b09baf0e6bb4.tar.gz chromium_src-830cf7481fce9545527467d0b578b09baf0e6bb4.tar.bz2 |
Added a DCHECK to validate the metafile page count while handling alpha blend transparency.
Added a member variable |page_count_| in emf_win.h to track the pages count.
BUG=none
TEST=windows printing works after code changes.
Review URL: http://codereview.chromium.org/6790002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80167 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/emf_win_unittest.cc')
-rw-r--r-- | printing/emf_win_unittest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/printing/emf_win_unittest.cc b/printing/emf_win_unittest.cc index b401f5b..3ea1282 100644 --- a/printing/emf_win_unittest.cc +++ b/printing/emf_win_unittest.cc @@ -141,6 +141,7 @@ TEST_F(EmfPrintingTest, PageBreak) { EXPECT_TRUE(emf.FinishPage()); --pages; } + EXPECT_EQ(3U, emf.GetPageCount()); EXPECT_TRUE(emf.FinishDocument()); size = emf.GetDataSize(); EXPECT_TRUE(emf.GetDataAsVector(&data)); |