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

Issue 2614383003: Add CFDE_TxtEdtBuf tests (Closed)

Created:
3 years, 11 months ago by dsinclair
Modified:
3 years, 11 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Add CFDE_TxtEdtBuf tests This CL adds a set of unit tests for the text edit buffer. It fixes up a few bugs found adding the tests and removes the unused ::Optimize method. Review-Url: https://codereview.chromium.org/2614383003 Committed: https://pdfium.googlesource.com/pdfium/+/5e9066cbfa252b84d49f8b4adba445ba7761e81f

Patch Set 1 #

Total comments: 13

Patch Set 2 : Death tests in NDEBUG only #

Patch Set 3 : Fixup memory leak in tests #

Patch Set 4 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -57 lines) Patch
M BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M xfa/fde/cfde_txtedtbuf.h View 2 chunks +7 lines, -6 lines 0 comments Download
M xfa/fde/cfde_txtedtbuf.cpp View 1 2 5 chunks +14 lines, -46 lines 0 comments Download
A xfa/fde/cfde_txtedtbuf_unittest.cpp View 1 2 3 1 chunk +199 lines, -0 lines 0 comments Download
M xfa/fde/cfde_txtedtengine.h View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fde/cfde_txtedtengine.cpp View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
dsinclair
PTAL. Any tests that I missed that you can think of?
3 years, 11 months ago (2017-01-09 20:12:39 UTC) #4
Tom Sepez
red bots? https://codereview.chromium.org/2614383003/diff/1/xfa/fde/cfde_txtedtbuf.cpp File xfa/fde/cfde_txtedtbuf.cpp (right): https://codereview.chromium.org/2614383003/diff/1/xfa/fde/cfde_txtedtbuf.cpp#newcode97 xfa/fde/cfde_txtedtbuf.cpp:97: nBegin + nLength <= GetTextLength()); nit: this ...
3 years, 11 months ago (2017-01-09 21:07:28 UTC) #13
dsinclair
PTAL. https://codereview.chromium.org/2614383003/diff/1/xfa/fde/cfde_txtedtbuf.cpp File xfa/fde/cfde_txtedtbuf.cpp (right): https://codereview.chromium.org/2614383003/diff/1/xfa/fde/cfde_txtedtbuf.cpp#newcode97 xfa/fde/cfde_txtedtbuf.cpp:97: nBegin + nLength <= GetTextLength()); On 2017/01/09 21:07:27, ...
3 years, 11 months ago (2017-01-09 21:20:00 UTC) #16
Tom Sepez
lgtm https://codereview.chromium.org/2614383003/diff/1/xfa/fde/cfde_txtedtbuf_unittest.cpp File xfa/fde/cfde_txtedtbuf_unittest.cpp (right): https://codereview.chromium.org/2614383003/diff/1/xfa/fde/cfde_txtedtbuf_unittest.cpp#newcode28 xfa/fde/cfde_txtedtbuf_unittest.cpp:28: EXPECT_EQ(2, buf->GetTextLength()); On 2017/01/09 21:20:00, dsinclair wrote: > ...
3 years, 11 months ago (2017-01-09 21:27:10 UTC) #17
dsinclair
On 2017/01/09 21:27:10, Tom Sepez wrote: > lgtm > > https://codereview.chromium.org/2614383003/diff/1/xfa/fde/cfde_txtedtbuf_unittest.cpp > File xfa/fde/cfde_txtedtbuf_unittest.cpp (right): ...
3 years, 11 months ago (2017-01-09 21:28:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2614383003/60001
3 years, 11 months ago (2017-01-09 21:29:09 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-09 21:43:11 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/5e9066cbfa252b84d49f8b4adba445ba7761...

Powered by Google App Engine
This is Rietveld 408576698