Index: fpdfsdk/fsdk_baseform_embeddertest.cpp |
diff --git a/fpdfsdk/fsdk_baseform_embeddertest.cpp b/fpdfsdk/fsdk_baseform_embeddertest.cpp |
index c87073d38b3f65ee28f681e7d7ace34eaf88535f..53611ae69847a717553ee6159b8ddb0f7be3d2ac 100644 |
--- a/fpdfsdk/fsdk_baseform_embeddertest.cpp |
+++ b/fpdfsdk/fsdk_baseform_embeddertest.cpp |
@@ -42,7 +42,8 @@ TEST_F(FSDKBaseFormEmbeddertest, CBA_AnnotIterator) { |
CPDFSDK_Document::FromFPDFFormHandle(form_handle()); |
{ |
// Page 0 specifies "row order". |
- CBA_AnnotIterator iter(pSDKDoc->GetPageView(0), "Widget"); |
+ CBA_AnnotIterator iter(pSDKDoc->GetPageView(0), |
+ CPDF_Annot::Subtype::WIDGET); |
CPDFSDK_Annot* pAnnot = iter.GetFirstAnnot(); |
CheckRect(pAnnot->GetRect(), RightTop); |
pAnnot = iter.GetNextAnnot(pAnnot); |
@@ -67,7 +68,8 @@ TEST_F(FSDKBaseFormEmbeddertest, CBA_AnnotIterator) { |
} |
{ |
// Page 1 specifies "column order" |
- CBA_AnnotIterator iter(pSDKDoc->GetPageView(1), "Widget"); |
+ CBA_AnnotIterator iter(pSDKDoc->GetPageView(1), |
+ CPDF_Annot::Subtype::WIDGET); |
CPDFSDK_Annot* pAnnot = iter.GetFirstAnnot(); |
CheckRect(pAnnot->GetRect(), RightTop); |
pAnnot = iter.GetNextAnnot(pAnnot); |
@@ -92,7 +94,8 @@ TEST_F(FSDKBaseFormEmbeddertest, CBA_AnnotIterator) { |
} |
{ |
// Page 2 specifies "struct order" |
- CBA_AnnotIterator iter(pSDKDoc->GetPageView(2), "Widget"); |
+ CBA_AnnotIterator iter(pSDKDoc->GetPageView(2), |
+ CPDF_Annot::Subtype::WIDGET); |
CPDFSDK_Annot* pAnnot = iter.GetFirstAnnot(); |
CheckRect(pAnnot->GetRect(), LeftBottom); |
pAnnot = iter.GetNextAnnot(pAnnot); |