Added KeePassKit dependency to MacPassTest

This commit is contained in:
michael starke
2016-01-05 10:42:20 +01:00
parent 06d24f4870
commit a51ddbbe1b
9 changed files with 60 additions and 25 deletions

View File

@@ -9,6 +9,8 @@
#import "MPAutotypeCommand.h"
@interface MPAutotypeDelay : MPAutotypeCommand
@property (readonly) NSUInteger delay;
/**
* Creates an DelayCommand that delays the execution for n milliseconds
*

View File

@@ -8,10 +8,8 @@
#import "MPAutotypeDelay.h"
@interface MPAutotypeDelay () {
@private
NSUInteger _delay;
}
@interface MPAutotypeDelay ()
@property (readwrite) NSUInteger delay;
@end
@implementation MPAutotypeDelay
@@ -22,7 +20,7 @@
}
- (NSString *)description {
return [[NSString alloc] initWithFormat:@"%@ delay: %ld ms", self.class, _delay];
return [[NSString alloc] initWithFormat:@"%@ delay: %ld ms", self.class, self.delay];
}
- (instancetype)initWithDelay:(NSUInteger)delay {
@@ -36,7 +34,7 @@
- (void)execute {
/* milliseconds * 10000 = microseconds */
usleep((useconds_t)(_delay*1000));
usleep((useconds_t)(self.delay*1000));
}
@end

View File

@@ -21,7 +21,7 @@
//
#import <Cocoa/Cocoa.h>
#import "KeePassKit/KeePassKit.h"
#import <KeePassKit/KeePassKit.h>
#import "MPEntrySearchContext.h"
#import "MPTargetNodeResolving.h"