Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Apr 2, 2020

Fixes a copy paste error in FlutterView.java

Enables the test that would have caught this and fixes the setup for that test.

Fixes flutter/flutter#53857

@dnfield
Copy link
Contributor Author

dnfield commented Apr 2, 2020

/cc @dannyvalentesonos

Comment on lines +223 to +234
when(customMockHost.getContext()).thenReturn(RuntimeEnvironment.application);
when(customMockHost.getActivity()).thenReturn(Robolectric.setupActivity(Activity.class));
when(customMockHost.getLifecycle()).thenReturn(mock(Lifecycle.class));
when(customMockHost.getFlutterShellArgs()).thenReturn(new FlutterShellArgs(new String[] {}));
when(customMockHost.getDartEntrypointFunctionName()).thenReturn("main");
when(customMockHost.getAppBundlePath()).thenReturn("/fake/path");
when(customMockHost.getInitialRoute()).thenReturn("/");
when(customMockHost.getRenderMode()).thenReturn(RenderMode.texture);
when(customMockHost.getTransparencyMode()).thenReturn(TransparencyMode.transparent);
when(customMockHost.provideFlutterEngine(any(Context.class))).thenReturn(mockFlutterEngine);
when(customMockHost.shouldAttachEngineToActivity()).thenReturn(true);
when(customMockHost.shouldDestroyEngineWithHost()).thenReturn(true);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even with these additional lines, the test fails without the change in FlutterView.java

@dnfield dnfield added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Apr 2, 2020
Copy link
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, good catch. LGTM

@fluttergithubbot fluttergithubbot merged commit 2e90965 into flutter:master Apr 2, 2020
@dnfield dnfield deleted the android_textu branch April 2, 2020 22:09
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 3, 2020
dnfield pushed a commit to flutter/flutter that referenced this pull request Apr 3, 2020
* 0b3f2d3 Always cache SkSL when using the Metal backend. (flutter/engine#17468)

* ff62dec Roll to clang11, mark 4 (flutter/engine#17483)

* 08ae3bb Remove JSON codec from C++ client wrapper (flutter/engine#17312)

* 2e90965 Fix bad texture view config (flutter/engine#17486)

* abc7293 [pipeline] Add trace event for lag between target and display times (flutter/engine#17384)

* Updated bin/internal/fuchsia-linux.version
goderbauer pushed a commit to goderbauer/engine that referenced this pull request Apr 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android Add2App] Crash when trying to create a flutter fragment with RenderMode.texture

5 participants