/* HBPresetsTests.m $ This file is part of the HandBrake source code. Homepage: . It may be used under the terms of the GNU General Public License. */ #import #import #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