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

Issue 1408003014: Retrieve test data directory at run time (Closed)

Created:
5 years, 1 month ago by Wei Li
Modified:
5 years, 1 month 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

Add path service to retrieve test data directory at run time so tests can be run from any directory. Previously the tests which read test files assume the current directory is under pdfium. Running from any other directory will break the build. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/c0e93a9a942fe7d99800502a61d2fbb58cf9276f

Patch Set 1 #

Patch Set 2 : fix headers #

Total comments: 13

Patch Set 3 : address comments #

Total comments: 4

Patch Set 4 : add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -55 lines) Patch
M BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_func_embeddertest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp View 4 chunks +5 lines, -6 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp View 2 chunks +5 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M fpdfsdk/src/fpdf_dataavail_embeddertest.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M fpdfsdk/src/fpdfdoc_embeddertest.cpp View 4 chunks +7 lines, -7 lines 0 comments Download
M fpdfsdk/src/fpdfformfill_embeddertest.cpp View 1 6 chunks +8 lines, -8 lines 0 comments Download
M fpdfsdk/src/fpdftext_embeddertest.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M fpdfsdk/src/fpdfview_embeddertest.cpp View 7 chunks +11 lines, -11 lines 0 comments Download
M pdfium.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M testing/embedder_test.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M testing/embedder_test.cpp View 3 chunks +7 lines, -3 lines 0 comments Download
M testing/test_support.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
A testing/utils/path_service.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A testing/utils/path_service.cpp View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Wei Li
PTAL, thanks. BTW, I feel path service can be put under other dir so that ...
5 years, 1 month ago (2015-11-07 01:38:59 UTC) #3
Lei Zhang
Mostly good. A few questions: https://codereview.chromium.org/1408003014/diff/20001/testing/embedder_test.cpp File testing/embedder_test.cpp (right): https://codereview.chromium.org/1408003014/diff/20001/testing/embedder_test.cpp#newcode96 testing/embedder_test.cpp:96: bool EmbedderTest::OpenDocument(const std::string& filename, ...
5 years, 1 month ago (2015-11-07 01:48:51 UTC) #4
Wei Li
https://codereview.chromium.org/1408003014/diff/20001/testing/embedder_test.cpp File testing/embedder_test.cpp (right): https://codereview.chromium.org/1408003014/diff/20001/testing/embedder_test.cpp#newcode96 testing/embedder_test.cpp:96: bool EmbedderTest::OpenDocument(const std::string& filename, On 2015/11/07 01:48:51, Lei Zhang ...
5 years, 1 month ago (2015-11-07 02:36:13 UTC) #6
Lei Zhang
lgtm https://codereview.chromium.org/1408003014/diff/20001/testing/utils/path_service.cpp File testing/utils/path_service.cpp (right): https://codereview.chromium.org/1408003014/diff/20001/testing/utils/path_service.cpp#newcode74 testing/utils/path_service.cpp:74: // Assume executables always run from out/<Debug|Release>/, the ...
5 years, 1 month ago (2015-11-07 02:43:31 UTC) #7
Wei Li
thanks, will submit. https://codereview.chromium.org/1408003014/diff/20001/testing/utils/path_service.h File testing/utils/path_service.h (right): https://codereview.chromium.org/1408003014/diff/20001/testing/utils/path_service.h#newcode20 testing/utils/path_service.h:20: static bool GetExecutableDir(std::string* path); On 2015/11/07 ...
5 years, 1 month ago (2015-11-09 18:08:19 UTC) #8
Wei Li
5 years, 1 month ago (2015-11-09 18:22:36 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:80001) manually as
c0e93a9a942fe7d99800502a61d2fbb58cf9276f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698