147 Commits

Author SHA1 Message Date
stuartmorgan
ec9e17c5cb
Roll zlib (#20119)
Picks up the buildroot change to roll zlib to the latest version from Chromium.
2020-07-29 16:02:30 -07:00
Siva
3bb6cc265e
Manual merge of Dart a3815b6590...24c7666def (#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
Alexandre Ardhuin
218d98f4d8
Operator equals (#19303)
* use Object for operator==

* apply style guide for operator==
2020-06-30 23:16:31 +02:00
Michael Goderbauer
ed5df03dcd
Word substitutions (#19111) 2020-06-18 11:05:24 -07:00
Siva
60a9b85f06
Manual roll of Dart 6d4e7d6830...021a49e88c (#19074)
* 1. Manual roll of Dart 6d4e7d6830...021a49e88c

dart-lang/sdk@021a49e88c Update the way to get feature set and language version.
dart-lang/sdk@d1638508c1 Migration: streamline behavior injection in migration_cli_test.dart.

2. Update ICU dependency and adjust license script to account for this
   change.

* Update license tool signature.
2020-06-16 16:50:30 -07:00
stuartmorgan
5c69b8beb5
Roll ANGLE to ToT (#15868)
Updates the ANGLE checkout to the latest master. Among other things, picks up fixes for errors when building under Visual Studio 2019.

Part of fix for https://github.com/flutter/flutter/issues/48831
2020-06-10 08:52:57 -07:00
Emmanuel Garcia
025e2d82dd
Migrate embedding to AndroidX (#17075) 2020-03-13 21:19:24 -07:00
Nurhan Turgut
fc5963d2d1
[web] Engine integration test (#16930)
* squashing the commits together

* directory rename, project rename. addressing reviewer comments

* update cirrus file

* change tool signature
2020-03-06 15:34:11 -08:00
Nurhan Turgut
eddda80327
fushia licenses fix (#16992) 2020-03-06 13:34:47 -08:00
stuartmorgan
9708e5274b
Roll rapidjson (#16347)
Rolls rapidjson forward to the next mirrored version. This is needed to
pick up fixes to building with clang on Windows, to support
https://github.com/flutter/flutter/issues/16256.
2020-02-05 22:35:02 -08:00
Ryan Macnak
dcf7b51043
Roll Dart to 635c47b1c9efe86b896d95bd446c6a5e2459037e. (#13315)
635c47b1c9ef Reland "Update BoringSSL to 4dfd5af70191b068aebe567b8e29ce108cee85ce."
2be376385cf0 [vm/ffi] Support moves with temp in ffi call
92c69f224b96 Flow analysis: promote on successful execution of an "as" expression.
6461e412b63c Flow analysis: call initialize for params after functionExpression_begin.
5837c65b6e87 Flow analysis: test unreachability for constructor initializers.
8e23f76ac731 Flow analysis: properly handle promotion of type parameters.
a7b092edf06e Fix operator== for type parameter types.
06a8577de223 Flow analysis: recursively annotate unreachable nodes in test
2019-10-23 16:38:27 -07:00
Ben Konyi
a16b0f9838
Updated license script to ignore testdata directories, which often contain object files and other compilation results (#13261) 2019-10-21 13:04:17 -07:00
Ben Konyi
0f75f194a7 Ignore *.obj files when gathering licenses (#13241)
* Ignore *.obj files when gathering licenses

* update license hash
2019-10-18 17:53:40 -07:00
liyuqian
b126ba7585
Add .mskp file to binary format (#12454)
Fixes https://bugs.chromium.org/p/skia/issues/detail?id=9467
2019-09-26 11:09:47 -07:00
Yegor
954f1988c5
Add custom test plugin that supports screenshot tests (#12079)
- Add a custom `PlatformPlugin` that spins up a server waiting for test to request a screenshot.
  - When a screenshot is requested the plugin talks to Chrome via the debug port, captures a screenshot, and compares it with a golden file
- This PR also adds proper CLI for `dev/test.dart` with an `ArgParser` for future extension into a proper developer tool for the team.
  - As a first couple of features, it adds `--debug` option to launch Chrome in debug mode, a `--target` option to choose a single test to run rather than all tests, and `--shard` option to choose a subset of tests to run.

Limitations:
 - While screenshot test will run on Cirrus, they are configured to not fail on Cirrus. Need to solve Chrome version skew.
 - Stack maps do not work yet (you get stacks, but they are nonsensical)
 - When requesting a single test, build_runner builds all tests anyway
 - Nothing but desktop Chrome is supported
 - Nothing but Linux is supported
 - There's no Chrome version pinning; currently assumed stable Chrome channel
2019-09-10 13:53:47 -07:00
Yegor
fad38e252f
sync web engine; run web engine tests (#11031)
sync web engine; run web engine tests
2019-08-22 16:38:03 -07:00
Siva
fc27f80a12
1. Update license files to account for the new Dart License file (#11364)
2. Roll src/third_party/dart 027071318f..1279641cdd (65 commits)

dart-lang/sdk@1279641cdd Migration: integrate for-each loops with flow analysis.
dart-lang/sdk@51cd16ecf0 Flow analysis: support for and for-in elements in collections.
dart-lang/sdk@47d2794a71 Implement methods that were missing from ExtensionElementForLink
dart-lang/sdk@a17959b5a0 Log the context in which analysis work is done.
dart-lang/sdk@9198813a55 Revert "Scaffolding for dart:wasm"
dart-lang/sdk@4bf5a72ca0 Flow analysis: support functions whose bodies are expressions.
dart-lang/sdk@b569bf048e Migration: node builder support for new-style typedefs.
dart-lang/sdk@f39a3f188e Scaffolding for dart:wasm
dart-lang/sdk@3729b961bb Use SearchedFiles when searching subtypes for 'analysis.implemented'.
dart-lang/sdk@5d816cbc5d [vm/concurrency] Add FLAG_enable_isolate_groups, still defaulting to true
dart-lang/sdk@480e481708 Throw HttpException instead of String in http impl
dart-lang/sdk@9aa48c2e91 Build local elements in initializers of typed constants.
dart-lang/sdk@af2e729fca Record request / response statistics.
dart-lang/sdk@7bc9515ac2 Fix CompilationUnitMember doc comment. Fixes #27170
dart-lang/sdk@ef39492fd6 Fix support for annotations on extensions
dart-lang/sdk@64efe44e5e Formal parameters of FunctionTypeAlias should be created in @function reference.
dart-lang/sdk@0323fb97bc Migration: support Function() syntax with type formal parameters.
dart-lang/sdk@19533094eb Stop deleting the terminating period on diagnostic messages
dart-lang/sdk@d252efaa49 Migration: node builder support for old-style typedefs
dart-lang/sdk@468800f9d7 Refine the type of FunctionTypeAlias.declaredElement.
dart-lang/sdk@c44c2f1b68 Update LSP readme with instructions for shipped SDKs instead of source
dart-lang/sdk@f2e04caeaf [CFE] Fix CQ race condition with lint status
dart-lang/sdk@bc16959fc7 Reland "[vm/ffi] Dispatch native callbacks through trampolines if we can't ensure callbacks will always be executable."
dart-lang/sdk@48edb2362a [CFE] Update lint for explicit types to also look at fields and top level fields
dart-lang/sdk@5905fe41a9 [CFE] Explicit return types and overrides in constant evaluator
dart-lang/sdk@698c5b1a36 [CFE] Add 'double import' lint
dart-lang/sdk@b625152523 [infra] Remove non-essential test expectations from kernel status files
dart-lang/sdk@c37b5b2edf [vm/ffi] Status: skip test including callbacks on DBC
dart-lang/sdk@095d1c2835 [infra] Clean up general status files
dart-lang/sdk@7f9f4ad774 [cfe] Delete legacy tests
dart-lang/sdk@91c8cf7167 [cfe] Support per folder experimental flags in testcases
dart-lang/sdk@670d40d808 [vm/ffi] regression test for 37511
dart-lang/sdk@c651102793 Remove third_party licenses from LICENSE
dart-lang/sdk@5e5313c8d6 [vm/bytecode] Keep unreachable code for code coverage
dart-lang/sdk@922c2bfbb0 [vm/bytecode] Include source info and asserts into platform with bytecode
dart-lang/sdk@457c4349d0 [ package:vm_service ] Prep for 1.1.1 release
dart-lang/sdk@861cae4853 [vm/fuzzer] Disable stacktrace option on FFI runs
dart-lang/sdk@f50a566476 Enclose local variables in default values of optional formal parameters.
dart-lang/sdk@239a6d1449 [vm, bytecode] Annotate super calls and clear lookup caches on reload.
dart-lang/sdk@ee38a308da thread feature set into linter debug util
dart-lang/sdk@afc259ea6b [dart2js] Add 'any' to DartType.
dart-lang/sdk@1d9b6427ef Prepare to publish analyzer version 0.38.1.
dart-lang/sdk@a5007cde35 Clean up an obsolete TODO comment
dart-lang/sdk@293eee940b [dart2js] Revert to old Closure.toString() implementation for old RTI.
dart-lang/sdk@f842b03de5 linter visit hooks for extensions
dart-lang/sdk@3fe9ba152f Migration: implement Variables._decorateDirectSupertypes.
dart-lang/sdk@d67eaefe77 Add more tests of the visibility of extension members
dart-lang/sdk@72923471c4 strict-inference failures for untyped parameters:
dart-lang/sdk@bfc7f8c4b5 Fix crash parsing invalid constructor initializer
dart-lang/sdk@3e69627752 Fix type argument parsing crash
dart-lang/sdk@e2777454cc Fix dartfmt bug
dart-lang/sdk@d95bb2d74f [ package:vm_service ] Analyze package:vm_service on bots
dart-lang/sdk@38ca72a3e7 [dart2js] TrivialRuntimeTypesNeed should not say non-generic classes need type arguments.
dart-lang/sdk@04bd34ed87 Issue 37916. The name of ConstructorName cannot be shadowed.
dart-lang/sdk@3865187956 [nnbd_migration] already-migrated types with 1:1 type args & params.
dart-lang/sdk@e2fee9c0dd [pkg:vm_service] fix an issue serializing list args
dart-lang/sdk@37183f8865 [observatory] Remove stale asserts from heap snapshot processing.
dart-lang/sdk@396613d884 [pkg:vm_service] be more lenient towards nulls json fields in the java library
dart-lang/sdk@0fee296130 [vm] Add wasmer to third_party, and support building rust libraries
dart-lang/sdk@663a8630e6 Revert "[vm/ffi] Dispatch native callbacks through trampolines if we can't ensure callbacks will always be executable."
dart-lang/sdk@e8c82c6784 [vm/ffi] Suppress irrelevant lint failures in FFI sources.
dart-lang/sdk@bab592fd28 [vm/ffi] Dispatch native callbacks through trampolines if we can't ensure callbacks will always be executable.
dart-lang/sdk@e34c4319dc Migration: property decorate implicit bottom types.
dart-lang/sdk@c6e2497569 Migration: capture more exception information and make it easier to examine stack traces.
dart-lang/sdk@fc16f8aa58 Apply flutter-engine patch to dump dart_package_config_tag version
dart-lang/sdk@1e79aa6b7e Update LSP readme to link to dart-vim instructions
2019-08-21 21:02:35 -07:00
stuartmorgan
ab097a59fa
De-dup FILE output for each license (#10945)
Only list each file once per license block.
2019-08-21 10:12:41 -07:00
stuartmorgan
3c37d735a8
Update license script to handle ANGLE (#10782)
- Allow for BSD formatting where the conditions are not bulleted or
  indented in any way.
- Add support for Bison, which uses a modifed GPL license with an
  exception that allows distributing under "terms of your choice" when
  the larger work is not itself a parser-generator based on it.
2019-08-13 20:59:51 -07:00
stuartmorgan
20b7ea234e
Increase the license block scan from 5k to 6k (#10956)
Split out of #10782 since it affects the detection of the license blocks of some files in third_party/boringssl.
2019-08-12 15:42:32 -07:00
stuartmorgan
8b91236185
Roll buildroot for ANGLE support (#10667)
Rolls buildroot forward to pick up support for building ANGLE. Needed for #9835

Updates license check to ignore a new top-level buildfile-only directory added as part of that support.
2019-08-06 15:21:39 -07:00
Chinmay Garde
9bb1b89cb0
Update libcxx & libcxxabi to HEAD in prep for compiler upgrade. (#9906) 2019-07-18 15:47:43 -07:00
Gary Qian
be3e2ed4c3
Fix fuchsia license detection (#9857) 2019-07-17 13:44:35 -07:00
Dan Field
f348270047
Simplify buildtools (#9875)
Move GN, only get clang
2019-07-17 11:35:58 -07:00
Jason Simmons
f775f5e4d6
Re-enable the Wuffs GIF decoder (#9466)
Fixes https://github.com/flutter/flutter/issues/23838
2019-07-10 14:07:54 -07:00
Jason Simmons
2284210f42
Make the license script compatible with recently changed Dart I/O stream APIs (#9725) 2019-07-09 15:00:56 -07:00
gaaclarke
345d350ab3
Added Doxyfile. (#9632)
Added Doxyfile.
2019-07-01 14:32:38 -07:00
gaaclarke
91e31dca51
Made the license check ignore the .vscode directory. (#9398)
* Made the license check ignore the .vscode directory.

* updated license hash

* updated signature
2019-06-21 11:26:12 -07:00
gaaclarke
cd973f8aae
Added unit tests for the ios code. (#9388)
* Added unit tests for the ios code.

* Moved the tests to live next to the source.

* Added mocking library.

* Fixed formatting and removed third_party from the format check.

* fixed formatting 2

* Removed ocmock from third_party.

* Added ocmock to third_party, compile from source.

* removed ocmock from license checking

* updated licenses_flutter

* updated tool_signature
2019-06-20 17:37:03 -07:00
Chris Bracken
1593838393
Handle Fuchsia SDK in license tool + roll SDK (#9302)
The Fuchsia SDK includes a root directory with multiple
license/copyright files. For files that don't include a copyright header
matching them to a specific license (e.g. shared library binaries) we
match them to all licenses.

Specifically, the SDK includes:
* LICENSE: the Fuchsia license
* LICENSE.vulkan: Apache 2.0 license for Vulkan
* COPYRIGHT.vulkan: additional non-Apache licenses/copyrights for Vulkan
* COPYRIGHT.musl: musl license/copyrights

Also rolls the Fuchsia SDK CIPD packages.
2019-06-12 17:32:32 -07:00
Chinmay Garde
7bb5b9aea5
Wire up Swiftshader based OpenGL ES unit-tests on hosts. (#9264)
Currently, all our host unit-tests that have rendering concerns use the software backend because of OpenGL ES availability and stability issues on the various platforms where we run host tests. Unfortunately, entire subsystems are disabled (and not tested) when rendering with the software backend. This patch pulls in SwiftShader and via pending patches in the buildroot, configures the host unit-tests to optionally use OpenGL ES in a stable manner without relying on the OpenGL drivers being present (and functional).

I have wired up the embedder test fixture in this patch to use the SwiftShader based OpenGL ES driver. I will update the shell and runtime unittests in a subsequent patch as well. The on and offscreen surfaces are configured as 1x1 pbuffer surface because we should be able to write pixel tests using OpenGL directly wihout having to deal with surfaces.
2019-06-12 12:32:09 -07:00
Chris Bracken
10a3ab0858
Fix missing return lint (#9246)
A recent Dart roll improved the detection of missing return statements.
Since we enforce that all enum values must be covered in switch
statements, this isn't an issue, but we add a return to fix the lint.
2019-06-11 10:49:06 -07:00
Chris Bracken
0f1ff3bdb3
Correct typos, adopt US spellings (#9081)
Corects a bnuch of typeos throughout teh engien codebsae. Also makes
a couple minor Commonwealth -> US spelling adjustments for consistency
with the rest of Flutter's codebase.

Made use of `misspell` tool:
https://github.com/client9/misspell
2019-05-25 13:14:46 -07:00
Jason Simmons
424940f171
Add support for the Fontconfig-based Skia font manager (#8977) 2019-05-16 15:22:22 -07:00
Dan Field
3671182a95
Get prebuilt Dart via CIPD (#8859) 2019-05-06 11:31:23 -07:00
Chinmay Garde
c97bd45439
Download the Fuchsia SDK and toolchain in a gclient hook. (#8794)
Downloads into `//fuchsia/sdk/platform` and `//fuchsia/toolchain/platform`. `//fuchsia` is in the buildroot gitignore.
2019-05-02 16:37:43 -07:00
stuartmorgan
3a415c4f1e
Map glfw into third_party, and roll buildroot (#8308)
Adds glfw to //third_party/, and rolls the buildroot to
ee817fb84542865e253bcce1866bc13e4065ca4d
to pick up the build rules for it.
2019-03-27 14:08:22 -04:00
liyuqian
3335764ae9
Skip skp files in license check (#8050)
* Skip skp files in license check

This fixes https://bugs.chromium.org/p/skia/issues/detail?id=8828

* Update signature
2019-03-06 08:39:00 -08:00
Ian Hickson
2cd9b41ba5 Select MPL instead of LGPL (#7991) 2019-03-04 18:43:47 -08:00
Jason Simmons
f804279964
Update licenses for the switch away from the Wuffs GIF decoder (#7786) 2019-02-11 11:41:21 -08:00
Jason Simmons
351f5a35f3
Use the Wuffs GIF decoder (#7658)
Fixes https://github.com/flutter/flutter/issues/23838
2019-02-05 14:09:18 -08:00
Chris Bracken
eaffc462ae
[License] Enable avoid_positional_boolean_parameters lint (#7275) 2018-12-20 16:05:43 -08:00
Chris Bracken
233c100b69 [License] Enable always_require_non_null_named_parameters
Adds dependency on package:meta.
2018-12-20 14:56:23 -08:00
Chris Bracken
f4b348f779 [License] Enable flutter_style_todos lint 2018-12-20 14:56:23 -08:00
Chris Bracken
48be433ce2 [License] Enable prefer_is_empty lint 2018-12-20 14:56:23 -08:00
Chris Bracken
bd648bad6e [License] Enable prefer_const_constructors lint 2018-12-20 14:56:23 -08:00
Chris Bracken
2b207a51c7 [License] Enable unnecessary_parenthesis lint 2018-12-20 14:56:23 -08:00
Chris Bracken
97ae27164e [License] Enable prefer_initializing_formals lint 2018-12-20 14:56:23 -08:00
Chris Bracken
c8f83fbea2 [License] Enable prefer_collection_literals lint 2018-12-20 14:56:23 -08:00
Chris Bracken
d120e15af6 [License] Enable prefer_void_to_null lint 2018-12-20 14:56:23 -08:00