Create events and expectation for barcode_test.pdf

This adds a test where a known value is used as a seed for generating
a barcode and confirming that the generated barcode is consistent.

BUG=pdfium:1020

Change-Id: I61ed37a8591f0efe40a8d4ab1d6024bb1489ef25
Reviewed-on: https://pdfium-review.googlesource.com/34030
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/testing/SUPPRESSIONS b/testing/SUPPRESSIONS
index cb6b9bf..e6fb750 100644
--- a/testing/SUPPRESSIONS
+++ b/testing/SUPPRESSIONS
@@ -325,7 +325,6 @@
 # xfa_specific
 
 # TODO(rharrison): Create expectations for existing files.
-barcode_test.pdf * * *
 dynamic_list_box_allow_multiple_selection.pdf * * *
 dynamic_password_field_background_fill.pdf * * *
 resolve_nodes.pdf * * *
diff --git a/testing/resources/pixel/xfa_specific/barcode_test.evt b/testing/resources/pixel/xfa_specific/barcode_test.evt
new file mode 100644
index 0000000..0844042
--- /dev/null
+++ b/testing/resources/pixel/xfa_specific/barcode_test.evt
@@ -0,0 +1,10 @@
+mousedown,left,200,95
+mouseup,left,200,95
+charcode,72
+charcode,101
+charcode,108
+charcode,108
+charcode,111
+charcode,33
+mousedown,left,500,95
+mouseup,left,500,95
diff --git a/testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png b/testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png
new file mode 100644
index 0000000..2e668af
--- /dev/null
+++ b/testing/resources/pixel/xfa_specific/barcode_test_expected.pdf.0.png
Binary files differ