461 Commits

Author SHA1 Message Date
Dan Field
86e51b5eec 4x4.png -> 2x2.png; this file is actually 2x2 (flutter/engine#20005)
* 4x4.png -> 2x2.png; this file is actually 2x2
2020-07-28 17:12:26 -07:00
Jenn Magder
42f5ce74d8 Save current screenshot as attachment in scenarios test (flutter/engine#20090) 2020-07-28 13:57:24 -07:00
Adlai Holler
e5614964f4 Use the GrDirectContext factories instead of deprecated GrContext ones (flutter/engine#19962)
This is part of a larger effort to expose the difference between GrDirectContext,
which runs on the GPU thread and can directly perform operations like uploading
textures, and GrRecordingContext, which can only queue up work to be delivered
to the GrDirectContext later.
2020-07-28 13:32:09 -07:00
chunhtai
23fb7c08c6 fix FlutterViewUpdateCustomAccessibilityActions uses correct string list (flutter/engine#19623)
* fix FlutterViewUpdateCustomAccessibilityActions uses correct string list

* add test to ci

* format

* add license file

* fix test

* fix lint
2020-07-28 09:49:59 -07:00
Siva
4f1710e807 Manual merge of Dart a3815b6590...24c7666def (flutter/engine#19967)
* Manual merge or Dart into flutter a3815b6590...24c7666def

dart-lang/sdk@24c7666def Update tests that have the current version number hardcoded
dart-lang/sdk@f88ce7aef5 Increase Dart version to 2.10

* Update language version.

* Update license.

* Hpdate language version.

* Update license.
2020-07-24 11:00:34 -07:00
Felipe Archondo
6cdf2e8d43 fix and re-enable SessionConnection unit tests (flutter/engine#19812)
[fuchsia] fix and re-enable SessionConnection unittests

This change waits until Scenic is initialized before beginning the test
logic. This should fix the issue where the test starts running before or
during Scenic startup.
2020-07-23 12:15:07 -04:00
gaaclarke
ee0e1788d9 Made the linter print out more information in its output and fixed bugs (flutter/engine#19895) 2020-07-22 15:38:09 -07:00
Dan Field
baa6f4ac3c Refactor instantiateImageCodec/decodeImageFromPixels to provide an ImageDescriptor (flutter/engine#19537)
Refactors instantiateImageCodec and decodeImageFromPixels to provide intermediate data about the image width, height, and bytes per pixel. This allows for more fine grained control from Dart, particularly when trying to reason about how or whether to maintain aspect ratio in the targetWidth/targetHeight parameters.

This leaves the existing methods functional by re-implementing them to use the new ImmutableBuffer/ImageDescriptor class.

The ImmutableBuffer class is provided so that callers can avoid copying the image data multiple times if they wish to re-recreate the image descriptor.

Related Issues
2020-07-21 14:59:18 -07:00
godofredoc
354d116cd6 Re-enable logging. (flutter/engine#19756)
* Re-enable logging.

fuchsia_ctl was updated to support processing the logs as a stream
instead of keeping them in the process.

Bug:
  flutter/flutter#57273

* Add path to logs file.

* Add the isolated output env directly to the script.

* Save log to local directory and printing it using cat.

* Try collecting and printing logs as separate steps.
2020-07-15 20:13:38 -07:00
Siva
5354825e59 Use option --no-sound-null-safety instead of --no-null-safety (flutter/engine#19743) 2020-07-14 14:08:24 -07:00
Kaushik Iska
51a5b7eb8d Disable session_connection_unittests (flutter/engine#19744)
Bug: https://github.com/flutter/flutter/issues/61463
2020-07-14 12:09:46 -07:00
Jenn Magder
1aa5f8cd66 Turn off failing XCTest attachment collection (flutter/engine#19668) 2020-07-14 09:06:03 -07:00
godofredoc
f50587fca3 Remove reference to dev_finder. (flutter/engine#19679)
This is to replace the dev_finder with device-finder.

Bug:
  fxb/55369
2020-07-14 08:22:13 -07:00
David Worsham
cbd3cd9c0d fuchsia: Enable most unittests (flutter/engine#19583)
Tweak the primary flutter build rule so that fuchsia is more similar to
other platforms in how tests and the shell are built.

Only embedder_unittests and GLFW tests are disabled on Fuchsia now.

TEST: Ran unittests on host/fuchsia; workstation on fuchsia
BUG: fxb/53847, fxb/54056
2020-07-13 17:36:19 -07:00
Jenn Magder
6269dbe20f Wait for platform view to appear in iOS UI tests (flutter/engine#19725) 2020-07-13 16:21:40 -07:00
gaaclarke
ef11a05735 Moved to RMSE for image comparison to account for slight variations in golden image tests (flutter/engine#19658)
Moved to RMSE for image comparison to account for slight variations in golden image production.  (also fixed a flakey test)
2020-07-13 16:14:26 -07:00
Jenn Magder
51ef62b895 Remove xcpretty from unit tests to see full output on test failures (flutter/engine#19667) 2020-07-13 15:48:42 -07:00
Emmanuel Garcia
59e05c0376 Update scenario UI screenshoots (flutter/engine#19421) 2020-06-30 18:38:06 -07:00
liyuqian
02f828632c Use FixtureTest to remove duplicate code (flutter/engine#19219)
Fixes https://github.com/flutter/flutter/issues/59109
2020-06-30 10:55:38 -07:00
David Worsham
919f8e6a42 Move fuchsia/scenic integration behind #define (flutter/engine#19003)
Additionally create "_next" permutations for all of the test binaries
on Fuchsia, in order to test both code-paths.

Using the #define follow-up CLs can also create a flutter_runner_next
binary that does not contain any legacy integration code.

BUG: 53847
2020-06-26 14:03:18 -07:00
Chris Yang
27e0962427 Android platform view static thread merging (flutter/engine#19242) 2020-06-24 15:13:02 -07:00
Emmanuel Garcia
202c1af268 Implement external view embedder on Android (flutter/engine#19033)
The external view embedder allows to embed Android views in a Flutter app.
2020-06-20 12:51:55 -07:00
Gary Qian
855fa8fde8 Revert method channel platform resolved locale (flutter/engine#19136) 2020-06-19 17:40:22 -07:00
Filip Filmar
df31819baa [shell] Adds a shell test for timezone fetches (flutter/engine#19108)
Adds a test that verifies that the view of the local time is the same in
the Dart isolate and the process that is running the test.

Specifically, this test is useful to verify that the code paths for
timezone retrieval do not break while the underlying FIDL protocols are
being refactored.

However, since the check is generally useful, the test is written as a
general flutter test.

Running this on Fuchsia required adding `fuchsia.intl.ProfileProvider`
to the CMX file that is used for all build Fuchsia packages.

Testing is a bit involved on Fuchsia.  You must build the Fuchsia
package `fluter/shell/common:shell_tests` and publish it to the dev
repository for your Fuchsia device.  It seems that a way to do so is to
modify the script `flutter/tools/fuchsia/build_fuchsia_artifacts.py` and
modify its function `GetTargetsToBuild` like so:

```
def GetTargetsToBuild(product=False):
  targets_to_build = [
    'flutter/shell/platform/fuchsia:fuchsia',
    'flutter/shell/common:shell_tests',
  ]
  return targets_to_build
```

Next, the Fuchsia packages need to be compiled and published.

Once done, the following `fx` invocation will run the test, assuming
that you have your Fuchsia setup:

```
fx shell run \
    fuchsia-pkg://fuchsia.com/shell_tests#meta/shell_tests.cmx \
    -- --gtest_filter=ShellTest.LocaltimesMatch
```
2020-06-18 09:56:18 -07:00
Dan Field
07849dc46c Parameterize upscaling for image decoding (flutter/engine#19067)
Adds an `allowUpscale` parameter to the Dart interfaces for instantiateImageCodec and decodeImageFromPIxels. If set to false, the image bounds will be clamped at their intrinsic dimensions.

A later commit will change the default to true.
2020-06-18 09:42:08 -07:00
Gary Qian
c9fa545cf3 Platform resolved locale and Android localization refactor (flutter/engine#18645) 2020-06-16 04:29:50 -07:00
Yegor
b457938f23 apply null safety syntax to mobile dart:ui (flutter/engine#18933)
* apply null safety syntax to mobile dart:ui
2020-06-12 12:42:12 -07:00
freiling
58f1c6d181 Make SKSL caching test work on Fuchsia on arm64 (flutter/engine#18572)
* Hook up PersistentCache to ShellTestPlatformViewVulkan

* [vulkan][fuchsia] enable vulkan without swiftshader in fuchsia tests on arm64

* [vulkan][fuchsia] Disable second half of ShellTest.CacheSkSLWorks on
vulkan backend

GrContext::precompileShader() is not implemented for vulkan contexts, so
dont run the portion of this test that depends on that behavior on
Vulkan.

Co-authored-by: George Wright <gw280@google.com>
2020-06-11 18:45:23 -07:00
liyuqian
b58ef5144e Add ui_benchmarks (flutter/engine#18945) 2020-06-11 10:55:03 -07:00
Dan Field
16681d7292 Record path memory usage in SkPictures (flutter/engine#18827) 2020-06-04 15:48:25 -07:00
Dan Field
0539f91b1e Implement GetAllocationSize for Vertices (flutter/engine#18756)
* Implement GetAllocationSize for Vertices

* Reflect vertex buffer size in pictures
2020-06-03 10:35:14 -07:00
Dan Field
a96a8cc9ce Make images contribute to Picture allocation size, more aggressively release references when dispose is called (flutter/engine#18706)
SkImage references get held by both our Image and Picture objects. The GC has no idea about this, and so sometimes pictures look very small when they're actually holding a reference to a large chunk of memory. This patch helps make sure that the GC can more adequately catch the real size impact of Picture objects, and combined with an upstream patch in Dart allows for much more aggressive collection of unused image related memory.
2020-06-02 15:12:06 -07:00
xster
410947a88e Make the testing process on different platforms more consistent (flutter/engine#18660) 2020-05-29 18:11:26 -07:00
Jim Graham
3953882fbb Fix child caching in opacity_layer (flutter/engine#17914)
Choose a child more likely to remain stable from frame to frame as the target to cache in the OpacityLayer.
2020-05-28 18:45:43 -07:00
David Worsham
384105d5d8 fuchsia: Disable flaky TimeSensistiveTests (flutter/engine#18656)
https://github.com/flutter/flutter/issues/58211 tracks re-enabling these
tests.
2020-05-28 17:35:14 -07:00
Chinmay Garde
84c394ba80 Abbreviate names of intermediate generated targets in testing.gni. (flutter/engine#18617) 2020-05-26 20:07:05 -07:00
George Wright
76c1ffec81 Implement WriteAtomically using write/fsync on all platforms, and enable (flutter/engine#18320) 2020-05-21 12:07:03 -07:00
xster
70a4de6878 Let run_tests.py just stream output (flutter/engine#18534) 2020-05-20 21:38:37 -07:00
David Worsham
9ed56044d4 fuchsia: Fix runtime_tests and shell_tests (flutter/engine#18492) 2020-05-20 18:47:02 -07:00
Gary Qian
126af7553d Send platformResolvedLocale from iOS embedder (flutter/engine#18519) 2020-05-20 16:32:03 -07:00
George Wright
955906137a Set caches directory on Fuchsia (flutter/engine#18321) 2020-05-20 11:05:55 -07:00
Gary Qian
489d0ce708 Remove currentLocale prepend on iOS (flutter/engine#18379) 2020-05-19 19:10:35 -07:00
liyuqian
256ab19662 Automatically remove old persistent cache dir (flutter/engine#18244)
Fixes https://github.com/flutter/flutter/issues/53445
2020-05-15 14:15:59 -07:00
Emmanuel Garcia
35306af829 Add screenshots for Android view (flutter/engine#18367) 2020-05-15 13:03:39 -07:00
Kaushik Iska
686b4af73f Update the observatory thread name for profiling thread (flutter/engine#18199) 2020-05-15 12:28:10 -07:00
Kaushik Iska
900ca8419e [fuchsia] Remove log dumping to prevent timeouts (flutter/engine#18409)
See: https://github.com/flutter/flutter/issues/57273
2020-05-14 21:10:49 -07:00
Kaushik Iska
834cfb021e Add ocmock to iOS unit tests xcode project (flutter/engine#18396) 2020-05-14 19:42:02 -07:00
godofredoc
a823e647fd Disable flow tests. (flutter/engine#18405)
seems like flow tests are leaving devices in a bad state.
2020-05-14 19:04:10 -07:00
godofredoc
32382161fd Re-enable Fuchsia tests (flutter/engine#18392)
This reverts commit 3f2ced919df85b318ca2261af82130b64c0f4e63.
2020-05-14 14:56:14 -07:00
Jason Simmons
91f67b420c Move FlutterLoader disk I/O to a background thread to comply with Android strict mode (flutter/engine#18241) 2020-05-13 14:17:03 -07:00