From 706e187ed8be44eb50bdf7024674930a4e10fa45 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 22 Oct 2018 19:34:53 +0000 Subject: Fix timezone inconsistency in document methods test. We do this by adding an override that forces GM time on everyone when run from the test harness. Generalize presubmit warnings so that the new function passes. De-duplicate lambda capture in place of static function. Change-Id: I15b34bea558baf1763476b36f0bca76614984107 Reviewed-on: https://pdfium-review.googlesource.com/c/44390 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- testing/tools/api_check.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'testing/tools/api_check.py') diff --git a/testing/tools/api_check.py b/testing/tools/api_check.py index 934577b21b..da2869f2fe 100755 --- a/testing/tools/api_check.py +++ b/testing/tools/api_check.py @@ -20,9 +20,7 @@ import sys def _IsValidFunctionName(function, filename): if function.startswith('FPDF'): return True - if function == 'FSDK_SetUnSpObjProcessHandler' and filename == 'fpdf_ext.h': - return True - if function == 'FSDK_SetTimeFunction' and filename == 'fpdf_ext.h': + if function.startswith('FSDK_') and filename == 'fpdf_ext.h': return True if function.startswith('FORM_') and filename == 'fpdf_formfill.h': return True -- cgit v1.2.3