Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
test.io.flutter.embedding.engine.FlutterShellArgsTest Class Reference

Public Member Functions

void itProcessesShellFlags ()
 

Detailed Description

Definition at line 17 of file FlutterShellArgsTest.java.

Member Function Documentation

◆ itProcessesShellFlags()

void test.io.flutter.embedding.engine.FlutterShellArgsTest.itProcessesShellFlags ( )
inline

Definition at line 19 of file FlutterShellArgsTest.java.

19 {
20 // Setup the test.
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");
24
25 // Execute the behavior under test.
26 FlutterShellArgs args = FlutterShellArgs.fromIntent(intent);
27 HashSet<String> argValues = new HashSet<String>(Arrays.asList(args.toArray()));
28
29 // Verify results.
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"));
33 }
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args

The documentation for this class was generated from the following file: