From df988dd0515a509a7cf98ae39fbd5cffb129effa Mon Sep 17 00:00:00 2001 From: Ryan Rhee Date: Tue, 27 Sep 2016 15:30:41 -0700 Subject: [PATCH] [componentkit][test] Import proper fake header in second test Reviewed By: dulmarod Differential Revision: D3924245 fbshipit-source-id: 16a110a --- .../objcpp/linters/componentkit/Test2.mm | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/infer/tests/codetoanalyze/objcpp/linters/componentkit/Test2.mm b/infer/tests/codetoanalyze/objcpp/linters/componentkit/Test2.mm index a056ff4df..c9c8312e7 100644 --- a/infer/tests/codetoanalyze/objcpp/linters/componentkit/Test2.mm +++ b/infer/tests/codetoanalyze/objcpp/linters/componentkit/Test2.mm @@ -9,23 +9,7 @@ #import -// This import alone shouldn't trigger lint rules, since its impl is not in -// this translation unit. -// Mimic importing CKComponnet -@interface CKComponent : NSObject -@end -@implementation CKComponent -@end - -// Mimic importing CKCompositeComponnet -@interface CKCompositeComponent : NSObject -+ (instancetype)newWithComponent:(CKComponent*)component; -@end -@implementation CKCompositeComponent -+ (instancetype)newWithComponent:(CKComponent*)component { - return nil; -} -@end +#import "FakeComponentKitHeader.h" @interface SomeClass : NSObject @end