blob: 85123334a48f042e927d7a2762934ab4544da993 [file] [log] [blame]
// Copyright 2019 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 "pdf/test/test_utils.h"
#include "ppapi/cpp/rect.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace chrome_pdf {
void CompareRect(const pp::Rect& expected_rect, const pp::Rect& given_rect) {
EXPECT_EQ(expected_rect.x(), given_rect.x());
EXPECT_EQ(expected_rect.y(), given_rect.y());
EXPECT_EQ(expected_rect.width(), given_rect.width());
EXPECT_EQ(expected_rect.height(), given_rect.height());
}
void CompareRect(const pp::FloatRect& expected_rect,
const pp::FloatRect& given_rect) {
EXPECT_FLOAT_EQ(expected_rect.x(), given_rect.x());
EXPECT_FLOAT_EQ(expected_rect.y(), given_rect.y());
EXPECT_FLOAT_EQ(expected_rect.width(), given_rect.width());
EXPECT_FLOAT_EQ(expected_rect.height(), given_rect.height());
}
} // namespace chrome_pdf