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