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

Member Function Documentation

◆ setUp()

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

Definition at line 33 of file PlatformViewWithSurfaceViewHybridFallbackUiTest.java.

33 {
34 intent = new Intent(Intent.ACTION_MAIN);
35 // Request TLHC with fallback to HC.
36 intent.putExtra("use_android_view", false);
37 intent.putExtra("expect_android_view_fallback", true);
38 // Use a SurfaceView to trigger fallback.
39 intent.putExtra("view_type", PlatformViewsActivity.SURFACE_VIEW_PV);
40 }

◆ testPlatformView()

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

Definition at line 43 of file PlatformViewWithSurfaceViewHybridFallbackUiTest.java.

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

Member Data Documentation

◆ activityRule

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

Definition at line 24 of file PlatformViewWithSurfaceViewHybridFallbackUiTest.java.

◆ intent

Intent dev.flutter.scenariosui.PlatformViewWithSurfaceViewHybridFallbackUiTest.intent
package

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