summaryrefslogtreecommitdiffstats
path: root/printing/printed_page_unittest.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-23 23:21:21 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-23 23:21:21 +0000
commit3cce538ea624ae4fcc0e03a5e1b1c9959954a284 (patch)
tree5c985cbf578dd9786101a602e4e0259c4225ec90 /printing/printed_page_unittest.cc
parente231975b842e70be98485ef15a26ae3c49150155 (diff)
downloadchromium_src-3cce538ea624ae4fcc0e03a5e1b1c9959954a284.zip
chromium_src-3cce538ea624ae4fcc0e03a5e1b1c9959954a284.tar.gz
chromium_src-3cce538ea624ae4fcc0e03a5e1b1c9959954a284.tar.bz2
Cleanup: Remove unused has_visible_overlays variable.
BUG=none TEST=none Review URL: http://codereview.chromium.org/7970021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102611 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_page_unittest.cc')
-rw-r--r--printing/printed_page_unittest.cc24
1 files changed, 8 insertions, 16 deletions
diff --git a/printing/printed_page_unittest.cc b/printing/printed_page_unittest.cc
index 91b2111..1a33d10 100644
--- a/printing/printed_page_unittest.cc
+++ b/printing/printed_page_unittest.cc
@@ -1,12 +1,8 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "printing/printed_page.h"
-
-#include <string>
-#include <vector>
-
#include "testing/gtest/include/gtest/gtest.h"
namespace printing {
@@ -16,11 +12,10 @@ TEST(PrintedPageTest, GetCenteredPageContentRect) {
gfx::Rect page_content;
// No centering.
- page =new PrintedPage(1,
- NULL,
- gfx::Size(1200, 1200),
- gfx::Rect(0, 0, 400, 1100),
- true);
+ page = new PrintedPage(1,
+ NULL,
+ gfx::Size(1200, 1200),
+ gfx::Rect(0, 0, 400, 1100));
page->GetCenteredPageContentRect(gfx::Size(1000, 1000), &page_content);
EXPECT_EQ(0, page_content.x());
EXPECT_EQ(0, page_content.y());
@@ -31,8 +26,7 @@ TEST(PrintedPageTest, GetCenteredPageContentRect) {
page = new PrintedPage(1,
NULL,
gfx::Size(500, 1200),
- gfx::Rect(0, 0, 400, 1100),
- true);
+ gfx::Rect(0, 0, 400, 1100));
page->GetCenteredPageContentRect(gfx::Size(1000, 1000), &page_content);
EXPECT_EQ(250, page_content.x());
EXPECT_EQ(0, page_content.y());
@@ -43,8 +37,7 @@ TEST(PrintedPageTest, GetCenteredPageContentRect) {
page = new PrintedPage(1,
NULL,
gfx::Size(1200, 500),
- gfx::Rect(0, 0, 400, 1100),
- true);
+ gfx::Rect(0, 0, 400, 1100));
page->GetCenteredPageContentRect(gfx::Size(1000, 1000), &page_content);
EXPECT_EQ(0, page_content.x());
EXPECT_EQ(250, page_content.y());
@@ -55,8 +48,7 @@ TEST(PrintedPageTest, GetCenteredPageContentRect) {
page = new PrintedPage(1,
NULL,
gfx::Size(500, 500),
- gfx::Rect(0, 0, 400, 1100),
- true);
+ gfx::Rect(0, 0, 400, 1100));
page->GetCenteredPageContentRect(gfx::Size(1000, 1000), &page_content);
EXPECT_EQ(250, page_content.x());
EXPECT_EQ(250, page_content.y());