diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-12-04 19:16:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-12-04 19:38:30 +0900 |
commit | fdcd72088371b3d8dfd31f2a5159861ce0be5535 (patch) | |
tree | 06c160cc34157344f62b6c19af297858a0e57157 /debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50608-blocks_align2.m | |
parent | a5d7db3b2c6171ea9e76b84155d2dfb66c243e5a (diff) | |
download | extra-dependencies-fdcd72088371b3d8dfd31f2a5159861ce0be5535.tar.gz extra-dependencies-fdcd72088371b3d8dfd31f2a5159861ce0be5535.zip |
uncrustify-trinity: updated based on upstream version 0.76.0
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50608-blocks_align2.m')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50608-blocks_align2.m | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50608-blocks_align2.m b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50608-blocks_align2.m new file mode 100644 index 00000000..b37c1b4b --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/oc/50608-blocks_align2.m @@ -0,0 +1,89 @@ +#import <Foundation/Foundation.h> + +@interface TestClass : NSObject +@end + +@implementation TestClass + +- (void)method1 { + [session mergeCommonMovieItems:^(NSURL *exportURL, NSError *exportError) { + NSDictionary *settings = [self getSettings]; + + [session postSessionWithCallback:^(NSError *error, id d) { + if (error == nil) { + [session uploadSessionWithCallback:^(NSError *error, id d) { + NSLog(@"OK"); + }]; + } else { + NSLog(@"Something went wrong: %@", error); + return; + } + }]; + }]; +} + +- (void)postSelection:(NSString *)testName + selection:(NSString *)selection { + dispatch_async(dispatch_get_main_queue(), ^{ + [self warmup:^{ + [self setReady]; + }]; + }); + + dispatch_after(retryTime, dispatch_get_main_queue(), ^(void) { + [self postSelection:testName selection:selection]; + }); + + [TestClassRequest performMethod:TestClassRequestMethodPOST + responseHandler:^(NSURLResponse *response) { + dispatch_after(retryTime, dispatch_get_main_queue(), ^(void) { + [self postSelection:testName selection:selection]; + }); + }]; + + [UIView transitionWithView:self.view.window duration:0.75 options:UIViewAnimationOptionTransitionFlipFromRight animations:^{ + [self presentViewController:viewController animated:NO completion:nil]; + } complete:^{}]; +} + +- (void)closeEditor { + dispatch_async(dispatch_get_main_queue(), ^{ + if ([[TestClass sharedInstance] TestClassController] != nil && [[[TestClass sharedInstance] TestClassController] isKindOfClass:[TestClassSocialViewController class]]) { + [[TestClass sharedInstance].TestClassTransitionController transitionToViewController:[[TestClass sharedInstance] TestClassController] withCompletitionHandler:^{ + [[TestClass sharedInstance] setTestClassVideoPlayerViewController:nil]; + }]; + } else if ([[TestClass sharedInstance] TestClassController] != nil && [[[TestClass sharedInstance] TestClassController] isKindOfClass:[TestClassModalViewController class]]) { + [[TestClass sharedInstance].TestClassTransitionController transitionToViewController:nil withCompletitionHandler:^{ + [[TestClass sharedInstance] setTestClassVideoPlayerViewController:nil]; + }]; + } else { + [[TestClass sharedInstance] hideTestClass]; + } + }); +} + +- (void)testMethodWrapper { + SEL testMethodForSelectorSel = @selector(testMethod:); + __block void *testMethodForSelectorBlock = TestFunction(encoderTest, testMethodForSelectorSel, ^id (__typeof(encoderTest) self, SEL aSelector) { + NSLog(@"OK"); + }); +} + +- (void)method2 { + [TestClassRequest performMethod:TestClassRequestMethodPOST + responseHandler:^(NSURLResponse *response, NSData *responseData, NSError *error) { + [self checkPermissions:connection withCallback:^(NSError *error, id data) { + [self bar]; + }]; + }]; +} + +- (void)method3 { + [TestClassRequest performMethod:TestClassRequestMethodPOST responseHandler:^(NSURLResponse *response, NSData *responseData, NSError *error) { + [self checkPermissions:connection withCallback:^(NSError *error, id data) { + [self bar]; + }]; + }]; +} + +@end |