Reviewed By: ddino Differential Revision: D5814233 fbshipit-source-id: 84fae71master
parent
d7057ece2b
commit
b99b653ffa
@ -0,0 +1,62 @@
|
||||
// Copyright 2004-present Facebook. All Rights Reserved.
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
class FBMemImage;
|
||||
|
||||
class FBMemQuery;
|
||||
|
||||
@interface FBMemModelUsed1 : NSObject
|
||||
|
||||
// NEW_COMPONENT_USING_MEM_MODEL bug
|
||||
+ (instancetype)newImage:(FBMemImage*)image;
|
||||
// no NEW_COMPONENT_USING_MEM_MODEL bug
|
||||
+ (instancetype)newInt:(int)size;
|
||||
// no NEW_COMPONENT_USING_MEM_MODEL bug
|
||||
+ (int)newReturnInt:(FBMemImage*)size;
|
||||
// NEW_COMPONENT_USING_MEM_MODEL bug
|
||||
+ (instancetype)newMultiParams:(int)size
|
||||
image:(FBMemImage*)image
|
||||
query:(FBMemQuery*)query;
|
||||
|
||||
@end
|
||||
|
||||
@implementation FBMemModelUsed1
|
||||
|
||||
// NEW_COMPONENT_USING_MEM_MODEL bug
|
||||
+ (instancetype)newImage:(FBMemImage*)image {
|
||||
return nil;
|
||||
}
|
||||
|
||||
// no NEW_COMPONENT_USING_MEM_MODEL bug
|
||||
+ (instancetype)newInt:(int)size {
|
||||
return nil;
|
||||
}
|
||||
|
||||
// no NEW_COMPONENT_USING_MEM_MODEL bug
|
||||
+ (int)newReturnInt:(FBMemImage*)size {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// NEW_COMPONENT_USING_MEM_MODEL bug
|
||||
+ (instancetype)newMultiParams:(int)size
|
||||
image:(FBMemImage*)image
|
||||
query:(FBMemQuery*)query {
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@interface FBMemModelUsed2 : NSObject
|
||||
|
||||
+ (instancetype)newQuery:(FBMemQuery*)query;
|
||||
|
||||
@end
|
||||
|
||||
@implementation FBMemModelUsed2
|
||||
|
||||
+ (instancetype)newQuery:(FBMemQuery*)query {
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
Loading…
Reference in new issue