summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fsdk_baseform_embeddertest.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-02-26 13:09:42 -0800
committerTom Sepez <tsepez@chromium.org>2016-02-26 13:09:42 -0800
commit3b8fdd34bdf57ec45291b77008a43249f838efcb (patch)
treeb65090a7c1fbedcda6499c3be4ffcaf8453e9e11 /fpdfsdk/src/fsdk_baseform_embeddertest.cpp
parent8ba5b59356d506d3b9e976e7422e69bbd5bec8d6 (diff)
downloadpdfium-3b8fdd34bdf57ec45291b77008a43249f838efcb.tar.xz
Replace CPDF_Rect and CPDF_Point with CFX types.
Too many rectangle types. Remove CPDF_Rect #define, and make an equivalent point type in CFX, but stop short of consolidating the N different forms of rectangles in CFX. Also banish PDF_ClipFloat to the one .cpp file that needs it, since it was in the vicinity of the .h file changes. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1740923003 .
Diffstat (limited to 'fpdfsdk/src/fsdk_baseform_embeddertest.cpp')
-rw-r--r--fpdfsdk/src/fsdk_baseform_embeddertest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/src/fsdk_baseform_embeddertest.cpp b/fpdfsdk/src/fsdk_baseform_embeddertest.cpp
index 109b22f3b5..4fd3bb785c 100644
--- a/fpdfsdk/src/fsdk_baseform_embeddertest.cpp
+++ b/fpdfsdk/src/fsdk_baseform_embeddertest.cpp
@@ -13,7 +13,7 @@
namespace {
-void CheckRect(const CPDF_Rect& actual, const CPDF_Rect& expected) {
+void CheckRect(const CFX_FloatRect& actual, const CFX_FloatRect& expected) {
EXPECT_EQ(expected.left, actual.left);
EXPECT_EQ(expected.bottom, actual.bottom);
EXPECT_EQ(expected.right, actual.right);
@@ -30,10 +30,10 @@ TEST_F(FSDKBaseFormEmbeddertest, CBA_AnnotIterator) {
EXPECT_TRUE(LoadPage(1));
EXPECT_TRUE(LoadPage(2));
- CPDF_Rect LeftBottom(200, 200, 220, 220);
- CPDF_Rect RightBottom(400, 201, 420, 221);
- CPDF_Rect LeftTop(201, 400, 221, 420);
- CPDF_Rect RightTop(401, 401, 421, 421);
+ CFX_FloatRect LeftBottom(200, 200, 220, 220);
+ CFX_FloatRect RightBottom(400, 201, 420, 221);
+ CFX_FloatRect LeftTop(201, 400, 221, 420);
+ CFX_FloatRect RightTop(401, 401, 421, 421);
CPDFSDK_Document* pSDKDoc =
CPDFSDK_Document::FromFPDFFormHandle(form_handle());