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

Unified Diff: core/src/fpdfapi/fpdf_font/font_int.h

Issue 1428593005: Add test for StringToCode and StringToWideString. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 1 month 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
Index: core/src/fpdfapi/fpdf_font/font_int.h
diff --git a/core/src/fpdfapi/fpdf_font/font_int.h b/core/src/fpdfapi/fpdf_font/font_int.h
index 48e58d6345279040634338ed063fb976acd50ebc..e14ad9400e4a0c5f7b9802bab4174d884c174dcd 100644
--- a/core/src/fpdfapi/fpdf_font/font_int.h
+++ b/core/src/fpdfapi/fpdf_font/font_int.h
@@ -174,6 +174,13 @@ class CPDF_ToUnicodeMap {
std::map<FX_DWORD, FX_DWORD> m_Map;
CPDF_CID2UnicodeMap* m_pBaseMap;
CFX_WideTextBuf m_MultiCharBuf;
+
+ private:
+ friend class fpdf_font_StringToCode_Test;
+ friend class fpdf_font_StringToWideString_Test;
+
+ FX_DWORD StringToCode(const CFX_ByteStringC& str) const;
Tom Sepez 2015/11/02 18:00:28 can these be static methods since they don't refer
dsinclair 2015/11/02 18:14:28 Done.
+ CFX_WideString StringToWideString(const CFX_ByteStringC& str) const;
};
class CPDF_FontCharMap : public CFX_CharMap {
public:

Powered by Google App Engine
This is Rietveld 408576698