Add a test for CCodec_ProgressiveDecoder.

Adapted from the XFA GIF codec fuzzer.

BUG=chromium:895009

Change-Id: I39b2294b1703f1964efbb30a79dcb8c2517c1bbc
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/55152
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fxcodec/BUILD.gn b/core/fxcodec/BUILD.gn
index 0617ef8..8f4d7b8 100644
--- a/core/fxcodec/BUILD.gn
+++ b/core/fxcodec/BUILD.gn
@@ -146,11 +146,15 @@
   ]
   pdfium_root_dir = "../../"
 
-  if (pdf_enable_xfa && pdf_enable_xfa_gif) {
-    sources += [
-      "gif/cfx_gifcontext_unittest.cpp",
-      "gif/cfx_lzwdecompressor_unittest.cpp",
-    ]
+  if (pdf_enable_xfa) {
+    sources += [ "codec/ccodec_progressivedecoder_unittest.cpp" ]
+    deps += [ "../fxge" ]
+    if (pdf_enable_xfa_gif) {
+      sources += [
+        "gif/cfx_gifcontext_unittest.cpp",
+        "gif/cfx_lzwdecompressor_unittest.cpp",
+      ]
+    }
   }
 }