Commit Graph

762 Commits

Author SHA1 Message Date
Michael Goderbauer
7b251f5f37 Enable use_function_type_syntax_for_parameters lint (#77163) 2021-03-04 08:59:17 -08:00
Jenn Magder
67b2ca893e Update minimum required version to Xcode 12 (#77025) 2021-03-03 11:00:35 -08:00
Jonah Williams
2951363dc8 [flutter_tools] switch FakeCache to cache.test and NoopUsage to TestUsage (#76802) 2021-02-26 11:13:32 -08:00
Jonah Williams
666c950989 [flutter_tools] replace most MockBuildSystem instances with TestBuildSystem (#76821) 2021-02-26 08:46:00 -08:00
Jonah Williams
a3b14c58ae [flutter_tools] replace vm_service extension methods with wrapper class (#76721) 2021-02-24 15:40:33 -08:00
Jenn Magder
e5b5e1475c Adopt FakeProcess, remove MockProcess (#76276) 2021-02-18 11:13:26 -08:00
Jenn Magder
36203142df Delete MockResidentCompiler (#76280) 2021-02-18 00:01:04 -08:00
Jonah Williams
d65c98b4a2 [flutter_tools] replace some mock file/directories with new op handle (#76268) 2021-02-17 21:26:03 -08:00
Jenn Magder
d3c8a0bd25 Remove mocks from visual_studio_test (#76260) 2021-02-17 19:40:51 -08:00
Hidenori Matsubayashi
4cc0ab2d19 [flutter_tools] Add ARM64 Linux host and cross-building option support (#61221) 2021-02-12 14:25:30 -08:00
Jonah Williams
980880e2b6 [flutter_tools] remove package HTTP and add pub.dev head check tests (#75871) 2021-02-12 10:44:19 -08:00
Jenn Magder
9236eefdff MockPub -> FakePub (#75759) 2021-02-10 17:01:20 -08:00
Jonah Williams
8df58eb650 [flutter_tools] use a single fake implementation of HttpClient (#75471) 2021-02-09 15:32:03 -08:00
Jenn Magder
faa1a251f8 Move FakeBotDetector to fakes (#75543) 2021-02-09 12:43:53 -08:00
Jenn Magder
152d88a3df Add exception to FakeCommand (#75545) 2021-02-09 10:07:46 -08:00
Sam Rawlins
e8d52be500 Remove "unnecessary" imports in flutter_tools tests (#75012) 2021-02-09 09:46:07 -08:00
Jonah Williams
021311ed8a Revert "[flutter_tools] move process manager into tool (#75350)" (#75639)
This reverts commit 8b6baae44c.
2021-02-08 09:21:46 -08:00
Jonah Williams
8b6baae44c [flutter_tools] move process manager into tool (#75350)
Our current top crasher is an unclear error when ProcessManager fails to resolve an executable path. To fix this, we'd like to being adjusting the process resolution logic and adding more instrumentation to track failures. In order to begin the process, the ProcessManager has been folded back into the flutter tool
2021-02-04 13:19:11 -08:00
Jenn Magder
86c21c5d8f Replace MockPlistParser with FakePlistParser (#75276) 2021-02-04 10:39:58 -08:00
Jenn Magder
73506f36f7 Replace MockConfig with TestConfig (#75044) 2021-02-01 18:16:05 -08:00
Jenn Magder
43d604e131 Replace context FakeUsage with TestUsage (#75170) 2021-02-01 15:02:25 -08:00
Jonah Williams
18b1e23e89 [flutter_tools] move some fakes out of mocks.dart (#74992) 2021-01-29 14:28:18 -08:00
Jonah Williams
e53c48968f [flutter_tools] remove mock SystemClock (#74994) 2021-01-29 14:28:08 -08:00
Jenn Magder
dbb1958c5e Add canRun override to FakeProcessManager (#74865) 2021-01-28 19:06:56 -08:00
Jenn Magder
ff87150ba9 Revert "Swap MockStdio to FakeStdio in tests (#74838)" (#74867)
This reverts commit 547ed88ab3.
2021-01-27 19:35:16 -08:00
Jenn Magder
547ed88ab3 Swap MockStdio to FakeStdio in tests (#74838) 2021-01-27 17:33:47 -08:00
Jonah Williams
74bd7b6f6d [flutter_tools] opt all flutter tool libraries and tests out of null safety. (#74832)
* opt out the flutter tool

* oops EOF

* fix import

* Update tool_backend.dart

* Update daemon_client.dart

* fix more
2021-01-27 15:17:53 -08:00
Alexandre Ardhuin
d546e1d311 fix for upcoming lint use_named_constants (#74788) 2021-01-27 20:20:44 +01:00
Jenn Magder
1ad6edb8d5 Remove MockProcessManager from channel_test and other tests (#74780) 2021-01-27 11:17:29 -08:00
Dan Field
d1538320d2 Roll packages to null safe (vm_service, test, etc.) (#74671) 2021-01-26 09:15:54 -08:00
Jenn Magder
35000147e6 Re-add tool test general per-test timeout (#74531) 2021-01-25 12:47:01 -08:00
Jonas Finnemann Jensen
bf89943d94 Fix pub upgrade to work with new arguments (#74060) 2021-01-15 17:39:56 -08:00
Jenn Magder
062022b950 Move ios_content_validation_test to pre-submit tools test (#73577) 2021-01-11 10:29:06 -08:00
Jonah Williams
7c618758bb [flutter_tools] delegate first run message re-display to new class, only if changed (#73353) 2021-01-05 18:44:04 -08:00
Jenn Magder
cdacae89e1 Revert "Launch named iOS simulators (#72323)" (#72447)
This reverts commit 84a7a611b0.
2020-12-16 11:52:59 -08:00
Jenn Magder
84a7a611b0 Launch named iOS simulators (#72323) 2020-12-15 15:06:47 -08:00
Kenzie Schmoll
cd452286ab Launch DevTools from pub instead of devtools_server (#71737)
* Launch DevTools from pub instead of devtools_server
2020-12-14 10:12:42 -08:00
Jonah Williams
e8b87f7cd2 [flutter_tools] enable CK restart tests (#71598) 2020-12-02 13:10:54 -08:00
Jonah Williams
1816778529 [flutter_tools] wire up alternative invalidation strategy to features (#71439) 2020-12-01 09:54:23 -08:00
Jonah Williams
7086a2f43b Revert "[flutter_tools] wire up alternative invalidation strategy to features (#70865)" (#70884)
This reverts commit ef4741540b.
2020-11-19 14:01:39 -08:00
Jonah Williams
ef4741540b [flutter_tools] wire up alternative invalidation strategy to features (#70865) 2020-11-19 13:13:51 -08:00
Jonah Williams
f98c468317 [flutter_tools] remove unused JSON schema (#70480) 2020-11-13 13:02:40 -08:00
Jonah Williams
0b88269807 [flutter_tools] remove branch migration and standardize constructor style for version interface (#70058) 2020-11-12 15:29:03 -08:00
Jonah Williams
fb28ee2860 [flutter_tools] reland: cache pub invocations (#70180)
Disabled caching of pub invocations on flutter drive.
2020-11-10 13:56:36 -08:00
Jonah Williams
1c4b50ecf1 Revert "[flutter_tools] restore pub caching functionality (#70133)" (#70144)
This reverts commit ff953e4f83.
2020-11-09 16:38:07 -08:00
Jonah Williams
ff953e4f83 [flutter_tools] restore pub caching functionality (#70133)
Necessary to work around #70013 (this looks like it will be fixed, but should protect us in the future)

Restores some notion of skipping pub, with differences from the prior implementation:

Off by default, and only used by the flutter command automatic pub get
A single check parameter. Uses the framework version cached per-project instead of a timestamp of the tool, to avoid cases where downloading a prebuilt framework would cause this check to no longer work.
2020-11-09 16:11:55 -08:00
Jonah Williams
f1cdf2e6f3 Revert "[flutter_tools] restore pub caching functionality on run/test (#70056)" (#70132)
This reverts commit 6e5845f025.
2020-11-09 13:31:01 -08:00
Jonah Williams
6e5845f025 [flutter_tools] restore pub caching functionality on run/test (#70056) 2020-11-09 12:52:22 -08:00
Jonah Williams
2fb53d83f2 [flutter_tools] remove all globals from cache and cache_test (#69505) 2020-11-06 15:26:45 -08:00
Jonah Williams
dd8820bcc1 [flutter_tool] initialize flutter root in executable (#69549)
initialize the flutter root as early as possible. This allows all interfaces to be normally injected into commands, even if those objects might read from the flutter root.
2020-11-05 15:21:05 -08:00