1package io.flutter.embedding.engine.systemchannels;
3import static org.mockito.Mockito.mock;
4import static org.mockito.Mockito.verify;
6import android.content.res.AssetManager;
7import androidx.test.ext.junit.runners.AndroidJUnit4;
8import io.flutter.embedding.engine.FlutterJNI;
9import io.flutter.embedding.engine.dart.DartExecutor;
10import io.flutter.embedding.engine.deferredcomponents.DeferredComponentManager;
11import io.flutter.plugin.common.MethodCall;
12import io.flutter.plugin.common.MethodChannel;
13import java.util.HashMap;
16import org.junit.runner.RunWith;
17import org.robolectric.annotation.Config;
53@RunWith(AndroidJUnit4.class)
66 Map<String, Object>
args =
new HashMap<>();
67 args.put(
"loadingUnitId", -1);
68 args.put(
"componentName",
"hello");
74 verify(mockResult).success(
null);
88 Map<String, Object>
args =
new HashMap<>();
89 args.put(
"loadingUnitId", -1);
90 args.put(
"componentName",
"hello");
98 verify(mockResult1).success(
null);
99 verify(mockResult2).success(
null);
113 Map<String, Object>
args =
new HashMap<>();
114 args.put(
"loadingUnitId", -1);
115 args.put(
"componentName",
"hello");
121 verify(mockResult).success(
"installed");
void deferredComponentChannel_installCompletesResults()
void deferredComponentChannel_getInstallState()
void deferredComponentChannel_installCompletesMultipleResults()
void completeInstallSuccess(String componentName)
final MethodChannel.MethodCallHandler parsingMethodHandler
void setDeferredComponentManager( @Nullable DeferredComponentManager deferredComponentManager)
void setDeferredComponentChannel(DeferredComponentChannel channel)
DeferredComponentChannel channel
boolean uninstallDeferredComponent(int loadingUnitId, String componentName)
void loadAssets(int loadingUnitId, String componentName)
void loadDartLibrary(int loadingUnitId, String componentName)
String getDeferredComponentInstallState(int loadingUnitId, String componentName)
void setJNI(FlutterJNI flutterJNI)
void installDeferredComponent(int loadingUnitId, String componentName)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args