8#import <OCMock/OCMock.h>
9#import <XCTest/XCTest.h>
22 id textureRegistry = OCMProtocolMock(
@protocol(FlutterTextureRegistry));
25 XCTAssertNotNil(relay);
26 XCTAssertEqual(textureRegistry, relay.
parent);
29- (void)testRegisterTexture {
30 id textureRegistry = OCMProtocolMock(
@protocol(FlutterTextureRegistry));
35 OCMVerify([textureRegistry registerTexture:
texture]);
38- (void)testTextureFrameAvailable {
39 id textureRegistry = OCMProtocolMock(
@protocol(FlutterTextureRegistry));
43 OCMVerify([textureRegistry textureFrameAvailable:0]);
46- (void)testUnregisterTexture {
47 id textureRegistry = OCMProtocolMock(
@protocol(FlutterTextureRegistry));
51 OCMVerify([textureRegistry unregisterTexture:0]);
54- (void)testRetainCycle {
56 NSObject<FlutterTextureRegistry>* strongRelay;
63 XCTAssertNil(weakEngine);
64 XCTAssertNotNil(strongRelay);
NSObject< FlutterTextureRegistry > * textureRegistry
NSObject< FlutterTextureRegistry > * parent
int64_t registerTexture:(NSObject< FlutterTexture > *texture)
void textureFrameAvailable:(int64_t textureId)
void unregisterTexture:(int64_t textureId)