mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 02:22:28 +00:00
Fixed teste, resources still missing
Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
@@ -2253,6 +2253,7 @@
|
|||||||
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MacPass.app/Contents/MacOS/MacPass";
|
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MacPass.app/Contents/MacOS/MacPass";
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||||
CLANG_CXX_LIBRARY = "libc++";
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
COMBINE_HIDPI_IMAGES = YES;
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
@@ -2276,6 +2277,7 @@
|
|||||||
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MacPass.app/Contents/MacOS/MacPass";
|
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/MacPass.app/Contents/MacOS/MacPass";
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||||
CLANG_CXX_LIBRARY = "libc++";
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
CLANG_WARN_EMPTY_BODY = YES;
|
CLANG_WARN_EMPTY_BODY = YES;
|
||||||
COMBINE_HIDPI_IMAGES = YES;
|
COMBINE_HIDPI_IMAGES = YES;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#import <XCTest/XCTest.h>
|
#import <XCTest/XCTest.h>
|
||||||
|
|
||||||
#import "MPDocument.h"
|
#import "MPDocument.h"
|
||||||
#import "KPKTree.h"
|
#import "KeePassKit/KeePassKit.h"
|
||||||
|
|
||||||
@interface MPDatabaseLoading : XCTestCase
|
@interface MPDatabaseLoading : XCTestCase
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- (void)testLoadVersion1 {
|
- (void)testLoadVersion1 {
|
||||||
NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
|
NSBundle *myBundle = [NSBundle bundleForClass:[KPKTree class]];
|
||||||
NSURL *url = [myBundle URLForResource:@"Test_Password_1234" withExtension:@"kdb"];
|
NSURL *url = [myBundle URLForResource:@"Test_Password_1234" withExtension:@"kdb"];
|
||||||
NSError *error = nil;
|
NSError *error = nil;
|
||||||
MPDocument *document = [[MPDocument alloc] initWithContentsOfURL:url ofType:@"kdb" error:&error];
|
MPDocument *document = [[MPDocument alloc] initWithContentsOfURL:url ofType:@"kdb" error:&error];
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)testVersion1WrongPassword {
|
- (void)testVersion1WrongPassword {
|
||||||
NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
|
NSBundle *myBundle = [NSBundle bundleForClass:[KPKTree class]];
|
||||||
NSURL *url = [myBundle URLForResource:@"Test_Password_1234" withExtension:@"kdb"];
|
NSURL *url = [myBundle URLForResource:@"Test_Password_1234" withExtension:@"kdb"];
|
||||||
NSError *error = nil;
|
NSError *error = nil;
|
||||||
MPDocument *document = [[MPDocument alloc] initWithContentsOfURL:url ofType:@"kdb" error:&error];
|
MPDocument *document = [[MPDocument alloc] initWithContentsOfURL:url ofType:@"kdb" error:&error];
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)testLoadDatabaseVerions2 {
|
- (void)testLoadDatabaseVerions2 {
|
||||||
NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
|
NSBundle *myBundle = [NSBundle bundleForClass:[KPKTree class]];
|
||||||
NSURL *url = [myBundle URLForResource:@"Test_Password_1234" withExtension:@"kdbx"];
|
NSURL *url = [myBundle URLForResource:@"Test_Password_1234" withExtension:@"kdbx"];
|
||||||
NSError *error = nil;
|
NSError *error = nil;
|
||||||
MPDocument *document = [[MPDocument alloc] initWithContentsOfURL:url ofType:@"kdbx" error:&error];
|
MPDocument *document = [[MPDocument alloc] initWithContentsOfURL:url ofType:@"kdbx" error:&error];
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#import <XCTest/XCTest.h>
|
#import <XCTest/XCTest.h>
|
||||||
|
|
||||||
#import "MPDocument.h"
|
#import "MPDocument.h"
|
||||||
#import "KPKCompositeKey.h"
|
#import "KeePassKit/KeePassKit.h"
|
||||||
|
|
||||||
@interface MPDatabasePasswordAndKeyfile : XCTestCase {
|
@interface MPDatabasePasswordAndKeyfile : XCTestCase {
|
||||||
MPDocument *_database;
|
MPDocument *_database;
|
||||||
|
|||||||
@@ -9,9 +9,7 @@
|
|||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
#import <XCTest/XCTest.h>
|
#import <XCTest/XCTest.h>
|
||||||
|
|
||||||
#import "KPKTree.h"
|
#import "KeePassKit/KeePassKit.h"
|
||||||
#import "KPKGroup.h"
|
|
||||||
#import "KPKEntry.h"
|
|
||||||
|
|
||||||
@interface MPDatabaseSearch : XCTestCase
|
@interface MPDatabaseSearch : XCTestCase
|
||||||
|
|
||||||
|
|||||||
@@ -17,10 +17,7 @@
|
|||||||
|
|
||||||
#import "MPKeyMapper.h"
|
#import "MPKeyMapper.h"
|
||||||
|
|
||||||
#import "KPKEntry.h"
|
#import "KeePassKit/KeePassKit.h"
|
||||||
#import "KPKAttribute.h"
|
|
||||||
#import "KPKAutotype.h"
|
|
||||||
#import "KPKWindowAssociation.h"
|
|
||||||
|
|
||||||
@interface MPTestAutotype : XCTestCase
|
@interface MPTestAutotype : XCTestCase
|
||||||
@property (strong) KPKEntry *entry;
|
@property (strong) KPKEntry *entry;
|
||||||
|
|||||||
@@ -9,9 +9,7 @@
|
|||||||
#import <XCTest/XCTest.h>
|
#import <XCTest/XCTest.h>
|
||||||
|
|
||||||
#import "MPDocument.h"
|
#import "MPDocument.h"
|
||||||
#import "KPKTree.h"
|
#import "KeePassKit/KeePassKit.h"
|
||||||
#import "KPKCompositeKey.h"
|
|
||||||
|
|
||||||
@interface MPTestDocument : XCTestCase
|
@interface MPTestDocument : XCTestCase
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Reference in New Issue
Block a user