Skip to content

[flutter_tool] Make base/net.dart context free#49575

Merged
fluttergithubbot merged 1 commit intoflutter:masterfrom
zanderso:context-free-net
Jan 28, 2020
Merged

[flutter_tool] Make base/net.dart context free#49575
fluttergithubbot merged 1 commit intoflutter:masterfrom
zanderso:context-free-net

Conversation

@zanderso
Copy link
Copy Markdown
Member

@zanderso zanderso commented Jan 27, 2020

Description

Removes references to globals from base/net.dart. Updates tests to testWithoutContext().

Related Issues

#47161

Tests

I added the following tests:

Updated tests in net_test.dart.

Breaking Change

Did any tests fail when you ran them? Please read [Handling breaking changes].

  • No, no existing tests failed, so this is not a breaking change.

@zanderso zanderso added tool Affects the "flutter" command-line tool. See also t: labels. work in progress; do not review labels Jan 27, 2020
HttpClientFactory httpClientFactory,
@required Logger logger,
@required Platform platform,
}) :
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

uber-nit: I don't love the formatting here. Of course, if you do it the other way then you end up odd indentation on the next lines.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yup. I was trying to avoid the odd indentation for the ':'

Copy link
Copy Markdown
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

@fluttergithubbot
Copy link
Copy Markdown
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Cirrus CI has failed. Please fix the issues identified (or deflake) before re-applying this label.

@fluttergithubbot fluttergithubbot merged commit 74c1be6 into flutter:master Jan 28, 2020
@zanderso zanderso deleted the context-free-net branch January 28, 2020 15:34
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants