Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
cf0fcd45
Unverified
Commit
cf0fcd45
authored
Apr 25, 2020
by
Jonah Williams
Committed by
GitHub
Apr 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] detect ipv6 in fuchsia server url (#55605)
parent
35edbe3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
fuchsia_pm.dart
packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart
+1
-1
fuchsia_pm_test.dart
...ter_tools/test/general.shard/fuchsia/fuchsia_pm_test.dart
+10
-0
No files found.
packages/flutter_tools/lib/src/fuchsia/fuchsia_pm.dart
View file @
cf0fcd45
...
...
@@ -192,7 +192,7 @@ class FuchsiaPackageServer {
Process
_process
;
/// The URL that can be used by the device to access this package server.
String
get
url
=>
'http://
$_host
:
$_port
'
;
String
get
url
=>
Uri
(
scheme:
'http'
,
host:
_host
,
port:
_port
).
toString
()
;
// The name used to reference the server by fuchsia-pkg:// urls.
final
String
name
;
...
...
packages/flutter_tools/test/general.shard/fuchsia/fuchsia_pm_test.dart
View file @
cf0fcd45
...
...
@@ -71,6 +71,16 @@ void main() {
FuchsiaArtifacts:
()
=>
mockFuchsiaArtifacts
,
ProcessManager:
()
=>
mockProcessManager
,
});
testWithoutContext
(
'ipv6 formatting logic of FuchsiaPackageServer'
,
()
{
const
String
host
=
'fe80::ec4:7aff:fecc:ea8f%eno2'
;
const
int
port
=
23
;
expect
(
FuchsiaPackageServer
(
'a'
,
'b'
,
host
,
port
).
url
,
'http://[fe80::ec4:7aff:fecc:ea8f%25eno2]:23'
,
);
});
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment