summaryrefslogtreecommitdiffstats
path: root/macosx/HandBrake Tests/HBJobTests.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-05-20 19:25:36 +0000
committerritsuka <[email protected]>2015-05-20 19:25:36 +0000
commite5425e2befcf55a9ef97036fde585f5b35cef72b (patch)
treec8196fd2baca917001423606f927d34c6f3f7134 /macosx/HandBrake Tests/HBJobTests.m
parent35cb55b6f77e21841fd46b666adc1888fcc81854 (diff)
MacGui: add a test target to the Xcode project, plus some simple test. Use a forward declaration instead of a #import to in HBJob to allow testing to work.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7214 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HandBrake Tests/HBJobTests.m')
-rw-r--r--macosx/HandBrake Tests/HBJobTests.m42
1 files changed, 42 insertions, 0 deletions
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