mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-14 02:10:15 +00:00
34 lines
1.0 KiB
Objective-C
34 lines
1.0 KiB
Objective-C
//
|
|
// OCMockObject+ASAdditions.h
|
|
// Texture
|
|
//
|
|
// Copyright (c) 2017-present, Pinterest, Inc. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
|
|
#import <OCMock/OCMockObject.h>
|
|
|
|
@interface OCMockObject (ASAdditions)
|
|
|
|
/**
|
|
* NOTE: All OCMockObjects created during an ASTestCase call OCMVerifyAll during -tearDown.
|
|
*/
|
|
|
|
/**
|
|
* A method to manually specify which optional protocol methods should return YES
|
|
* from -respondsToSelector:.
|
|
*
|
|
* If you don't call this method, the default OCMock behavior is to
|
|
* "implement" all optional protocol methods, which makes it impossible to
|
|
* test scenarios where only a subset of optional protocol methods are implemented.
|
|
*
|
|
* You should only call this on protocol mocks.
|
|
*/
|
|
- (void)addImplementedOptionalProtocolMethods:(SEL)aSelector, ... NS_REQUIRES_NIL_TERMINATION;
|
|
|
|
@end
|