[M120 Migration][MM] Fix EME AD insert issue
[platform/framework/web/chromium-efl.git] / printing / printed_page_win_unittest.cc
1 // Copyright 2011 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "printing/printed_page_win.h"
6 #include "testing/gtest/include/gtest/gtest.h"
7
8 namespace printing {
9
10 TEST(PrintedPageTest, Shrink) {
11   scoped_refptr<PrintedPage> page = base::MakeRefCounted<PrintedPage>(
12       1, std::unique_ptr<MetafilePlayer>(), gfx::Size(1200, 1200),
13       gfx::Rect(0, 0, 400, 1100));
14   EXPECT_EQ(0.0f, page->shrink_factor());
15   page->set_shrink_factor(0.2f);
16   EXPECT_EQ(0.2f, page->shrink_factor());
17   page->set_shrink_factor(0.7f);
18   EXPECT_EQ(0.7f, page->shrink_factor());
19 }
20
21 }  // namespace printing