chromium/pdf/pdf_transform_unittest.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "pdf/pdf_transform.h"

#include "printing/units.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/point_f.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size_f.h"

namespace chrome_pdf {

namespace {

constexpr float kDefaultWidth =;
constexpr float kDefaultHeight =;
constexpr float kDefaultRatio =;
constexpr float kTolerance =;

void ExpectDefaultPortraitBox(const PdfRectangle& box) {}

void ExpectDefaultLandscapeBox(const PdfRectangle& box) {}

void ExpectBoxesAreEqual(const PdfRectangle& expected,
                         const PdfRectangle& actual) {}

void InitializeBoxToInvalidValues(PdfRectangle* box) {}

void InitializeBoxToDefaultPortraitValues(PdfRectangle* box) {}

void InitializeBoxToDefaultLandscapeValue(PdfRectangle* box) {}

}  // namespace

TEST(PdfTransformTest, CalculateScaleFactor) {}

TEST(PdfTransformTest, SetDefaultClipBox) {}

TEST(PdfTransformTest, CalculateMediaBoxAndCropBox) {}

TEST(PdfTransformTest, CalculateClipBoxBoundary) {}

TEST(PdfTransformTest, CalculateScaledClipBoxOffset) {}

TEST(PdfTransformTest, CalculateNonScaledClipBoxOffset) {}

// https://crbug.com/491160 and https://crbug.com/588757
TEST(PdfTransformTest, ReversedMediaBox) {}

}  // namespace chrome_pdf