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

Conversation

@camsim99
Copy link
Contributor

@camsim99 camsim99 commented Nov 7, 2023

Bumps robolectric version from 4.10.3 --> 4.11 to support unit testing on Android 34!

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.


@Implements(FrameLayout.class)
public static class ShadowFrameLayout
extends io.flutter.plugin.platform.PlatformViewWrapperTest.ShadowViewGroup {}
Copy link
Contributor Author

@camsim99 camsim99 Nov 9, 2023

Choose a reason for hiding this comment

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

Essentially, the issue here was that when you create a custom Robolectric shadow, it needs to imitate the object hierarchy of the object you are trying to shadow. Here (and in FlutterMutatorViewTest), we actually need to shadow FrameLayout, although it makes a call to its parent for the method whose behavior we want to mock (ViewGroup).

@camsim99 camsim99 marked this pull request as ready for review November 9, 2023 20:44
@camsim99 camsim99 requested a review from a team November 9, 2023 20:44
@camsim99 camsim99 added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 10, 2023
@auto-submit auto-submit bot merged commit 77349dc into flutter:main Nov 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 10, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 10, 2023
…138237)

flutter/engine@a5eab0d...77349dc

2023-11-10 [email protected] [Android] Bump robolectric version to support unit testing on Android 34 (flutter/engine#47768)
2023-11-10 [email protected] Roll Skia from ae6df7264c6e to 5df579e87784 (1 revision) (flutter/engine#47910)
2023-11-10 [email protected] [web] Move styling from FlutterViewEmbedder to StyleManager (flutter/engine#47489)
2023-11-10 [email protected] Roll Skia from e23e328584a1 to ae6df7264c6e (1 revision) (flutter/engine#47907)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants