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

Side by Side Diff: source/test/letest/letest.cpp

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « source/test/letest/letest.h ('k') | source/test/letest/letest.sln » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ******************************************************************************* 2 *******************************************************************************
3 * 3 *
4 * Copyright (C) 1999-2013, International Business Machines 4 * Copyright (C) 1999-2014, International Business Machines
5 * Corporation and others. All Rights Reserved. 5 * Corporation and others. All Rights Reserved.
6 * 6 *
7 ******************************************************************************* 7 *******************************************************************************
8 * file name: letest.cpp 8 * file name: letest.cpp
9 * 9 *
10 * created on: 11/06/2000 10 * created on: 11/06/2000
11 * created by: Eric R. Mader 11 * created by: Eric R. Mader
12 */ 12 */
13 13
14 #include "unicode/utypes.h" 14 #include "unicode/utypes.h"
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 * Break it into multiple lines and make sure that the glyphToCharMap for run in each 741 * Break it into multiple lines and make sure that the glyphToCharMap for run in each
742 * line is correct. 742 * line is correct.
743 * 743 *
744 * Note: it might be a good idea to also check the glyphs and positions for each run, 744 * Note: it might be a good idea to also check the glyphs and positions for each run,
745 * that we get the expected number of runs per line and that the line breaks are where 745 * that we get the expected number of runs per line and that the line breaks are where
746 * we expect them to be. Really, it would be a good idea to make a whole test su ite 746 * we expect them to be. Really, it would be a good idea to make a whole test su ite
747 * for ParagraphLayout. 747 * for ParagraphLayout.
748 */ 748 */
749 static void U_CALLCONV GlyphToCharTest(void) 749 static void U_CALLCONV GlyphToCharTest(void)
750 { 750 {
751 #if !UCONFIG_NO_BREAK_ITERATION
751 LEErrorCode status = LE_NO_ERROR; 752 LEErrorCode status = LE_NO_ERROR;
752 LEFontInstance *font; 753 LEFontInstance *font;
753 FontRuns fontRuns(0); 754 FontRuns fontRuns(0);
754 ParagraphLayout *paragraphLayout; 755 ParagraphLayout *paragraphLayout;
755 const ParagraphLayout::Line *line; 756 const ParagraphLayout::Line *line;
756 /* 757 /*
757 * This is the same text that's in <icu>/source/samples/layout/Sample.txt 758 * This is the same text that's in <icu>/source/samples/layout/Sample.txt
758 */ 759 */
759 LEUnicode chars[] = { 760 LEUnicode chars[] = {
760 /*BOM*/ 0x0054, 0x0068, 0x0065, 0x0020, 0x004c, 0x0061, 0x0079, 761 /*BOM*/ 0x0054, 0x0068, 0x0065, 0x0020, 0x004c, 0x0061, 0x0079,
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 lineNumber += 1; 952 lineNumber += 1;
952 } 953 }
953 close_paragraph: 954 close_paragraph:
954 delete paragraphLayout; 955 delete paragraphLayout;
955 956
956 close_font: 957 close_font:
957 delete font; 958 delete font;
958 959
959 finish: 960 finish:
960 return; 961 return;
962 #endif
961 } 963 }
962 U_CDECL_END 964 U_CDECL_END
963 965
964 static void addAllTests(TestNode **root) 966 static void addAllTests(TestNode **root)
965 { 967 {
966 addTest(root, &ScriptTest, "api/ScriptTest"); 968 addTest(root, &ScriptTest, "api/ScriptTest");
967 addTest(root, &ParamTest, "api/ParameterTest"); 969 addTest(root, &ParamTest, "api/ParameterTest");
968 addTest(root, &FactoryTest, "api/FactoryTest"); 970 addTest(root, &FactoryTest, "api/FactoryTest");
969 addTest(root, &AccessTest, "layout/AccessTest"); 971 addTest(root, &AccessTest, "layout/AccessTest");
970 addTest(root, &DataDrivenTest, "layout/DataDrivenTest"); 972 addTest(root, &DataDrivenTest, "layout/DataDrivenTest");
971 addTest(root, &GlyphToCharTest, "paragraph/GlyphToCharTest"); 973 addTest(root, &GlyphToCharTest, "paragraph/GlyphToCharTest");
972 974
975 #ifndef USING_ICULEHB
973 addCTests(root); 976 addCTests(root);
977 #endif
974 } 978 }
975 979
976 /* returns the path to icu/source/data/out */ 980 /* returns the path to icu/source/data/out */
977 static const char *ctest_dataOutDir() 981 static const char *ctest_dataOutDir()
978 { 982 {
979 static const char *dataOutDir = NULL; 983 static const char *dataOutDir = NULL;
980 984
981 if(dataOutDir) { 985 if(dataOutDir) {
982 return dataOutDir; 986 return dataOutDir;
983 } 987 }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 diffTime = (int32_t)(endTime - startTime); 1122 diffTime = (int32_t)(endTime - startTime);
1119 printf("Elapsed Time: %02d:%02d:%02d.%03d\n", 1123 printf("Elapsed Time: %02d:%02d:%02d.%03d\n",
1120 (int)((diffTime%U_MILLIS_PER_DAY)/U_MILLIS_PER_HOUR), 1124 (int)((diffTime%U_MILLIS_PER_DAY)/U_MILLIS_PER_HOUR),
1121 (int)((diffTime%U_MILLIS_PER_HOUR)/U_MILLIS_PER_MINUTE), 1125 (int)((diffTime%U_MILLIS_PER_HOUR)/U_MILLIS_PER_MINUTE),
1122 (int)((diffTime%U_MILLIS_PER_MINUTE)/U_MILLIS_PER_SECOND), 1126 (int)((diffTime%U_MILLIS_PER_MINUTE)/U_MILLIS_PER_SECOND),
1123 (int)(diffTime%U_MILLIS_PER_SECOND)); 1127 (int)(diffTime%U_MILLIS_PER_SECOND));
1124 1128
1125 return nerrors; 1129 return nerrors;
1126 } 1130 }
1127 1131
OLDNEW
« no previous file with comments | « source/test/letest/letest.h ('k') | source/test/letest/letest.sln » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698