diff options
author | Lei Zhang <thestig@chromium.org> | 2015-09-15 15:13:18 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-09-15 15:13:18 -0700 |
commit | a9d4bc541179ec0436adc4b2e18b7fdecc5952dc (patch) | |
tree | 125bdab1850978ef8d39e350abb65cc60003cfc1 | |
parent | 0b3c8f742613da294f812e2f6e908f4026499f96 (diff) | |
download | pdfium-a9d4bc541179ec0436adc4b2e18b7fdecc5952dc.tar.xz |
Fix build on Windows after commit 0b3c8f7.
MSVS can't figure out the value of strlen(kConstString) at compile time.
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1342263002 .
-rw-r--r-- | fpdfsdk/src/fpdfdoc_embeddertest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/fpdfdoc_embeddertest.cpp b/fpdfsdk/src/fpdfdoc_embeddertest.cpp index f3663baf10..553e9009f8 100644 --- a/fpdfsdk/src/fpdfdoc_embeddertest.cpp +++ b/fpdfsdk/src/fpdfdoc_embeddertest.cpp @@ -50,7 +50,7 @@ TEST_F(FPDFDocEmbeddertest, ActionGetFilePath) { ASSERT_TRUE(action); const char kExpectedResult[] = "test.pdf"; - const unsigned long kExpectedLength = strlen(kExpectedResult) + 1; + const unsigned long kExpectedLength = sizeof(kExpectedLength); unsigned long bufsize = FPDFAction_GetFilePath(action, nullptr, 0); ASSERT_EQ(kExpectedLength, bufsize); |