Add embedder test for FFL_ComboBox::GetSelectExportText()

Change-Id: If4dfd8d187ccf0b0a5ef9e52adfc7a67cfaf6409
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/100072
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/fpdfsdk/formfiller/cffl_combobox.h b/fpdfsdk/formfiller/cffl_combobox.h
index 724e6ac..2b1a306 100644
--- a/fpdfsdk/formfiller/cffl_combobox.h
+++ b/fpdfsdk/formfiller/cffl_combobox.h
@@ -55,8 +55,9 @@
   // CPWL_Wnd::ProviderIface:
   void OnSetFocusForEdit(CPWL_Edit* pEdit) override;
 
- private:
   WideString GetSelectExportText();
+
+ private:
   CPWL_ComboBox* GetPWLComboBox(const CPDFSDK_PageView* pPageView) const;
   CPWL_ComboBox* CreateOrUpdatePWLComboBox(const CPDFSDK_PageView* pPageView);
 
diff --git a/fpdfsdk/formfiller/cffl_combobox_embeddertest.cpp b/fpdfsdk/formfiller/cffl_combobox_embeddertest.cpp
index 9201e78..7444692 100644
--- a/fpdfsdk/formfiller/cffl_combobox_embeddertest.cpp
+++ b/fpdfsdk/formfiller/cffl_combobox_embeddertest.cpp
@@ -9,7 +9,9 @@
 
 class CFFLComboBoxEmbedderTest : public CPWLComboBoxEmbedderTest {};
 
-TEST_F(CFFLComboBoxEmbedderTest, PlaceHolder) {
+TEST_F(CFFLComboBoxEmbedderTest, ExportText) {
   FormFillerAndWindowSetup(GetCPDFSDKAnnotNormal());
-  EXPECT_TRUE(GetCFFLFormField());
+  auto* pComboBox = static_cast<CFFL_ComboBox*>(GetCFFLFormField());
+  ASSERT_TRUE(pComboBox);
+  EXPECT_EQ(L"Banana", pComboBox->GetSelectExportText());
 }