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

Issue 1414013005: Add tests for CMap_GetCode and CMap_GetCodeRange. (Closed)

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

Description

Add tests for CMap_GetCode and CMap_GetCodeRange. This CL adds tests for the CMap_GetCode and CMap_GetCodeRange methods. To do so, it moves the methods to be static private members of CPDF_CMapParser and makes the test class a friend. R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/afca65ac019d2ad4cb8ac8f585809cc1a519ac2b

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -72 lines) Patch
M BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/font_int.h View 1 chunk +8 lines, -0 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp View 2 chunks +76 lines, -72 lines 0 comments Download
A core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp View 1 chunk +66 lines, -0 lines 0 comments Download
M pdfium.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
dsinclair
PTAL. https://codereview.chromium.org/1414013005/diff/1/core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp File core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp (right): https://codereview.chromium.org/1414013005/diff/1/core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp#newcode52 core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp:52: EXPECT_TRUE(uint_ranges_equal(upper, range.m_Upper, range.m_CharSize)); This seemed a little nicer ...
5 years, 1 month ago (2015-11-02 19:10:36 UTC) #2
dsinclair
https://codereview.chromium.org/1414013005/diff/1/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp File core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp (right): https://codereview.chromium.org/1414013005/diff/1/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp#newcode764 core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp:764: : '0'; I fixed the issue where this was ...
5 years, 1 month ago (2015-11-02 19:11:09 UTC) #3
Tom Sepez
lgtm https://codereview.chromium.org/1414013005/diff/1/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp File core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp (right): https://codereview.chromium.org/1414013005/diff/1/core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp#newcode764 core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp:764: : '0'; On 2015/11/02 19:11:09, dsinclair wrote: > ...
5 years, 1 month ago (2015-11-02 21:00:54 UTC) #4
dsinclair
5 years, 1 month ago (2015-11-02 21:15:29 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
afca65ac019d2ad4cb8ac8f585809cc1a519ac2b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698