Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
dev.flutter.scenariosui.ExternalTextureTests Class Reference

Public Member Functions

void setUp ()
 
void testCanvasSurface () throws Exception
 
void testMediaSurface () throws Exception
 

Public Attributes

ActivityTestRule< ExternalTextureFlutterActivityactivityRule
 

Detailed Description

Definition at line 20 of file ExternalTextureTests.java.

Member Function Documentation

◆ setUp()

void dev.flutter.scenariosui.ExternalTextureTests.setUp ( )
inline

Definition at line 31 of file ExternalTextureTests.java.

31 {
32 intent = new Intent(Intent.ACTION_MAIN);
33 }

◆ testCanvasSurface()

void dev.flutter.scenariosui.ExternalTextureTests.testCanvasSurface ( ) throws Exception
inline

Definition at line 36 of file ExternalTextureTests.java.

36 {
37 intent.putExtra("scenario_name", "display_texture");
38 intent.putExtra("surface_renderer", "canvas");
39 ScreenshotUtil.capture(
40 activityRule.launchActivity(intent), "ExternalTextureTests_testCanvasSurface");
41 }
ActivityTestRule< ExternalTextureFlutterActivity > activityRule

◆ testMediaSurface()

void dev.flutter.scenariosui.ExternalTextureTests.testMediaSurface ( ) throws Exception
inline

Definition at line 44 of file ExternalTextureTests.java.

44 {
45 intent.putExtra("scenario_name", "display_texture");
46 intent.putExtra("surface_renderer", "media");
47 ScreenshotUtil.capture(
48 activityRule.launchActivity(intent), "ExternalTextureTests_testMediaSurface");
49 }

Member Data Documentation

◆ activityRule

ActivityTestRule<ExternalTextureFlutterActivity> dev.flutter.scenariosui.ExternalTextureTests.activityRule
Initial value:
=
new ActivityTestRule<>(
ExternalTextureFlutterActivity.class,
false,
false)

Definition at line 24 of file ExternalTextureTests.java.


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