Add small flate decode unit test.
[pdfium.git] / BUILD.gn
index 93a6c06..d6268a4 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -26,10 +26,10 @@ config("pdfium_config") {
   }
 
   if (is_linux) {
-    if (cpu_arch == "x64") {
+    if (current_cpu == "x64") {
       defines += [ "_FX_CPU_=_FX_X64_" ]
       cflags += [ "-fPIC" ]
-    } else if (cpu_arch == "x86") {
+    } else if (current_cpu == "x86") {
       defines += [ "_FX_CPU_=_FX_X86_" ]
     }
   }
@@ -800,6 +800,7 @@ static_library("formfiller") {
 
 test("pdfium_unittests") {
   sources = [
+    "core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_unittest.cpp",
     "core/src/fxcrt/fx_basic_bstring_unittest.cpp",
     "core/src/fxcrt/fx_basic_wstring_unittest.cpp",
     "testing/fx_string_testhelpers.cpp",