summaryrefslogtreecommitdiff
path: root/core/fxcrt/widestring_unittest.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-12-07 22:19:53 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-07 22:19:53 +0000
commitce6979f8d064507300fe0b3a856687fb958c9a5c (patch)
treeca2528c70c84954fd6c99faeb183be7ba08b7380 /core/fxcrt/widestring_unittest.cpp
parent67454716002f2f5eae85cef4d382ecfc0e9b266d (diff)
downloadpdfium-ce6979f8d064507300fe0b3a856687fb958c9a5c.tar.xz
Add WARN_UNUSED_RESULT to more static methods in (Byte|Wide)String.
Also fixes some usages that were not working as intended after the conversion to static. Change-Id: I18c18369754f6ca165f98999b5b80eecf6c76973 Reviewed-on: https://pdfium-review.googlesource.com/20590 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt/widestring_unittest.cpp')
-rw-r--r--core/fxcrt/widestring_unittest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/widestring_unittest.cpp b/core/fxcrt/widestring_unittest.cpp
index 39337aa7a7..1673c8f069 100644
--- a/core/fxcrt/widestring_unittest.cpp
+++ b/core/fxcrt/widestring_unittest.cpp
@@ -1330,7 +1330,7 @@ TEST(WideString, FormatPrecision) {
}
TEST(WideString, FormatOutOfRangeChar) {
- WideString::Format(L"unsupported char '%c'", 0x00FF00FF);
+ EXPECT_NE(L"", WideString::Format(L"unsupported char '%c'", 0x00FF00FF));
}
TEST(WideString, Empty) {