diff options
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBController.m | 1 | ||||
-rw-r--r-- | macosx/HBCore.m | 2 | ||||
-rw-r--r-- | macosx/HBJob+HBJobConversion.m | 2 | ||||
-rw-r--r-- | macosx/HBJob+UIAdditions.m | 1 | ||||
-rw-r--r-- | macosx/HBJob.h | 4 | ||||
-rw-r--r-- | macosx/HBJob.m | 1 | ||||
-rw-r--r-- | macosx/HandBrake Tests/HBJobTests.m | 42 | ||||
-rw-r--r-- | macosx/HandBrake Tests/HBPresetsTests.m | 51 | ||||
-rw-r--r-- | macosx/HandBrake Tests/Info.plist | 24 | ||||
-rw-r--r-- | macosx/HandBrake.xcodeproj/project.pbxproj | 194 | ||||
-rw-r--r-- | macosx/HandBrake.xcodeproj/xcshareddata/xcschemes/HandBrake [DEBUG].xcscheme | 24 | ||||
-rw-r--r-- | macosx/HandBrake.xcodeproj/xcshareddata/xcschemes/HandBrake [RELEASE].xcscheme | 24 |
12 files changed, 368 insertions, 2 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m index f15314f4f..5074eded0 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -27,6 +27,7 @@ #import "HBAddPresetController.h" #import "HBCore.h" +#import "HBTitle.h" #import "HBJob.h" #import "HBStateFormatter.h" diff --git a/macosx/HBCore.m b/macosx/HBCore.m index 998dcd022..0f7b6cb8f 100644 --- a/macosx/HBCore.m +++ b/macosx/HBCore.m @@ -10,6 +10,8 @@ #import "HBDVDDetector.h" #import "HBUtilities.h" +#import "HBTitle.h" + #include <dlfcn.h> static BOOL globalInitialized = NO; diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m index 1c047c379..4f0288921 100644 --- a/macosx/HBJob+HBJobConversion.m +++ b/macosx/HBJob+HBJobConversion.m @@ -9,6 +9,8 @@ #import "HBAudioDefaults.h" #import "HBAudioTrack.h" +#import "HBTitle.h" + @implementation HBJob (HBJobConversion) /** diff --git a/macosx/HBJob+UIAdditions.m b/macosx/HBJob+UIAdditions.m index da0ccf7e3..71696e877 100644 --- a/macosx/HBJob+UIAdditions.m +++ b/macosx/HBJob+UIAdditions.m @@ -7,6 +7,7 @@ #import "HBJob+UIAdditions.h" #import "HBAttributedStringAdditions.h" +#import "HBTitle.h" #import "HBJob.h" #import "HBAudioTrack.h" #import "HBAudioDefaults.h" diff --git a/macosx/HBJob.h b/macosx/HBJob.h index 43b60e553..baaeda771 100644 --- a/macosx/HBJob.h +++ b/macosx/HBJob.h @@ -6,8 +6,8 @@ #import <Foundation/Foundation.h> -#import "HBPreset.h" -#import "HBTitle.h" +@class HBPreset; +@class HBTitle; #import "HBRange.h" #import "HBVideo.h" diff --git a/macosx/HBJob.m b/macosx/HBJob.m index 021c53640..ff7a7b5ad 100644 --- a/macosx/HBJob.m +++ b/macosx/HBJob.m @@ -5,6 +5,7 @@ It may be used under the terms of the GNU General Public License. */ #import "HBJob.h" +#import "HBTitle.h" #import "HBPreset.h" #import "HBAudioDefaults.h" diff --git a/macosx/HandBrake Tests/HBJobTests.m b/macosx/HandBrake Tests/HBJobTests.m new file mode 100644 index 000000000..e12f3ef10 --- /dev/null +++ b/macosx/HandBrake Tests/HBJobTests.m @@ -0,0 +1,42 @@ +/* HBJobTests.m $ + + This file is part of the HandBrake source code. + Homepage: <http://handbrake.fr/>. + It may be used under the terms of the GNU General Public License. */ + +#import <Cocoa/Cocoa.h> +#import <XCTest/XCTest.h> + +#import "HBJob.h" +#import "HBPresetsManager.h" +#import "HBPreset.h" + +@interface HBJobTests : XCTestCase + +@property (nonatomic, readonly) HBPresetsManager *manager; + +@end + +@implementation HBJobTests + +- (void)setUp { + [super setUp]; + + _manager = [[HBPresetsManager alloc] init]; + [_manager generateBuiltInPresets]; + + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testJobCreation { + HBJob *job = [[HBJob alloc] init]; + + XCTAssert(job, @"Pass"); +} + +@end diff --git a/macosx/HandBrake Tests/HBPresetsTests.m b/macosx/HandBrake Tests/HBPresetsTests.m new file mode 100644 index 000000000..aff566911 --- /dev/null +++ b/macosx/HandBrake Tests/HBPresetsTests.m @@ -0,0 +1,51 @@ +/* HBPresetsTests.m $ + + This file is part of the HandBrake source code. + Homepage: <http://handbrake.fr/>. + It may be used under the terms of the GNU General Public License. */ + +#import <Cocoa/Cocoa.h> +#import <XCTest/XCTest.h> + +#import "HBPreset.h" +#import "HBPresetsManager.h" + +@interface HBPresetsTests : XCTestCase + +@end + +@implementation HBPresetsTests + +- (void)setUp { + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testManagerCreation { + HBPresetsManager *manager = [[HBPresetsManager alloc] init]; + + XCTAssert(manager, @"Pass"); +} + +- (void)testDefaultPresets { + HBPresetsManager *manager = [[HBPresetsManager alloc] init]; + [manager generateBuiltInPresets]; + + XCTAssert(manager.root.children.count > 1, @"Pass"); +} + +- (void)testCreationTime { + HBPresetsManager *manager = [[HBPresetsManager alloc] init]; + + [self measureBlock:^{ + [manager generateBuiltInPresets]; + + }]; +} + +@end diff --git a/macosx/HandBrake Tests/Info.plist b/macosx/HandBrake Tests/Info.plist new file mode 100644 index 000000000..ede3719bd --- /dev/null +++ b/macosx/HandBrake Tests/Info.plist @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>en</string> + <key>CFBundleExecutable</key> + <string>$(EXECUTABLE_NAME)</string> + <key>CFBundleIdentifier</key> + <string>HB.$(PRODUCT_NAME:rfc1034identifier)</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>$(PRODUCT_NAME)</string> + <key>CFBundlePackageType</key> + <string>BNDL</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleSignature</key> + <string>????</string> + <key>CFBundleVersion</key> + <string>1</string> +</dict> +</plist> diff --git a/macosx/HandBrake.xcodeproj/project.pbxproj b/macosx/HandBrake.xcodeproj/project.pbxproj index 19e786608..97d2e0ac1 100644 --- a/macosx/HandBrake.xcodeproj/project.pbxproj +++ b/macosx/HandBrake.xcodeproj/project.pbxproj @@ -161,6 +161,8 @@ A9906B2C1A710920001D82D5 /* HBQueueController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9906B2B1A710920001D82D5 /* HBQueueController.m */; }; A990D9071A64562200139032 /* HBJob+HBJobConversion.m in Sources */ = {isa = PBXBuildFile; fileRef = A990D9061A64562200139032 /* HBJob+HBJobConversion.m */; }; A9935213196F38A70069C6B7 /* ChaptersTitles.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9935211196F38A70069C6B7 /* ChaptersTitles.xib */; }; + A9A24B2D1B09F6FD00AD1FAB /* HBPresetsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A9A24B2C1B09F6FD00AD1FAB /* HBPresetsTests.m */; }; + A9A24B2F1B09F87400AD1FAB /* HBJobTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A9A24B2E1B09F87400AD1FAB /* HBJobTests.m */; }; A9AA447A1970664A00D7DEFC /* HBUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = A9AA44791970664A00D7DEFC /* HBUtilities.m */; }; A9BB0F2719A0ECE40079F1C1 /* HBHUDButtonCell.m in Sources */ = {isa = PBXBuildFile; fileRef = A9BB0F2619A0ECE40079F1C1 /* HBHUDButtonCell.m */; }; A9BC24C91A69293E007DC41A /* HBAttributedStringAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = A9BC24C81A69293E007DC41A /* HBAttributedStringAdditions.m */; }; @@ -235,6 +237,13 @@ remoteGlobalIDString = 273F216E14ADD2170021BE6D; remoteInfo = external; }; + A95B8D991B09F16700F2F152 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 273F1FE014AD9DA40021BE6D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 273F203814ADBC200021BE6D; + remoteInfo = HandBrake; + }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -423,6 +432,8 @@ A95512881A320A12001BFC6F /* libjansson.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libjansson.a; path = external/contrib/lib/libjansson.a; sourceTree = BUILT_PRODUCTS_DIR; }; A9597A281A49749D00007771 /* HBRange+UIAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "HBRange+UIAdditions.h"; sourceTree = "<group>"; }; A9597A291A49749D00007771 /* HBRange+UIAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "HBRange+UIAdditions.m"; sourceTree = "<group>"; }; + A95B8D931B09F16700F2F152 /* HandBrake Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "HandBrake Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + A95B8D961B09F16700F2F152 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; A967E4B91A16768200DF1DFC /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; }; A9706CB21AC1436F00BAEAA8 /* HBApplication.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HBApplication.h; sourceTree = "<group>"; }; A9706CB31AC1436F00BAEAA8 /* HBApplication.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HBApplication.m; sourceTree = "<group>"; }; @@ -440,6 +451,8 @@ A990D9061A64562200139032 /* HBJob+HBJobConversion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "HBJob+HBJobConversion.m"; sourceTree = "<group>"; }; A9935212196F38A70069C6B7 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = ChaptersTitles.xib; sourceTree = "<group>"; }; A997D8EB1A4ABB0900E19B6F /* HBPresetCoding.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HBPresetCoding.h; sourceTree = "<group>"; }; + A9A24B2C1B09F6FD00AD1FAB /* HBPresetsTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HBPresetsTests.m; sourceTree = "<group>"; }; + A9A24B2E1B09F87400AD1FAB /* HBJobTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HBJobTests.m; sourceTree = "<group>"; }; A9AA44781970664A00D7DEFC /* HBUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HBUtilities.h; sourceTree = "<group>"; }; A9AA44791970664A00D7DEFC /* HBUtilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HBUtilities.m; sourceTree = "<group>"; }; A9AA447B1970724D00D7DEFC /* HBAdvancedController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HBAdvancedController.h; sourceTree = "<group>"; }; @@ -600,6 +613,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + A95B8D901B09F16700F2F152 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -646,6 +666,7 @@ children = ( 273F204114ADBC210021BE6D /* HandBrake */, 273F200214ADAE950021BE6D /* HandBrakeCLI */, + A95B8D941B09F16700F2F152 /* HandBrake Tests */, 273F200014ADAE950021BE6D /* Products */, 27D6C72314B1013400B785E4 /* Products (external) */, 273F20CD14ADC8E60021BE6D /* Resources */, @@ -661,6 +682,7 @@ children = ( 273F1FFF14ADAE950021BE6D /* HandBrakeCLI */, 273F203914ADBC210021BE6D /* HandBrake.app */, + A95B8D931B09F16700F2F152 /* HandBrake Tests.xctest */, ); name = Products; sourceTree = "<group>"; @@ -945,6 +967,24 @@ name = "UI Bindings Additions"; sourceTree = "<group>"; }; + A95B8D941B09F16700F2F152 /* HandBrake Tests */ = { + isa = PBXGroup; + children = ( + A9A24B2E1B09F87400AD1FAB /* HBJobTests.m */, + A9A24B2C1B09F6FD00AD1FAB /* HBPresetsTests.m */, + A95B8D951B09F16700F2F152 /* Supporting Files */, + ); + path = "HandBrake Tests"; + sourceTree = "<group>"; + }; + A95B8D951B09F16700F2F152 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + A95B8D961B09F16700F2F152 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = "<group>"; + }; A98C29C51977C00000AF5DED /* Core */ = { isa = PBXGroup; children = ( @@ -1142,6 +1182,24 @@ productReference = 273F203914ADBC210021BE6D /* HandBrake.app */; productType = "com.apple.product-type.application"; }; + A95B8D921B09F16700F2F152 /* HandBrake Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = A95B8D9D1B09F16800F2F152 /* Build configuration list for PBXNativeTarget "HandBrake Tests" */; + buildPhases = ( + A95B8D8F1B09F16700F2F152 /* Sources */, + A95B8D901B09F16700F2F152 /* Frameworks */, + A95B8D911B09F16700F2F152 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + A95B8D9A1B09F16700F2F152 /* PBXTargetDependency */, + ); + name = "HandBrake Tests"; + productName = "HandBrake Tests"; + productReference = A95B8D931B09F16700F2F152 /* HandBrake Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -1149,6 +1207,12 @@ isa = PBXProject; attributes = { LastUpgradeCheck = 0630; + TargetAttributes = { + A95B8D921B09F16700F2F152 = { + CreatedOnToolsVersion = 6.3.1; + TestTargetID = 273F203814ADBC200021BE6D; + }; + }; }; buildConfigurationList = 273F1FE314AD9DA40021BE6D /* Build configuration list for PBXProject "HandBrake" */; compatibilityVersion = "Xcode 3.2"; @@ -1166,6 +1230,7 @@ 273F203814ADBC200021BE6D /* HandBrake */, 273F1FFE14ADAE950021BE6D /* HandBrakeCLI */, 273F216E14ADD2170021BE6D /* external */, + A95B8D921B09F16700F2F152 /* HandBrake Tests */, ); }; /* End PBXProject section */ @@ -1262,6 +1327,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + A95B8D911B09F16700F2F152 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -1341,6 +1413,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + A95B8D8F1B09F16700F2F152 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A9A24B2D1B09F6FD00AD1FAB /* HBPresetsTests.m in Sources */, + A9A24B2F1B09F87400AD1FAB /* HBJobTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -1354,6 +1435,11 @@ target = 273F216E14ADD2170021BE6D /* external */; targetProxy = 2781697014B02B1B00A28B61 /* PBXContainerItemProxy */; }; + A95B8D9A1B09F16700F2F152 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 273F203814ADBC200021BE6D /* HandBrake */; + targetProxy = A95B8D991B09F16700F2F152 /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ @@ -1653,6 +1739,7 @@ "$(inherited)", "\"$(SRCROOT)\"", ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; HEADER_SEARCH_PATHS = ( "\"$(EXTERNAL_BUILD)/libhb\"", "\"$(EXTERNAL_BUILD)/contrib/include\"", @@ -1678,6 +1765,7 @@ "$(inherited)", "\"$(SRCROOT)\"", ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; HEADER_SEARCH_PATHS = ( "\"$(EXTERNAL_BUILD)/libhb\"", "\"$(EXTERNAL_BUILD)/contrib/include\"", @@ -1708,6 +1796,103 @@ }; name = release; }; + A95B8D9B1B09F16800F2F152 /* debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COMBINE_HIDPI_IMAGES = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(DEVELOPER_FRAMEWORKS_DIR)", + "$(inherited)", + ); + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + INFOPLIST_FILE = "HandBrake Tests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.7; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HandBrake.app/Contents/MacOS/HandBrake"; + }; + name = debug; + }; + A95B8D9C1B09F16800F2F152 /* release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COMBINE_HIDPI_IMAGES = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + FRAMEWORK_SEARCH_PATHS = ( + "$(DEVELOPER_FRAMEWORKS_DIR)", + "$(inherited)", + ); + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + INFOPLIST_FILE = "HandBrake Tests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 10.7; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = macosx; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HandBrake.app/Contents/MacOS/HandBrake"; + }; + name = release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -1747,6 +1932,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = release; }; + A95B8D9D1B09F16800F2F152 /* Build configuration list for PBXNativeTarget "HandBrake Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A95B8D9B1B09F16800F2F152 /* debug */, + A95B8D9C1B09F16800F2F152 /* release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = release; + }; /* End XCConfigurationList section */ }; rootObject = 273F1FE014AD9DA40021BE6D /* Project object */; diff --git a/macosx/HandBrake.xcodeproj/xcshareddata/xcschemes/HandBrake [DEBUG].xcscheme b/macosx/HandBrake.xcodeproj/xcshareddata/xcschemes/HandBrake [DEBUG].xcscheme index 01e1b2cb7..f2dfbaa50 100644 --- a/macosx/HandBrake.xcodeproj/xcshareddata/xcschemes/HandBrake [DEBUG].xcscheme +++ b/macosx/HandBrake.xcodeproj/xcshareddata/xcschemes/HandBrake [DEBUG].xcscheme @@ -34,6 +34,20 @@ ReferencedContainer = "container:HandBrake.xcodeproj"> </BuildableReference> </BuildActionEntry> + <BuildActionEntry + buildForTesting = "YES" + buildForRunning = "YES" + buildForProfiling = "NO" + buildForArchiving = "NO" + buildForAnalyzing = "YES"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "A95B8D921B09F16700F2F152" + BuildableName = "HandBrake Tests.xctest" + BlueprintName = "HandBrake Tests" + ReferencedContainer = "container:HandBrake.xcodeproj"> + </BuildableReference> + </BuildActionEntry> </BuildActionEntries> </BuildAction> <TestAction @@ -42,6 +56,16 @@ shouldUseLaunchSchemeArgsEnv = "YES" buildConfiguration = "debug"> <Testables> + <TestableReference + skipped = "NO"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "A95B8D921B09F16700F2F152" + BuildableName = "HandBrake Tests.xctest" + BlueprintName = "HandBrake Tests" + ReferencedContainer = "container:HandBrake.xcodeproj"> + </BuildableReference> + </TestableReference> </Testables> <MacroExpansion> <BuildableReference diff --git a/macosx/HandBrake.xcodeproj/xcshareddata/xcschemes/HandBrake [RELEASE].xcscheme b/macosx/HandBrake.xcodeproj/xcshareddata/xcschemes/HandBrake [RELEASE].xcscheme index 0409cfdd9..6eb50b46b 100644 --- a/macosx/HandBrake.xcodeproj/xcshareddata/xcschemes/HandBrake [RELEASE].xcscheme +++ b/macosx/HandBrake.xcodeproj/xcshareddata/xcschemes/HandBrake [RELEASE].xcscheme @@ -34,6 +34,20 @@ ReferencedContainer = "container:HandBrake.xcodeproj"> </BuildableReference> </BuildActionEntry> + <BuildActionEntry + buildForTesting = "YES" + buildForRunning = "YES" + buildForProfiling = "NO" + buildForArchiving = "NO" + buildForAnalyzing = "YES"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "A95B8D921B09F16700F2F152" + BuildableName = "HandBrake Tests.xctest" + BlueprintName = "HandBrake Tests" + ReferencedContainer = "container:HandBrake.xcodeproj"> + </BuildableReference> + </BuildActionEntry> </BuildActionEntries> </BuildAction> <TestAction @@ -42,6 +56,16 @@ shouldUseLaunchSchemeArgsEnv = "YES" buildConfiguration = "release"> <Testables> + <TestableReference + skipped = "NO"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "A95B8D921B09F16700F2F152" + BuildableName = "HandBrake Tests.xctest" + BlueprintName = "HandBrake Tests" + ReferencedContainer = "container:HandBrake.xcodeproj"> + </BuildableReference> + </TestableReference> </Testables> <MacroExpansion> <BuildableReference |