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

Public Member Functions

void setUp ()
 
void testPlatformView () throws Exception
 

Public Attributes

ActivityTestRule< PlatformViewsActivityactivityRule
 

Package Attributes

Intent intent
 

Detailed Description

Definition at line 20 of file PlatformViewWithSurfaceViewBadContextUiTest.java.

Member Function Documentation

◆ setUp()

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

Definition at line 33 of file PlatformViewWithSurfaceViewBadContextUiTest.java.

33 {
34 intent = new Intent(Intent.ACTION_MAIN);
35 // Render a texture.
36 intent.putExtra("use_android_view", false);
37 intent.putExtra("view_type", PlatformViewsActivity.SURFACE_VIEW_BAD_CONTEXT_PV);
38 }

◆ testPlatformView()

void dev.flutter.scenariosui.PlatformViewWithSurfaceViewBadContextUiTest.testPlatformView ( ) throws Exception
inline

Definition at line 41 of file PlatformViewWithSurfaceViewBadContextUiTest.java.

41 {
42 intent.putExtra("scenario_name", "platform_view");
43 ScreenshotUtil.capture(activityRule.launchActivity(intent), goldName("testPlatformView"));
44 }

Member Data Documentation

◆ activityRule

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

Definition at line 24 of file PlatformViewWithSurfaceViewBadContextUiTest.java.

◆ intent

Intent dev.flutter.scenariosui.PlatformViewWithSurfaceViewBadContextUiTest.intent
package

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