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

Side by Side Diff: source/tools/ctestfw/tstdtmod.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/tools/ctestfw/ctestfw.vcxproj ('k') | source/tools/ctestfw/unicode/uperf.h » ('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 * COPYRIGHT: 2 * COPYRIGHT:
3 * Copyright (c) 2002-2010, International Business Machines Corporation and 3 * Copyright (c) 2002-2014, International Business Machines Corporation and
4 * others. All Rights Reserved. 4 * others. All Rights Reserved.
5 ********************************************************************/ 5 ********************************************************************/
6 6
7 /* Created by weiv 05/09/2002 */ 7 /* Created by weiv 05/09/2002 */
8 8
9 #include <stdarg.h> 9 #include <stdarg.h>
10 10
11 #include "unicode/tstdtmod.h" 11 #include "unicode/tstdtmod.h"
12 #include "cmemory.h" 12 #include "cmemory.h"
13 #include <stdio.h> 13 #include <stdio.h>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 reset(); 55 reset();
56 return FALSE; 56 return FALSE;
57 } 57 }
58 } 58 }
59 59
60 void IcuTestErrorCode::handleFailure() const { 60 void IcuTestErrorCode::handleFailure() const {
61 // testClass.errln("%s failure - %s", testName, errorName()); 61 // testClass.errln("%s failure - %s", testName, errorName());
62 UnicodeString msg(testName, -1, US_INV); 62 UnicodeString msg(testName, -1, US_INV);
63 msg.append(UNICODE_STRING_SIMPLE(" failure: ")).append(UnicodeString(errorNa me(), -1, US_INV)); 63 msg.append(UNICODE_STRING_SIMPLE(" failure: ")).append(UnicodeString(errorNa me(), -1, US_INV));
64 64
65 if (get() == U_MISSING_RESOURCE_ERROR) { 65 if (get() == U_MISSING_RESOURCE_ERROR || get() == U_FILE_ACCESS_ERROR) {
66 testClass.dataerrln(msg); 66 testClass.dataerrln(msg);
67 } else { 67 } else {
68 testClass.errln(msg); 68 testClass.errln(msg);
69 } 69 }
70 } 70 }
71 71
72 TestDataModule *TestDataModule::getTestDataModule(const char* name, TestLog& log , UErrorCode &status) 72 TestDataModule *TestDataModule::getTestDataModule(const char* name, TestLog& log , UErrorCode &status)
73 { 73 {
74 if(U_FAILURE(status)) { 74 if(U_FAILURE(status)) {
75 return NULL; 75 return NULL;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 fLog.dataerrln(UNICODE_STRING_SIMPLE("Could not load test data from resourcebundle: ") + UnicodeString(bundleName, -1, US_INV)); 219 fLog.dataerrln(UNICODE_STRING_SIMPLE("Could not load test data from resourcebundle: ") + UnicodeString(bundleName, -1, US_INV));
220 fDataTestValid = FALSE; 220 fDataTestValid = FALSE;
221 } 221 }
222 } 222 }
223 return testBundle; 223 return testBundle;
224 } else { 224 } else {
225 return NULL; 225 return NULL;
226 } 226 }
227 } 227 }
228 228
OLDNEW
« no previous file with comments | « source/tools/ctestfw/ctestfw.vcxproj ('k') | source/tools/ctestfw/unicode/uperf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698