diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-01-11 16:31:27 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-11 21:45:02 +0000 |
commit | 96f482c9cd3c99425fd3422251903b1218253c66 (patch) | |
tree | 5d089e55f47ab5e46b993026a5f961b44fed04e9 /testing | |
parent | a63dd01d2fdda06f96e6188dbc3b415447bf2bc9 (diff) | |
download | pdfium-96f482c9cd3c99425fd3422251903b1218253c66.tar.xz |
Convert FDE CSS enums to enum classes.
This CL updates the possible FDE CSS enums to enum classes and fixes up any
instances of incorrect values being used. A few other cleanups and changes
were needed to complete the conversion.
Change-Id: Ibcca5229a9ca8de1f4beb6462535f61705fd4f8c
Reviewed-on: https://pdfium-review.googlesource.com/2170
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libfuzzer/pdf_css_fuzzer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/libfuzzer/pdf_css_fuzzer.cc b/testing/libfuzzer/pdf_css_fuzzer.cc index 247c9b9245..4a45a03f5f 100644 --- a/testing/libfuzzer/pdf_css_fuzzer.cc +++ b/testing/libfuzzer/pdf_css_fuzzer.cc @@ -22,10 +22,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { CFDE_CSSSyntaxParser parser; parser.Init(stream, 1024); - FDE_CSSSYNTAXSTATUS status = parser.DoSyntaxParse(); - while (status != FDE_CSSSYNTAXSTATUS_Error && - status != FDE_CSSSYNTAXSTATUS_EOS) + FDE_CSSSyntaxStatus status; + do { status = parser.DoSyntaxParse(); - + } while (status != FDE_CSSSyntaxStatus::Error && + status != FDE_CSSSyntaxStatus::EOS); return 0; } |