Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dev.flutter.TestRunner Class Reference
Inheritance diagram for dev.flutter.TestRunner:

Public Member Functions

void onCreate (@Nullable Bundle arguments)
 
void finish (int resultCode, @Nullable Bundle results)
 

Detailed Description

Definition at line 14 of file TestRunner.java.

Member Function Documentation

◆ finish()

void dev.flutter.TestRunner.finish ( int  resultCode,
@Nullable Bundle  results 
)
inline

Definition at line 42 of file TestRunner.java.

42 {
43 ScreenshotUtil.finish();
44 super.finish(resultCode, results);
45 }

◆ onCreate()

void dev.flutter.TestRunner.onCreate ( @Nullable Bundle  arguments)
inline

Definition at line 16 of file TestRunner.java.

16 {
17 String[] engineArguments = null;
18 assert arguments != null;
19 if ("true".equals(arguments.getString("enable-impeller"))) {
20 // Set up the global settings object so that Impeller is enabled for all tests.
21 engineArguments =
22 new String[] {
23 "--enable-impeller=true",
24 "--impeller-backend=" + arguments.getString("impeller-backend", "vulkan")
25 };
26 }
27 FlutterRenderer.debugDisableSurfaceClear = true;
28 if ("true".equals(arguments.getString("force-surface-producer-surface-texture"))) {
29 // Set a test flag to force the SurfaceProducer to use SurfaceTexture.
30 FlutterRenderer.debugForceSurfaceProducerGlTextures = true;
31 }
32 // For consistency, just always initilaize FlutterJNI etc.
33 FlutterInjector.instance().flutterLoader().startInitialization(getTargetContext());
34 FlutterInjector.instance()
35 .flutterLoader()
36 .ensureInitializationComplete(getTargetContext(), engineArguments);
37 ScreenshotUtil.onCreate();
38 super.onCreate(arguments);
39 }
static bool equals(T *a, T *b)

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