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

Unified Diff: core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp

Issue 1841643002: Code change to avoid signed/unsigned mismatch warnings (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/fpdf_font/fpdf_font.cpp ('k') | core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp
diff --git a/core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp b/core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp
index c12b9c5eeec722ec61553df717ed6d78924fc925..ccf49ee46a3d290b1789d52943a721cfbcf072a1 100644
--- a/core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp
+++ b/core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp
@@ -18,16 +18,16 @@ bool uint_ranges_equal(uint8_t* a, uint8_t* b, size_t count) {
} // namespace
TEST(fpdf_font_cid, CMap_GetCode) {
- EXPECT_EQ(0, CPDF_CMapParser::CMap_GetCode(""));
- EXPECT_EQ(0, CPDF_CMapParser::CMap_GetCode("<"));
- EXPECT_EQ(194, CPDF_CMapParser::CMap_GetCode("<c2"));
- EXPECT_EQ(162, CPDF_CMapParser::CMap_GetCode("<A2"));
- EXPECT_EQ(2802, CPDF_CMapParser::CMap_GetCode("<Af2"));
- EXPECT_EQ(162, CPDF_CMapParser::CMap_GetCode("<A2z"));
+ EXPECT_EQ(0u, CPDF_CMapParser::CMap_GetCode(""));
+ EXPECT_EQ(0u, CPDF_CMapParser::CMap_GetCode("<"));
+ EXPECT_EQ(194u, CPDF_CMapParser::CMap_GetCode("<c2"));
+ EXPECT_EQ(162u, CPDF_CMapParser::CMap_GetCode("<A2"));
+ EXPECT_EQ(2802u, CPDF_CMapParser::CMap_GetCode("<Af2"));
+ EXPECT_EQ(162u, CPDF_CMapParser::CMap_GetCode("<A2z"));
- EXPECT_EQ(12, CPDF_CMapParser::CMap_GetCode("12"));
- EXPECT_EQ(12, CPDF_CMapParser::CMap_GetCode("12d"));
- EXPECT_EQ(128, CPDF_CMapParser::CMap_GetCode("128"));
+ EXPECT_EQ(12u, CPDF_CMapParser::CMap_GetCode("12"));
+ EXPECT_EQ(12u, CPDF_CMapParser::CMap_GetCode("12d"));
+ EXPECT_EQ(128u, CPDF_CMapParser::CMap_GetCode("128"));
}
TEST(fpdf_font_cid, CMap_GetCodeRange) {
« no previous file with comments | « core/fpdfapi/fpdf_font/fpdf_font.cpp ('k') | core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698