Improve FPDFPath_GetMatrix() tests
The test succeeded if FPDFPath_GetMatrix() did not touch its out
parameters, now this is covered.
Change-Id: I04e3c4bd55e0a8e403e88dbc23ec21e8d00eacf2
Reviewed-on: https://pdfium-review.googlesource.com/33870
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
diff --git a/fpdfsdk/fpdf_edit_embeddertest.cpp b/fpdfsdk/fpdf_edit_embeddertest.cpp
index 7ca2174..b2a7c32 100644
--- a/fpdfsdk/fpdf_edit_embeddertest.cpp
+++ b/fpdfsdk/fpdf_edit_embeddertest.cpp
@@ -258,6 +258,14 @@
matrix_d, matrix_e, matrix_f));
EXPECT_TRUE(FPDFPath_SetMatrix(red_rect, matrix_a, matrix_b, matrix_c,
matrix_d, matrix_e, matrix_f));
+ // Set to 0 before FPDFPath_GetMatrix() to ensure they are actually set by
+ // the function.
+ matrix_a = 0;
+ matrix_b = 0;
+ matrix_c = 0;
+ matrix_d = 0;
+ matrix_e = 0;
+ matrix_f = 0;
EXPECT_FALSE(FPDFPath_GetMatrix(nullptr, &matrix_a, &matrix_b, &matrix_c,
&matrix_d, &matrix_e, &matrix_f));
EXPECT_TRUE(FPDFPath_GetMatrix(red_rect, &matrix_a, &matrix_b, &matrix_c,