98 {
100 project:nil]);
102 OCMStub([
group makeEngine]).andReturn(mockEngine);
103 OCMStub([mockEngine spawnWithEntrypoint:[OCMArg
any]
104 libraryURI:[OCMArg
any]
105 initialRoute:[OCMArg
any]
106 entrypointArgs:[OCMArg
any]])
109 NSArray* firstEntrypointArgs = @[ @"foo", @"first" ];
112 XCTAssertNotNil(spawner);
113 OCMVerify([spawner runWithEntrypoint:nil
114 libraryURI:nil
115 initialRoute:nil
116 entrypointArgs:firstEntrypointArgs]);
117
118 NSArray* secondEntrypointArgs = @[ @"bar", @"second" ];
122 XCTAssertNotNil(spawnee);
123 OCMVerify([spawner spawnWithEntrypoint:nil
124 libraryURI:nil
125 initialRoute:nil
126 entrypointArgs:secondEntrypointArgs]);
127}
NSArray< NSString * > * entrypointArgs
FlutterEngine * makeEngineWithOptions:(nullable FlutterEngineGroupOptions *options)