blob: 231f151a4544f69a527ee388274c199429006362 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/* 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];
}
- (void)tearDown
{
[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
|