1package test.io.flutter.embedding.engine;
3import static org.junit.Assert.assertEquals;
4import static org.junit.Assert.assertTrue;
7import androidx.test.ext.junit.runners.AndroidJUnit4;
8import io.flutter.embedding.engine.FlutterShellArgs;
9import java.util.Arrays;
10import java.util.HashSet;
12import org.junit.runner.RunWith;
13import org.robolectric.annotation.Config;
16@RunWith(AndroidJUnit4.class)
21 Intent intent =
new Intent();
22 intent.putExtra(
"dart-flags",
"--observe --no-hot --no-pub");
23 intent.putExtra(
"trace-skia-allowlist",
"skia.a,skia.b");
27 HashSet<String> argValues =
new HashSet<String>(Arrays.asList(
args.toArray()));
30 assertEquals(2, argValues.size());
31 assertTrue(argValues.contains(
"--dart-flags=--observe --no-hot --no-pub"));
32 assertTrue(argValues.contains(
"--trace-skia-allowlist=skia.a,skia.b"));
static FlutterShellArgs fromIntent(@NonNull Intent intent)
void itProcessesShellFlags()
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args