5#import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterEngine.h"
6#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextureRegistryRelay.h"
8#import <OCMock/OCMock.h>
9#import <XCTest/XCTest.h>
11#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterMacros.h"
12#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterTexture.h"
25 XCTAssertNotNil(relay);
26 XCTAssertEqual(textureRegistry, relay.
parent);
35 OCMVerify([textureRegistry registerTexture:
texture]);
43 OCMVerify([textureRegistry textureFrameAvailable:0]);
51 OCMVerify([textureRegistry unregisterTexture:0]);
56 NSObject<FlutterTextureRegistry>* strongRelay;
63 XCTAssertNil(weakEngine);
64 XCTAssertNotNil(strongRelay);
NSObject< FlutterTextureRegistry > * textureRegistry
void testTextureFrameAvailable()
void testUnregisterTexture()
void testRegisterTexture()
void textureFrameAvailable:(int64_t textureId)
NSObject< FlutterTextureRegistry > * parent
int64_t registerTexture:(NSObject< FlutterTexture > *texture)
void unregisterTexture:(int64_t textureId)