Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | Package Attributes | List of all members
dev.flutter.scenariosui.PlatformViewWithSurfaceViewHybridUiTest 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 PlatformViewWithSurfaceViewHybridUiTest.java.

Member Function Documentation

◆ setUp()

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

Definition at line 33 of file PlatformViewWithSurfaceViewHybridUiTest.java.

33 {
34 intent = new Intent(Intent.ACTION_MAIN);
35 intent.putExtra("use_android_view", true);
36 intent.putExtra("view_type", PlatformViewsActivity.SURFACE_VIEW_PV);
37 }

◆ testPlatformView()

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

Definition at line 40 of file PlatformViewWithSurfaceViewHybridUiTest.java.

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

Member Data Documentation

◆ activityRule

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

Definition at line 24 of file PlatformViewWithSurfaceViewHybridUiTest.java.

◆ intent

Intent dev.flutter.scenariosui.PlatformViewWithSurfaceViewHybridUiTest.intent
package

Definition at line 21 of file PlatformViewWithSurfaceViewHybridUiTest.java.


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