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

Unified Diff: core/fpdfapi/fpdf_font/fpdf_font_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_cid_unittest.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_colorstate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp
diff --git a/core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp b/core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp
index dd2119e0cfa693f53d86cfb8784eb836226b2946..0c5ad8a66ac959d77980b0e9fe8f1c09c91068bf 100644
--- a/core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp
+++ b/core/fpdfapi/fpdf_font/fpdf_font_unittest.cpp
@@ -6,12 +6,12 @@
#include "testing/gtest/include/gtest/gtest.h"
TEST(fpdf_font, StringToCode) {
- EXPECT_EQ(0, CPDF_ToUnicodeMap::StringToCode(""));
- EXPECT_EQ(194, CPDF_ToUnicodeMap::StringToCode("<c2"));
- EXPECT_EQ(162, CPDF_ToUnicodeMap::StringToCode("<A2"));
- EXPECT_EQ(2802, CPDF_ToUnicodeMap::StringToCode("<Af2"));
- EXPECT_EQ(12, CPDF_ToUnicodeMap::StringToCode("12"));
- EXPECT_EQ(128, CPDF_ToUnicodeMap::StringToCode("128"));
+ EXPECT_EQ(0u, CPDF_ToUnicodeMap::StringToCode(""));
+ EXPECT_EQ(194u, CPDF_ToUnicodeMap::StringToCode("<c2"));
+ EXPECT_EQ(162u, CPDF_ToUnicodeMap::StringToCode("<A2"));
+ EXPECT_EQ(2802u, CPDF_ToUnicodeMap::StringToCode("<Af2"));
+ EXPECT_EQ(12u, CPDF_ToUnicodeMap::StringToCode("12"));
+ EXPECT_EQ(128u, CPDF_ToUnicodeMap::StringToCode("128"));
}
TEST(fpdf_font, StringToWideString) {
« no previous file with comments | « core/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_colorstate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698