Changeset 83974 in webkit
- Timestamp:
- Apr 15, 2011 7:55:10 AM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r83955 r83974 1 2011-04-15 Dmitry Lomov <dslomov@google.com> 2 3 Reviewed by David Levin. 4 5 Add a sample test case for GTest framework 6 https://bugs.webkit.org/show_bug.cgi?id=58509 7 8 Add an example of GTest testcase, complete with a runner, to JavaScriptCore. 9 10 * JavaScriptCore.xcodeproj/project.pbxproj: 11 * wtf/tests/RunAllWtfTests.cpp: Added. 12 (main): 13 * wtf/tests/StringTests.cpp: Added. 14 1 15 2011-04-15 Anna Cavender <annacc@chromium.org> 2 16 -
trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r83529 r83974 595 595 E49DC16D12EF295300184A1F /* SourceProviderCacheItem.h in Headers */ = {isa = PBXBuildFile; fileRef = E49DC14912EF261A00184A1F /* SourceProviderCacheItem.h */; }; 596 596 E4D8CEFB12FC439600BC9F5A /* BloomFilter.h in Headers */ = {isa = PBXBuildFile; fileRef = E4D8CE9B12FC42E100BC9F5A /* BloomFilter.h */; settings = {ATTRIBUTES = (Private, ); }; }; 597 F33EE2D8135679CC00E09E65 /* libgtest.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F33EE0E5135678CA00E09E65 /* libgtest.a */; }; 598 F33EE4FA1356972900E09E65 /* StringTests.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F33EE4F91356972900E09E65 /* StringTests.cpp */; }; 599 F3BBAEB51356573A00CBD414 /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 932F5BD90822A1C700736975 /* JavaScriptCore.framework */; }; 600 F3BBAF0E1356662E00CBD414 /* RunAllWtfTests.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F3BBAF0D1356662E00CBD414 /* RunAllWtfTests.cpp */; }; 597 601 F3BD31ED126735770065467F /* TextPosition.h in Headers */ = {isa = PBXBuildFile; fileRef = F3BD31D0126730180065467F /* TextPosition.h */; settings = {ATTRIBUTES = (Private, ); }; }; 598 602 FDA15C1E12B0305C003A583A /* Complex.h in Headers */ = {isa = PBXBuildFile; fileRef = FDA15C1612B03028003A583A /* Complex.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 656 660 remoteGlobalIDString = 932F5BDA0822A1C700736975; 657 661 remoteInfo = "jsc (Upgraded)"; 662 }; 663 F33EE0E2135678CA00E09E65 /* PBXContainerItemProxy */ = { 664 isa = PBXContainerItemProxy; 665 containerPortal = F33EE0D3135678CA00E09E65 /* gtest.xcodeproj */; 666 proxyType = 2; 667 remoteGlobalIDString = 4539C8FF0EC27F6400A70F4C /* gtest.framework */; 668 remoteInfo = "gtest-framework"; 669 }; 670 F33EE0E4135678CA00E09E65 /* PBXContainerItemProxy */ = { 671 isa = PBXContainerItemProxy; 672 containerPortal = F33EE0D3135678CA00E09E65 /* gtest.xcodeproj */; 673 proxyType = 2; 674 remoteGlobalIDString = 40C848FA101A209C0083642A /* libgtest.a */; 675 remoteInfo = "gtest-static"; 676 }; 677 F33EE0E6135678CA00E09E65 /* PBXContainerItemProxy */ = { 678 isa = PBXContainerItemProxy; 679 containerPortal = F33EE0D3135678CA00E09E65 /* gtest.xcodeproj */; 680 proxyType = 2; 681 remoteGlobalIDString = 40C8490B101A217E0083642A /* libgtest_main.a */; 682 remoteInfo = "gtest_main-static"; 683 }; 684 F33EE0E8135678CA00E09E65 /* PBXContainerItemProxy */ = { 685 isa = PBXContainerItemProxy; 686 containerPortal = F33EE0D3135678CA00E09E65 /* gtest.xcodeproj */; 687 proxyType = 2; 688 remoteGlobalIDString = 40899F430FFA7184000B29AE /* gtest_unittest-framework */; 689 remoteInfo = "gtest_unittest-framework"; 690 }; 691 F33EE0EA135678CA00E09E65 /* PBXContainerItemProxy */ = { 692 isa = PBXContainerItemProxy; 693 containerPortal = F33EE0D3135678CA00E09E65 /* gtest.xcodeproj */; 694 proxyType = 2; 695 remoteGlobalIDString = 40C84987101A36850083642A /* gtest_unittest */; 696 remoteInfo = "gtest_unittest-static"; 697 }; 698 F33EE0EC135678CA00E09E65 /* PBXContainerItemProxy */ = { 699 isa = PBXContainerItemProxy; 700 containerPortal = F33EE0D3135678CA00E09E65 /* gtest.xcodeproj */; 701 proxyType = 2; 702 remoteGlobalIDString = 4089A0130FFACEFC000B29AE /* sample1_unittest-framework */; 703 remoteInfo = "sample1_unittest-framework"; 704 }; 705 F33EE0EE135678CA00E09E65 /* PBXContainerItemProxy */ = { 706 isa = PBXContainerItemProxy; 707 containerPortal = F33EE0D3135678CA00E09E65 /* gtest.xcodeproj */; 708 proxyType = 2; 709 remoteGlobalIDString = 40C84997101A36A60083642A /* sample1_unittest-static */; 710 remoteInfo = "sample1_unittest-static"; 658 711 }; 659 712 /* End PBXContainerItemProxy section */ … … 1246 1299 E49DC15512EF277200184A1F /* SourceProviderCache.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SourceProviderCache.cpp; sourceTree = "<group>"; }; 1247 1300 E4D8CE9B12FC42E100BC9F5A /* BloomFilter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BloomFilter.h; sourceTree = "<group>"; }; 1301 F33EE0D3135678CA00E09E65 /* gtest.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = gtest.xcodeproj; path = ../ThirdParty/gtest/xcode/gtest.xcodeproj; sourceTree = SOURCE_ROOT; }; 1302 F33EE4F91356972900E09E65 /* StringTests.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = StringTests.cpp; path = tests/StringTests.cpp; sourceTree = "<group>"; }; 1303 F3BBAEAF1356572F00CBD414 /* wtftests */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = wtftests; sourceTree = BUILT_PRODUCTS_DIR; }; 1304 F3BBAF0D1356662E00CBD414 /* RunAllWtfTests.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RunAllWtfTests.cpp; path = tests/RunAllWtfTests.cpp; sourceTree = "<group>"; }; 1248 1305 F3BD31D0126730180065467F /* TextPosition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TextPosition.h; path = text/TextPosition.h; sourceTree = "<group>"; }; 1249 1306 F5BB2BC5030F772101FCFE1D /* Completion.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = Completion.h; sourceTree = "<group>"; tabWidth = 8; }; … … 1323 1380 runOnlyForDeploymentPostprocessing = 0; 1324 1381 }; 1382 F3BBAEAD1356572F00CBD414 /* Frameworks */ = { 1383 isa = PBXFrameworksBuildPhase; 1384 buildActionMask = 2147483647; 1385 files = ( 1386 F33EE2D8135679CC00E09E65 /* libgtest.a in Frameworks */, 1387 F3BBAEB51356573A00CBD414 /* JavaScriptCore.framework in Frameworks */, 1388 ); 1389 runOnlyForDeploymentPostprocessing = 0; 1390 }; 1325 1391 /* End PBXFrameworksBuildPhase section */ 1326 1392 … … 1333 1399 141211200A48793C00480255 /* minidom */, 1334 1400 14BD59BF0A3E8F9000BAF59C /* testapi */, 1401 F3BBAEAF1356572F00CBD414 /* wtftests */, 1335 1402 ); 1336 1403 name = Products; … … 1350 1417 isa = PBXGroup; 1351 1418 children = ( 1419 F33EE0D3135678CA00E09E65 /* gtest.xcodeproj */, 1352 1420 A718F8211178EB4B002465A7 /* create_regex_tables */, 1353 1421 937B63CC09E766D200A671DD /* DerivedSources.make */, … … 1601 1669 isa = PBXGroup; 1602 1670 children = ( 1671 F3BBA8CA13564EED00CBD414 /* tests */, 1603 1672 A7C40C07130B057D00D002A1 /* BlockStack.h */, 1604 1673 A7C40C08130B057D00D002A1 /* SentinelLinkedList.h */, … … 2171 2240 ); 2172 2241 path = icu; 2242 sourceTree = "<group>"; 2243 }; 2244 F33EE0D4135678CA00E09E65 /* Products */ = { 2245 isa = PBXGroup; 2246 children = ( 2247 F33EE0E3135678CA00E09E65 /* gtest.framework */, 2248 F33EE0E5135678CA00E09E65 /* libgtest.a */, 2249 F33EE0E7135678CA00E09E65 /* libgtest_main.a */, 2250 F33EE0E9135678CA00E09E65 /* gtest_unittest-framework */, 2251 F33EE0EB135678CA00E09E65 /* gtest_unittest */, 2252 F33EE0ED135678CA00E09E65 /* sample1_unittest-framework */, 2253 F33EE0EF135678CA00E09E65 /* sample1_unittest-static */, 2254 ); 2255 name = Products; 2256 sourceTree = "<group>"; 2257 }; 2258 F3BBA8CA13564EED00CBD414 /* tests */ = { 2259 isa = PBXGroup; 2260 children = ( 2261 F33EE4F91356972900E09E65 /* StringTests.cpp */, 2262 F3BBAF0D1356662E00CBD414 /* RunAllWtfTests.cpp */, 2263 ); 2264 name = tests; 2173 2265 sourceTree = "<group>"; 2174 2266 }; … … 2623 2715 productType = "com.apple.product-type.tool"; 2624 2716 }; 2717 F3BBAEAE1356572F00CBD414 /* wtftests */ = { 2718 isa = PBXNativeTarget; 2719 buildConfigurationList = F3BBAEBB1356574D00CBD414 /* Build configuration list for PBXNativeTarget "wtftests" */; 2720 buildPhases = ( 2721 F3BBAEAC1356572F00CBD414 /* Sources */, 2722 F3BBAEAD1356572F00CBD414 /* Frameworks */, 2723 ); 2724 buildRules = ( 2725 ); 2726 dependencies = ( 2727 ); 2728 name = wtftests; 2729 productName = wtftests; 2730 productReference = F3BBAEAF1356572F00CBD414 /* wtftests */; 2731 productType = "com.apple.product-type.tool"; 2732 }; 2625 2733 /* End PBXNativeTarget section */ 2626 2734 … … 2644 2752 productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; 2645 2753 projectDirPath = ""; 2754 projectReferences = ( 2755 { 2756 ProductGroup = F33EE0D4135678CA00E09E65 /* Products */; 2757 ProjectRef = F33EE0D3135678CA00E09E65 /* gtest.xcodeproj */; 2758 }, 2759 ); 2646 2760 projectRoot = ""; 2647 2761 targets = ( … … 2652 2766 14BD59BE0A3E8F9000BAF59C /* testapi */, 2653 2767 932F5BDA0822A1C700736975 /* jsc */, 2768 F3BBAEAE1356572F00CBD414 /* wtftests */, 2654 2769 ); 2655 2770 }; 2656 2771 /* End PBXProject section */ 2772 2773 /* Begin PBXReferenceProxy section */ 2774 F33EE0E3135678CA00E09E65 /* gtest.framework */ = { 2775 isa = PBXReferenceProxy; 2776 fileType = wrapper.framework; 2777 path = gtest.framework; 2778 remoteRef = F33EE0E2135678CA00E09E65 /* PBXContainerItemProxy */; 2779 sourceTree = BUILT_PRODUCTS_DIR; 2780 }; 2781 F33EE0E5135678CA00E09E65 /* libgtest.a */ = { 2782 isa = PBXReferenceProxy; 2783 fileType = archive.ar; 2784 path = libgtest.a; 2785 remoteRef = F33EE0E4135678CA00E09E65 /* PBXContainerItemProxy */; 2786 sourceTree = BUILT_PRODUCTS_DIR; 2787 }; 2788 F33EE0E7135678CA00E09E65 /* libgtest_main.a */ = { 2789 isa = PBXReferenceProxy; 2790 fileType = archive.ar; 2791 path = libgtest_main.a; 2792 remoteRef = F33EE0E6135678CA00E09E65 /* PBXContainerItemProxy */; 2793 sourceTree = BUILT_PRODUCTS_DIR; 2794 }; 2795 F33EE0E9135678CA00E09E65 /* gtest_unittest-framework */ = { 2796 isa = PBXReferenceProxy; 2797 fileType = "compiled.mach-o.executable"; 2798 path = "gtest_unittest-framework"; 2799 remoteRef = F33EE0E8135678CA00E09E65 /* PBXContainerItemProxy */; 2800 sourceTree = BUILT_PRODUCTS_DIR; 2801 }; 2802 F33EE0EB135678CA00E09E65 /* gtest_unittest */ = { 2803 isa = PBXReferenceProxy; 2804 fileType = "compiled.mach-o.executable"; 2805 path = gtest_unittest; 2806 remoteRef = F33EE0EA135678CA00E09E65 /* PBXContainerItemProxy */; 2807 sourceTree = BUILT_PRODUCTS_DIR; 2808 }; 2809 F33EE0ED135678CA00E09E65 /* sample1_unittest-framework */ = { 2810 isa = PBXReferenceProxy; 2811 fileType = "compiled.mach-o.executable"; 2812 path = "sample1_unittest-framework"; 2813 remoteRef = F33EE0EC135678CA00E09E65 /* PBXContainerItemProxy */; 2814 sourceTree = BUILT_PRODUCTS_DIR; 2815 }; 2816 F33EE0EF135678CA00E09E65 /* sample1_unittest-static */ = { 2817 isa = PBXReferenceProxy; 2818 fileType = "compiled.mach-o.executable"; 2819 path = "sample1_unittest-static"; 2820 remoteRef = F33EE0EE135678CA00E09E65 /* PBXContainerItemProxy */; 2821 sourceTree = BUILT_PRODUCTS_DIR; 2822 }; 2823 /* End PBXReferenceProxy section */ 2657 2824 2658 2825 /* Begin PBXShellScriptBuildPhase section */ … … 2994 3161 runOnlyForDeploymentPostprocessing = 0; 2995 3162 }; 3163 F3BBAEAC1356572F00CBD414 /* Sources */ = { 3164 isa = PBXSourcesBuildPhase; 3165 buildActionMask = 2147483647; 3166 files = ( 3167 F3BBAF0E1356662E00CBD414 /* RunAllWtfTests.cpp in Sources */, 3168 F33EE4FA1356972900E09E65 /* StringTests.cpp in Sources */, 3169 ); 3170 runOnlyForDeploymentPostprocessing = 0; 3171 }; 2996 3172 /* End PBXSourcesBuildPhase section */ 2997 3173 … … 3255 3431 name = Profiling; 3256 3432 }; 3433 F3BBAEB11356572F00CBD414 /* Debug */ = { 3434 isa = XCBuildConfiguration; 3435 buildSettings = { 3436 GCC_PREPROCESSOR_DEFINITIONS = ( 3437 "$(GCC_PREPROCESSOR_DEFINITIONS)", 3438 "\"GTEST_HAS_RTTI=0\"", 3439 ); 3440 HEADER_SEARCH_PATHS = ( 3441 "$(HEADER_SEARCH_PATHS)", 3442 ../ThirdParty/gtest/include, 3443 ); 3444 PRODUCT_NAME = wtftests; 3445 WARNING_CFLAGS = ( 3446 "$(WARNING_CFLAGS_$(REAL_PLATFORM_NAME))", 3447 "-Wno-undef", 3448 ); 3449 }; 3450 name = Debug; 3451 }; 3452 F3BBAEB21356572F00CBD414 /* Release */ = { 3453 isa = XCBuildConfiguration; 3454 buildSettings = { 3455 GCC_PREPROCESSOR_DEFINITIONS = ( 3456 "$(GCC_PREPROCESSOR_DEFINITIONS)", 3457 "\"GTEST_HAS_RTTI=0\"", 3458 ); 3459 HEADER_SEARCH_PATHS = ( 3460 "$(HEADER_SEARCH_PATHS)", 3461 ../ThirdParty/gtest/include, 3462 ); 3463 PRODUCT_NAME = wtftests; 3464 WARNING_CFLAGS = ( 3465 "$(WARNING_CFLAGS_$(REAL_PLATFORM_NAME))", 3466 "-Wno-undef", 3467 ); 3468 }; 3469 name = Release; 3470 }; 3471 F3BBAEB31356572F00CBD414 /* Profiling */ = { 3472 isa = XCBuildConfiguration; 3473 buildSettings = { 3474 GCC_PREPROCESSOR_DEFINITIONS = ( 3475 "$(GCC_PREPROCESSOR_DEFINITIONS)", 3476 "\"GTEST_HAS_RTTI=0\"", 3477 ); 3478 HEADER_SEARCH_PATHS = ( 3479 "$(HEADER_SEARCH_PATHS)", 3480 ../ThirdParty/gtest/include, 3481 ); 3482 PRODUCT_NAME = wtftests; 3483 WARNING_CFLAGS = ( 3484 "$(WARNING_CFLAGS_$(REAL_PLATFORM_NAME))", 3485 "-Wno-undef", 3486 ); 3487 }; 3488 name = Profiling; 3489 }; 3490 F3BBAEB41356572F00CBD414 /* Production */ = { 3491 isa = XCBuildConfiguration; 3492 buildSettings = { 3493 GCC_PREPROCESSOR_DEFINITIONS = ( 3494 "$(GCC_PREPROCESSOR_DEFINITIONS)", 3495 "\"GTEST_HAS_RTTI=0\"", 3496 ); 3497 HEADER_SEARCH_PATHS = ( 3498 "$(HEADER_SEARCH_PATHS)", 3499 ../ThirdParty/gtest/include, 3500 ); 3501 PRODUCT_NAME = wtftests; 3502 WARNING_CFLAGS = ( 3503 "$(WARNING_CFLAGS_$(REAL_PLATFORM_NAME))", 3504 "-Wno-undef", 3505 ); 3506 }; 3507 name = Production; 3508 }; 3257 3509 /* End XCBuildConfiguration section */ 3258 3510 … … 3335 3587 defaultConfigurationName = Production; 3336 3588 }; 3589 F3BBAEBB1356574D00CBD414 /* Build configuration list for PBXNativeTarget "wtftests" */ = { 3590 isa = XCConfigurationList; 3591 buildConfigurations = ( 3592 F3BBAEB11356572F00CBD414 /* Debug */, 3593 F3BBAEB21356572F00CBD414 /* Release */, 3594 F3BBAEB31356572F00CBD414 /* Profiling */, 3595 F3BBAEB41356572F00CBD414 /* Production */, 3596 ); 3597 defaultConfigurationIsVisible = 0; 3598 defaultConfigurationName = Production; 3599 }; 3337 3600 /* End XCConfigurationList section */ 3338 3601 };
Note: See TracChangeset
for help on using the changeset viewer.