mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 00:49:32 +00:00
Added KeePassKit dependency to MacPassTest
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#import "MPAutotypeCommand.h"
|
||||
|
||||
@interface MPAutotypeDelay : MPAutotypeCommand
|
||||
|
||||
@property (readonly) NSUInteger delay;
|
||||
/**
|
||||
* Creates an DelayCommand that delays the execution for n milliseconds
|
||||
*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
#import <KeePassKit/KeePassKit.h>
|
||||
#import "MPEntrySearchContext.h"
|
||||
#import "MPTargetNodeResolving.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user