OLD | NEW |
1 /******************************************************************** | 1 /******************************************************************** |
2 * COPYRIGHT: | 2 * COPYRIGHT: |
3 * Copyright (c) 1997-2010, International Business Machines Corporation and | 3 * Copyright (c) 1997-2010, International Business Machines Corporation and |
4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
5 * Copyright (C) 2010 , Yahoo! Inc. | 5 * Copyright (C) 2010 , Yahoo! Inc. |
6 ********************************************************************/ | 6 ********************************************************************/ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <string.h> | 9 #include <string.h> |
10 #include <typeinfo> // for 'typeid' to work | 10 #include "unicode/utypeinfo.h" // for 'typeid' to work |
11 | 11 |
12 #include "uobjtest.h" | 12 #include "uobjtest.h" |
13 #include "cmemory.h" // UAlignedMemory | 13 #include "cmemory.h" // UAlignedMemory |
14 | 14 |
15 /** | 15 /** |
16 * Test for UObject, currently only the classID. | 16 * Test for UObject, currently only the classID. |
17 * | 17 * |
18 * Usage | 18 * Usage |
19 * TESTCLASSID_NONE_DEFAULT(Foo) | 19 * TESTCLASSID_NONE_DEFAULT(Foo) |
20 * -- Foo is expected to not support "poor man's RTTI". | 20 * -- Foo is expected to not support "poor man's RTTI". |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 switch (index) { | 588 switch (index) { |
589 | 589 |
590 TESTCASE(0, testIDs); | 590 TESTCASE(0, testIDs); |
591 TESTCASE(1, testUMemory); | 591 TESTCASE(1, testUMemory); |
592 TESTCASE(2, TestMFCCompatibility); | 592 TESTCASE(2, TestMFCCompatibility); |
593 TESTCASE(3, TestCompilerRTTI); | 593 TESTCASE(3, TestCompilerRTTI); |
594 | 594 |
595 default: name = ""; break; //needed to end loop | 595 default: name = ""; break; //needed to end loop |
596 } | 596 } |
597 } | 597 } |
OLD | NEW |