Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Issue 1141763002: Fix comparison of CFX_ByteString and CFX_WideString against empty literals. (Closed)

Created:
5 years, 7 months ago by Tom Sepez
Modified:
5 years, 7 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix comparison of CFX_ByteString and CFX_WideString against empty literals. Also corrects some ASSERT_'s to EXPECT_'s in the test. BUG=pdfium:160 R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/fdc5e691745cf16fb105f3ad4a9fb5f8f64f56b4

Patch Set 1 : Test cases showing issue #

Patch Set 2 : Fix Issue. #

Patch Set 3 : Cover a few more cases. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+428 lines, -225 lines) Patch
M core/src/fxcrt/fx_basic_bstring.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M core/src/fxcrt/fx_basic_bstring_unittest.cpp View 1 2 2 chunks +210 lines, -108 lines 0 comments Download
M core/src/fxcrt/fx_basic_wstring.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M core/src/fxcrt/fx_basic_wstring_unittest.cpp View 1 2 2 chunks +210 lines, -109 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Tom Sepez
Lei, for review. Looks like I blew it.
5 years, 7 months ago (2015-05-13 17:44:12 UTC) #2
Lei Zhang
lgtm
5 years, 7 months ago (2015-05-13 18:13:58 UTC) #3
Tom Sepez
Turns out there's another case to cover, see new tests.
5 years, 7 months ago (2015-05-13 20:58:07 UTC) #4
Lei Zhang
looks better to me
5 years, 7 months ago (2015-05-13 21:14:37 UTC) #5
Tom Sepez
5 years, 7 months ago (2015-05-13 21:16:56 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
fdc5e691745cf16fb105f3ad4a9fb5f8f64f56b4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698