mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 08:25:32 +00:00
31 lines
1.1 KiB
Objective-C
31 lines
1.1 KiB
Objective-C
//
|
|
// KeymanEngineTestsStaticHelperMethods.m
|
|
// KeymanEngine4MacTests
|
|
//
|
|
// Created by tom on 1/18/18.
|
|
// Copyright © 2018 SIL International. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "KeymanEngineTestsStaticHelperMethods.h"
|
|
|
|
@implementation KeymanEngineTestsStaticHelperMethods
|
|
|
|
+ (KMXFile *)getKmxFileTestMacEngine {
|
|
NSString *path = [[NSBundle bundleForClass:[KeymanEngineTestsStaticHelperMethods class]] pathForResource:@"TestMacEngine.kmx" ofType:nil];
|
|
KMXFile *kmxFile = [[KMXFile alloc] initWithFilePath:path];
|
|
return kmxFile;
|
|
}
|
|
|
|
+ (KMXFile *)getKmxFileForPlatformTest {
|
|
NSString *path = [[NSBundle bundleForClass:[KeymanEngineTestsStaticHelperMethods class]] pathForResource:@"PlatformTest.kmx" ofType:nil];
|
|
KMXFile *kmxFile = [[KMXFile alloc] initWithFilePath:path];
|
|
return kmxFile;
|
|
}
|
|
|
|
+ (KMXFile *)getKmxFileForCipherMusicTests {
|
|
NSString *path = [[NSBundle bundleForClass:[KeymanEngineTestsStaticHelperMethods class]] pathForResource:@"CipherMusicUnicode.kmx" ofType:nil];
|
|
KMXFile *kmxFile = [[KMXFile alloc] initWithFilePath:path];
|
|
return kmxFile;
|
|
}
|
|
@end
|