这是indexloc提供的服务,不要输入任何密码
Skip to content

Migrate fake_process_manager to null safety #80018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2021

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Apr 8, 2021

Also swap context.dart imports where the test was only using the exported symbols from fake_process_manager.dart to make those tests easier to migrate.

Part of #71511

@jmagman jmagman added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. a: null-safety Support for Dart's null safety feature labels Apr 8, 2021
@jmagman jmagman self-assigned this Apr 8, 2021
@google-cla google-cla bot added the cla: yes label Apr 8, 2021
@jmagman jmagman requested a review from zanderso April 8, 2021 06:00
Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

lgtm w/ question

}
return _FakeProcess(
fakeCommand.exitCode,
fakeCommand.duration,
_pid,
fakeCommand.stderr,
fakeCommand.stdin,
fakeCommand.stdin ?? IOSink(StreamController<List<int>>().sink),
Copy link
Member

Choose a reason for hiding this comment

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

Can the default for stdin be set in the constructor?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@fluttergithubbot fluttergithubbot merged commit e8cd482 into flutter:master Apr 8, 2021
@jmagman jmagman deleted the fake-pm-null branch April 8, 2021 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: null-safety Support for Dart's null safety feature c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants