| 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 #if defined(_MSC_VER) && defined(_HAS_EXCEPTIONS) && !_HAS_EXCEPTIONS |
| 11 #include <exception> |
| 12 using std::exception; |
| 13 #endif |
| 10 #include <typeinfo> // for 'typeid' to work | 14 #include <typeinfo> // for 'typeid' to work |
| 11 | 15 |
| 12 #include "uobjtest.h" | 16 #include "uobjtest.h" |
| 13 #include "cmemory.h" // UAlignedMemory | 17 #include "cmemory.h" // UAlignedMemory |
| 14 | 18 |
| 15 /** | 19 /** |
| 16 * Test for UObject, currently only the classID. | 20 * Test for UObject, currently only the classID. |
| 17 * | 21 * |
| 18 * Usage | 22 * Usage |
| 19 * TESTCLASSID_NONE_DEFAULT(Foo) | 23 * TESTCLASSID_NONE_DEFAULT(Foo) |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 switch (index) { | 592 switch (index) { |
| 589 | 593 |
| 590 TESTCASE(0, testIDs); | 594 TESTCASE(0, testIDs); |
| 591 TESTCASE(1, testUMemory); | 595 TESTCASE(1, testUMemory); |
| 592 TESTCASE(2, TestMFCCompatibility); | 596 TESTCASE(2, TestMFCCompatibility); |
| 593 TESTCASE(3, TestCompilerRTTI); | 597 TESTCASE(3, TestCompilerRTTI); |
| 594 | 598 |
| 595 default: name = ""; break; //needed to end loop | 599 default: name = ""; break; //needed to end loop |
| 596 } | 600 } |
| 597 } | 601 } |
| OLD | NEW |