diff options
author | Damiano Galassi <[email protected]> | 2015-10-25 07:04:39 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2015-10-25 07:04:39 +0100 |
commit | b5a8b39d9b2efea411a02bc906f275fc78ba92b4 (patch) | |
tree | 20400435cd8d3970297bd109ac6f9567c7703c62 /macosx/HandBrake Tests/HBMockTitle.m | |
parent | 646cb272a2c9feecc5a839360248621991c1f453 (diff) |
MacGui: add some simple tests for the undo/redo implementation of HBJob.
Diffstat (limited to 'macosx/HandBrake Tests/HBMockTitle.m')
-rw-r--r-- | macosx/HandBrake Tests/HBMockTitle.m | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/macosx/HandBrake Tests/HBMockTitle.m b/macosx/HandBrake Tests/HBMockTitle.m index 78ce4c05c..9cfd374a3 100644 --- a/macosx/HandBrake Tests/HBMockTitle.m +++ b/macosx/HandBrake Tests/HBMockTitle.m @@ -7,6 +7,7 @@ // #import "HBMockTitle.h" +#import "HBChapter.h" extern NSString *keyAudioTrackIndex; extern NSString *keyAudioTrackName; @@ -162,9 +163,18 @@ extern NSString *keySubTrackType; return nil; } -- (NSArray *)chapters +- (NSArray<HBChapter *> *)chapters { - return @[@"Chapter 1", @"Chapter 2"]; + NSMutableArray *chapters = [NSMutableArray array]; + + for (int i = 0; i < 10; i++) + { + NSString *title = [NSString stringWithFormat:@"Chapter %d", i + 1]; + [chapters addObject:[[HBChapter alloc] initWithTitle:title + index:i + 1 + duration:100]]; + } + return [chapters copy]; } |