gambard | d8d4403 | 2017-02-09 15:41:46 | [diff] [blame] | 1 | /* |
Marijn Kruisselbrink | 1b7c4895 | 2023-08-31 16:58:34 | [diff] [blame] | 2 | * Copyright (c) 2014-2021 Erik Doernenburg and contributors |
gambard | d8d4403 | 2017-02-09 15:41:46 | [diff] [blame] | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 5 | * not use these files except in compliance with the License. You may obtain |
| 6 | * a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 13 | * License for the specific language governing permissions and limitations |
| 14 | * under the License. |
| 15 | */ |
| 16 | |
| 17 | #import <Foundation/Foundation.h> |
Marijn Kruisselbrink | 1b7c4895 | 2023-08-31 16:58:34 | [diff] [blame] | 18 | #import <OCMock/OCMFunctions.h> |
gambard | d8d4403 | 2017-02-09 15:41:46 | [diff] [blame] | 19 | |
| 20 | @interface OCMLocation : NSObject |
| 21 | { |
Marijn Kruisselbrink | 1b7c4895 | 2023-08-31 16:58:34 | [diff] [blame] | 22 | id testCase; |
| 23 | NSString *file; |
| 24 | NSUInteger line; |
gambard | d8d4403 | 2017-02-09 15:41:46 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | + (instancetype)locationWithTestCase:(id)aTestCase file:(NSString *)aFile line:(NSUInteger)aLine; |
| 28 | |
| 29 | - (instancetype)initWithTestCase:(id)aTestCase file:(NSString *)aFile line:(NSUInteger)aLine; |
| 30 | |
| 31 | - (id)testCase; |
| 32 | - (NSString *)file; |
| 33 | - (NSUInteger)line; |
| 34 | |
| 35 | @end |
| 36 | |
Marijn Kruisselbrink | 1b7c4895 | 2023-08-31 16:58:34 | [diff] [blame] | 37 | OCMOCK_EXTERN OCMLocation *OCMMakeLocation(id testCase, const char *file, int line); |