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

Unified Diff: core/src/fpdfapi/fpdf_font/fpdf_font_unittest.cpp

Issue 1800523005: Move core/src/ up to core/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp ('k') | core/src/fpdfapi/fpdf_font/ttgsubtable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdfapi/fpdf_font/fpdf_font_unittest.cpp
diff --git a/core/src/fpdfapi/fpdf_font/fpdf_font_unittest.cpp b/core/src/fpdfapi/fpdf_font/fpdf_font_unittest.cpp
deleted file mode 100644
index 7ea17408eef40edcd0a79ba7d9eff9996677577d..0000000000000000000000000000000000000000
--- a/core/src/fpdfapi/fpdf_font/fpdf_font_unittest.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2015 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/src/fpdfapi/fpdf_font/font_int.h"
-#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"));
-}
-
-TEST(fpdf_font, StringToWideString) {
- EXPECT_EQ(L"", CPDF_ToUnicodeMap::StringToWideString(""));
- EXPECT_EQ(L"", CPDF_ToUnicodeMap::StringToWideString("1234"));
-
- EXPECT_EQ(L"", CPDF_ToUnicodeMap::StringToWideString("<c2"));
-
- CFX_WideString res = L"\xc2ab";
- EXPECT_EQ(res, CPDF_ToUnicodeMap::StringToWideString("<c2ab"));
- EXPECT_EQ(res, CPDF_ToUnicodeMap::StringToWideString("<c2abab"));
- EXPECT_EQ(res, CPDF_ToUnicodeMap::StringToWideString("<c2ab 1234"));
-
- res += L"\xfaab";
- EXPECT_EQ(res, CPDF_ToUnicodeMap::StringToWideString("<c2abFaAb"));
-}
« no previous file with comments | « core/src/fpdfapi/fpdf_font/fpdf_font_cid_unittest.cpp ('k') | core/src/fpdfapi/fpdf_font/ttgsubtable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698