summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-05-25 14:21:20 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-05-25 18:36:22 +0000
commit3a4c408554f2f2ffb5a143f6dadcdd528fcf106e (patch)
tree41c32a9df644fbe0751e337bcc6a04f4689dff11
parent5acacd361b15b82a8b30cdd5cb92abb8a2104ecf (diff)
downloadpdfium-3a4c408554f2f2ffb5a143f6dadcdd528fcf106e.tar.xz
Rename CPDF_LinkExtract test file to match class
Change-Id: I6200968b0c72d2de32d51a741ac821084ad84f8a Reviewed-on: https://pdfium-review.googlesource.com/5952 Reviewed-by: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
-rw-r--r--BUILD.gn2
-rw-r--r--core/fpdftext/cpdf_linkextract_unittest.cpp (renamed from core/fpdftext/fpdf_text_int_unittest.cpp)8
2 files changed, 5 insertions, 5 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 2f8b8f1038..5802752af9 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1870,7 +1870,7 @@ test("pdfium_unittests") {
"core/fpdfdoc/cpdf_dest_unittest.cpp",
"core/fpdfdoc/cpdf_filespec_unittest.cpp",
"core/fpdfdoc/cpdf_formfield_unittest.cpp",
- "core/fpdftext/fpdf_text_int_unittest.cpp",
+ "core/fpdftext/cpdf_linkextract_unittest.cpp",
"core/fxcodec/codec/fx_codec_a85_unittest.cpp",
"core/fxcodec/codec/fx_codec_jpx_unittest.cpp",
"core/fxcodec/codec/fx_codec_rle_unittest.cpp",
diff --git a/core/fpdftext/fpdf_text_int_unittest.cpp b/core/fpdftext/cpdf_linkextract_unittest.cpp
index 5730e5cc49..bd059862fd 100644
--- a/core/fpdftext/fpdf_text_int_unittest.cpp
+++ b/core/fpdftext/cpdf_linkextract_unittest.cpp
@@ -14,11 +14,11 @@ class CPDF_TestLinkExtract : public CPDF_LinkExtract {
private:
// Add test cases as friends to access protected member functions.
// Access CheckMailLink and CheckWebLink.
- FRIEND_TEST(fpdf_text_int, CheckMailLink);
- FRIEND_TEST(fpdf_text_int, CheckWebLink);
+ FRIEND_TEST(CPDF_LinkExtractTest, CheckMailLink);
+ FRIEND_TEST(CPDF_LinkExtractTest, CheckWebLink);
};
-TEST(fpdf_text_int, CheckMailLink) {
+TEST(CPDF_LinkExtractTest, CheckMailLink) {
CPDF_TestLinkExtract extractor;
// Check cases that fail to extract valid mail link.
const wchar_t* const invalid_strs[] = {
@@ -59,7 +59,7 @@ TEST(fpdf_text_int, CheckMailLink) {
}
}
-TEST(fpdf_text_int, CheckWebLink) {
+TEST(CPDF_LinkExtractTest, CheckWebLink) {
CPDF_TestLinkExtract extractor;
// Check cases that fail to extract valid web link.
// The last few are legit web addresses that we don't handle now.