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

Unified Diff: source/test/testmap/testmap.c

Issue 2435373002: Delete source/test (Closed)
Patch Set: Created 4 years, 2 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 | « source/test/testmap/readme.txt ('k') | source/test/testmap/testmap.dsp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/testmap/testmap.c
diff --git a/source/test/testmap/testmap.c b/source/test/testmap/testmap.c
deleted file mode 100644
index 439252b4091c3314f163cd1ae96671386bce57f0..0000000000000000000000000000000000000000
--- a/source/test/testmap/testmap.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
-**********************************************************************
-* Copyright (C) 1998-2012, International Business Machines Corporation
-* and others. All Rights Reserved.
-**********************************************************************
-*
-* File date.c
-*
-* Modification History:
-*
-* Date Name Description
-* 4/26/2000 srl created
-*******************************************************************************
-*/
-
-#include "unicode/utypes.h"
-#include <stdio.h>
-#include <string.h>
-#include "unicode/udata.h"
-#include "unicode/ucnv.h"
-#include "ucmndata.h"
-
-extern const DataHeader U_DATA_API U_ICUDATA_ENTRY_POINT;
-
-int
-main(int argc,
- char **argv)
-{
- UConverter *c;
- UErrorCode status = U_ZERO_ERROR;
-
- udata_setCommonData(NULL, &status);
- printf("setCommonData(NULL) -> %s [should fail]\n", u_errorName(status));
- if(status != U_ILLEGAL_ARGUMENT_ERROR)
- {
- printf("*** FAIL: should have returned U_ILLEGAL_ARGUMENT_ERROR\n");
- return 1;
- }
-
- status = U_ZERO_ERROR;
- udata_setCommonData(&U_ICUDATA_ENTRY_POINT, &status);
- printf("setCommonData(%p) -> %s\n", (void*)&U_ICUDATA_ENTRY_POINT, u_errorName(status));
- if(U_FAILURE(status))
- {
- printf("*** FAIL: should have returned U_ZERO_ERROR\n");
- return 1;
- }
-
- status = U_ZERO_ERROR;
- c = ucnv_open("iso-8859-3", &status);
- printf("ucnv_open(iso-8859-3)-> %p, err = %s, name=%s\n",
- (void *)c, u_errorName(status), (!c)?"?":ucnv_getName(c,&status) );
- if(status != U_ZERO_ERROR)
- {
- printf("\n*** FAIL: should have returned U_ZERO_ERROR;\n");
- return 1;
- }
- else
- {
- ucnv_close(c);
- }
-
- status = U_ZERO_ERROR;
- udata_setCommonData(&U_ICUDATA_ENTRY_POINT, &status);
- printf("setCommonData(%p) -> %s [should pass]\n", (void*) &U_ICUDATA_ENTRY_POINT, u_errorName(status));
- if (U_FAILURE(status) || status == U_USING_DEFAULT_WARNING )
- {
- printf("\n*** FAIL: should pass and not set U_USING_DEFAULT_ERROR\n");
- return 1;
- }
-
- printf("\n*** PASS PASS PASS, test PASSED!!!!!!!!\n");
- return 0;
-}
« no previous file with comments | « source/test/testmap/readme.txt ('k') | source/test/testmap/testmap.dsp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698