72 Commits

Author SHA1 Message Date
Zachary Anderson
cd45fc09ea Make litetest throw on test failure instead of exit() (flutter/engine#26462) 2021-05-27 18:03:50 -07:00
Alexander Aprelev
67abe0b333 Reland "Provide better messaging when user attempts to use non-secure http connection. (#26226)" (flutter/engine#26400)
This reverts commit 6b463d837e120c70fc3c5dbf4535e19bbba5d228 as dart sdk with corresponding changes has landed in internal repo.
2021-05-25 09:08:23 -07:00
Alexander Aprelev
6b463d837e Revert "Provide better messaging when user attempts to use non-secure http connection. (#26226)" (flutter/engine#26371)
This reverts commit fbd8d578c659d0fd5c4bc268b2c95ca275187bd3 because it breaks g3 Fuchsia tests since g3 fuchsia doesn't have updated dart sdk.
2021-05-24 11:13:37 -07:00
Alexander Aprelev
fbd8d578c6 Provide better messaging when user attempts to use non-secure http connection. (flutter/engine#26226)
* Provide better message when user attempts to use non-secure http connection.

Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
2021-05-21 10:46:25 -07:00
Zachary Anderson
ac61a5fea8 Clean up testing/benchmark (flutter/engine#26313) 2021-05-21 09:49:05 -07:00
Zachary Anderson
740a85e9f0 Adds package:litetest, uses it instead of package:test under testing/dart (flutter/engine#26215) 2021-05-19 23:08:23 -07:00
Chinmay Garde
e9527be661 Ensure stdout and stderr from failed test runs are reported from run_tests.py. (flutter/engine#25758) 2021-04-24 19:29:01 -07:00
Dan Field
ea35899927 Provide a stub platform view embedder for tester to avoid emitting errors (flutter/engine#25661) 2021-04-21 13:04:01 -07:00
Dan Field
446b6a6a61 Support SKP captures in flutter_tester (flutter/engine#25566) 2021-04-14 09:39:01 -07:00
Tong Mu
640ad94161 ci: Print output in case of compile error (flutter/engine#23522)
* Print compile error

* Better comment

* Update run_tests.py
2021-01-19 23:04:53 -08:00
chunhtai
ec2eb68f80 Apply local patch to chromium accessibility code (flutter/engine#23110) 2021-01-06 17:39:02 -08:00
Greg Spencer
f485eaf7a1 Enable delayed event delivery for macOS (flutter/engine#21231)
This enables delayed event delivery for macOS, so that shortcuts can handle keys that are headed for a text field and intercept them. This fixes the problem where pressing TAB (or other shortcuts) in a text field also inserts a tab character into the text field.
2020-12-11 15:21:39 -08:00
Andy Weiss
ebdd79df0d [embedder][glfw] Add support for locales to glfw shell (flutter/engine#22657)
The other linux shell (and all the other embedding) have support for
getting the locales from the system and sending them over the
flutter/localization channel. The glfw shell does not have that which is
causing a crash on an assert now that Locale is no longer nullable
in Platform.

This adds a similar approach to what is going on over in the other linux
shell.
2020-11-24 14:23:12 -08:00
stuartmorgan
79b158833b Add initial settings message to Windows embedding (flutter/engine#22323)
Sends the flutter/settings update message to the engine after starting
it. For now values other than 24-hour time preference are hard-coded,
but dark mode support can be added later.

Fixes https://github.com/flutter/flutter/issues/65590
2020-11-23 15:58:45 -08:00
Daco Harkes
b6c5eff614 WeakPersistentHandle migration (flutter/engine#19843)
and roll Dart to 52783837369de45d3372cb6c6b7cdd63e71cd829.
2020-11-03 13:06:53 +01:00
stuartmorgan
ff1528235d Add a proc table version of embedder API (flutter/engine#21813) 2020-10-29 13:13:03 -07:00
Kaushik Iska
6104a7e793 [macOS] flutter_desktop_darwin_unittests can be enabled for all runtime modes (flutter/engine#21681) 2020-10-08 10:12:03 -07:00
Kaushik Iska
6db42cf2a9 Run desktop darwin tests in debug mode (flutter/engine#21660) 2020-10-07 16:32:01 -07:00
Dan Field
f83e92cbaf Use hint freed specifically for image disposal (flutter/engine#20754)
* Use hint freed specifically for image disposal
2020-09-02 13:41:58 -07:00
Chris Bracken
d42e2f004c Extract Dart test utilities library (flutter/engine#20874)
This extracts a Dart test utilities library, containing
`expectAssertion` and `expectArgumentError` functions that simplify
running tests that test assertions across debug, profile, and release
configurations.

This change also restricts Dart unit tests to testing files whose
filename matches `*_test.dart` under `flutter/testing/dart`; previously
any file in that directory was run, but all files matched the above
pattern.
2020-08-30 11:07:05 -07:00
Gary Qian
489c453c46 Update to android 30r2 and roll buildroot (flutter/engine#20479) 2020-08-17 16:33:48 -07:00
Dan Field
4d8aaaa337 Make sure ios tests fail if they fail (flutter/engine#20518)
* Make sure ios tests fail if they fail

* explain
2020-08-14 10:11:37 -07:00
xster
5ac78f5be6 Refactor initial route code take 2 (flutter/engine#20468) 2020-08-13 14:18:11 -07:00
gaaclarke
232d6c4fca Revert "Refactor initial route code (#19684)" (flutter/engine#20450)
This reverts commit 21404b56c6c183a829d9c758bec2330155e2d86d.
2020-08-12 12:43:08 -07:00
xster
21404b56c6 Refactor initial route code (flutter/engine#19684) 2020-08-11 19:52:04 -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
5354825e59 Use option --no-sound-null-safety instead of --no-null-safety (flutter/engine#19743) 2020-07-14 14:08:24 -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
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
liyuqian
b58ef5144e Add ui_benchmarks (flutter/engine#18945) 2020-06-11 10:55:03 -07:00
xster
410947a88e Make the testing process on different platforms more consistent (flutter/engine#18660) 2020-05-29 18:11:26 -07:00
xster
70a4de6878 Let run_tests.py just stream output (flutter/engine#18534) 2020-05-20 21:38:37 -07:00
Robert Ancell
10cf694c5a Add first Linux shell tests (flutter/engine#18159) 2020-05-06 15:33:11 +12:00
Emmanuel Garcia
f6c5bdea96 Add initial unit tests for the android embedding (flutter/engine#17921) 2020-04-26 20:45:28 -07:00
Gary Qian
887c1a875e PlatformResolvedLocale localization message channel (flutter/engine#17755) 2020-04-21 15:34:44 -07:00
stuartmorgan
7b222c8310 Remove JSON codec from C++ client wrapper (flutter/engine#17312)
The JSON codec is awkward to use in the wrapper (since the client has to build and link one of the JSON libraries to do so). Since it would be very cumbersome to wrap in a C API, and there's essentially no reason to use it instead of the standard codec, this removes it from the wrapper entirely.

Since some system channels (internal to the engine) still use it, it's moved into common/cpp instead of being eliminated entirely. Internally we always use RapidJSON though, so the jsoncpp implementation is removed. Also adds some unit test coverage, since there wasn't any.

Fixes #30669
2020-04-02 14:57:46 -07:00
liyuqian
474e90ba76 Add build_and_test_linux_release presubmit test (flutter/engine#17073) 2020-04-01 18:46:04 -07:00
stuartmorgan
8c89674d93 Allow relative resource paths in GLFW embedding (flutter/engine#16944)
Currently every Linux runner has this code to allow relative resource paths; this moves it into the framework so that any embedder can get this behavior without that code needing to be in the template.

Rolls buildroot to pick up std::filesystem support in our libc++
2020-03-17 19:04:18 -07:00
Dan Field
fd0cc9a285 Teach frontend compiler to replace toString with super.toString for selected packages (flutter/engine#17068)
Adds annotation `keepToString` to opt out.
2020-03-17 15:40:09 -07:00
Emmanuel Garcia
257b799767 Migrate embedding to AndroidX (flutter/engine#17075) 2020-03-13 21:19:24 -07:00
Chinmay Garde
0a9ea0d319 Make output of run_tests.py easier to understand. (flutter/engine#16229)
* The outputs of all commands are not printed and not just commands that fail.
* The stdout and stderr are now printed in order.
* Clear dividers mark logs from specific subprocesses or errors.
* The test whose run failed should now be exactly on top of the error message and code.
2020-01-29 20:47:35 -08:00
Chinmay Garde
c9f71542d1 Disable GPUThreadMerger tests inline instead of via harness flags. (flutter/engine#15706) 2020-01-16 17:11:54 -08:00
Dan Field
1a91d5fb85 const finder (flutter/engine#15668) 2020-01-16 17:01:20 -08:00
Chinmay Garde
8c735c8123 Disable fml_unittests till flakes are addressed. (flutter/engine#15676) 2020-01-15 12:04:36 -08:00
Dan Field
a0b01fb79e Font subset (flutter/engine#14828) 2020-01-07 07:48:15 -08:00
Jim Graham
df3a909cfd Show test output when engine unit test fails. (flutter/engine#14026) 2019-11-26 22:05:43 -08:00
Chinmay Garde
2866095b58 Setup a Metal test surface and add a new unit-test target that tests the testing utilities.
`//flutter/testing` now contains a lot of utilities used by other test targets.
This includes stuff like working with render targets that use either OpenGL or
Metal, fixtures for interacting with the Dart VM, test assertion predicates,
etc.. However, these utilities themselves are not tested as part of a standalone
test suite. Instead, only the test targets that include it exercise these
utilities. Since these are no longer trivial, a new test target has been added
that tests the testing utilities directly.
2019-11-22 23:03:34 -08:00
Alexander Markov
01365aaf02 Cleanup obsolete --strong option of front-end server (flutter/engine#13735) 2019-11-07 13:34:55 -08:00
gaaclarke
f2c70b20b4 Disabled GPUThreadMerger tests. (flutter/engine#13480)
* Disabled GPUThreadMerger tests.

* switched to a single gtest_filter argument
2019-11-01 15:20:45 -07:00
Dan Field
267c681b19 Print the output (flutter/engine#13479) 2019-11-01 14:45:17 -07:00