diff options
author | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-18 17:52:23 +0000 |
---|---|---|
committer | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-18 17:52:23 +0000 |
commit | edc531f9ec270823787167f70c4c8c1ad45de146 (patch) | |
tree | 32bd3b45f3a93a4f060c82eda8d9c6a669bbd0ee /printing/emf_win_unittest.cc | |
parent | 3e7b5d650e797a288c51e6a74d4595dc0e555d0b (diff) | |
download | chromium_src-edc531f9ec270823787167f70c4c8c1ad45de146.zip chromium_src-edc531f9ec270823787167f70c4c8c1ad45de146.tar.gz chromium_src-edc531f9ec270823787167f70c4c8c1ad45de146.tar.bz2 |
Unifying StartPage across all platforms
Since there is already a getter method for retrieving the context, there is no reason for StartPage to return it. Also the parameter list can be uniform across all platforms. Some arguments are unused in order to achieve this.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/6667069
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78717 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/emf_win_unittest.cc')
-rw-r--r-- | printing/emf_win_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/printing/emf_win_unittest.cc b/printing/emf_win_unittest.cc index 2f4e2ae..a5bd583 100644 --- a/printing/emf_win_unittest.cc +++ b/printing/emf_win_unittest.cc @@ -17,6 +17,8 @@ #include "base/win/scoped_hdc.h" #include "printing/printing_context.h" #include "testing/gtest/include/gtest/gtest.h" +#include "ui/gfx/point.h" +#include "ui/gfx/size.h" namespace { @@ -131,7 +133,7 @@ TEST_F(EmfPrintingTest, PageBreak) { EXPECT_TRUE(emf.context() != NULL); int pages = 3; while (pages) { - EXPECT_TRUE(emf.StartPage()); + EXPECT_TRUE(emf.StartPage(gfx::Size(), gfx::Point(), 1)); ::Rectangle(emf.context(), 10, 10, 190, 190); EXPECT_TRUE(emf.FinishPage()); --pages; |