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
fb2f18e7
Unverified
Commit
fb2f18e7
authored
Jun 12, 2019
by
Todd Volkert
Committed by
GitHub
Jun 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare for Uint8List SDK breaking changes (#34295)
https://github.com/dart-lang/sdk/issues/36900
parent
bdd07240
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
save_catalog_screenshots.dart
dev/devicelab/lib/tasks/save_catalog_screenshots.dart
+1
-1
localizations_utils.dart
dev/tools/localization/localizations_utils.dart
+1
-1
net_test.dart
packages/flutter_tools/test/base/net_test.dart
+4
-3
create_test.dart
packages/flutter_tools/test/commands/create_test.dart
+4
-3
No files found.
dev/devicelab/lib/tasks/save_catalog_screenshots.dart
View file @
fb2f18e7
...
@@ -65,7 +65,7 @@ class Upload {
...
@@ -65,7 +65,7 @@ class Upload {
}
else
{
}
else
{
// TODO(hansmuller): only retry on 5xx and 429 responses
// TODO(hansmuller): only retry on 5xx and 429 responses
logMessage
(
'Request to save "
$name
" (length
${content.length}
) failed with status
${response.statusCode}
, will retry'
);
logMessage
(
'Request to save "
$name
" (length
${content.length}
) failed with status
${response.statusCode}
, will retry'
);
logMessage
(
await
response
.
transform
<
String
>(
utf8
.
decoder
).
join
());
logMessage
(
await
response
.
cast
<
List
<
int
>>().
transform
<
String
>(
utf8
.
decoder
).
join
());
}
}
return
response
.
statusCode
==
HttpStatus
.
ok
;
return
response
.
statusCode
==
HttpStatus
.
ok
;
}
on
TimeoutException
catch
(
_
)
{
}
on
TimeoutException
catch
(
_
)
{
...
...
dev/tools/localization/localizations_utils.dart
View file @
fb2f18e7
...
@@ -299,7 +299,7 @@ Future<void> precacheLanguageAndRegionTags() async {
...
@@ -299,7 +299,7 @@ Future<void> precacheLanguageAndRegionTags() async {
final
HttpClient
client
=
HttpClient
();
final
HttpClient
client
=
HttpClient
();
final
HttpClientRequest
request
=
await
client
.
getUrl
(
Uri
.
parse
(
registry
));
final
HttpClientRequest
request
=
await
client
.
getUrl
(
Uri
.
parse
(
registry
));
final
HttpClientResponse
response
=
await
request
.
close
();
final
HttpClientResponse
response
=
await
request
.
close
();
final
String
body
=
(
await
response
.
transform
<
String
>(
utf8
.
decoder
).
toList
()).
join
(
''
);
final
String
body
=
(
await
response
.
cast
<
List
<
int
>>().
transform
<
String
>(
utf8
.
decoder
).
toList
()).
join
(
''
);
client
.
close
(
force:
true
);
client
.
close
(
force:
true
);
final
List
<
Map
<
String
,
List
<
String
>>>
sections
=
body
.
split
(
'%%'
).
skip
(
1
).
map
<
Map
<
String
,
List
<
String
>>>(
_parseSection
).
toList
();
final
List
<
Map
<
String
,
List
<
String
>>>
sections
=
body
.
split
(
'%%'
).
skip
(
1
).
map
<
Map
<
String
,
List
<
String
>>>(
_parseSection
).
toList
();
for
(
Map
<
String
,
List
<
String
>>
section
in
sections
)
{
for
(
Map
<
String
,
List
<
String
>>
section
in
sections
)
{
...
...
packages/flutter_tools/test/base/net_test.dart
View file @
fb2f18e7
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
// found in the LICENSE file.
// found in the LICENSE file.
import
'dart:async'
;
import
'dart:async'
;
import
'dart:typed_data'
;
import
'package:flutter_tools/src/base/io.dart'
as
io
;
import
'package:flutter_tools/src/base/io.dart'
as
io
;
import
'package:flutter_tools/src/base/net.dart'
;
import
'package:flutter_tools/src/base/net.dart'
;
...
@@ -216,13 +217,13 @@ class MockHttpClientResponse extends Stream<List<int>> implements io.HttpClientR
...
@@ -216,13 +217,13 @@ class MockHttpClientResponse extends Stream<List<int>> implements io.HttpClientR
String
get
reasonPhrase
=>
'<reason phrase>'
;
String
get
reasonPhrase
=>
'<reason phrase>'
;
@override
@override
StreamSubscription
<
List
<
int
>
>
listen
(
StreamSubscription
<
Uint8List
>
listen
(
void
onData
(
List
<
int
>
event
),
{
void
onData
(
Uint8List
event
),
{
Function
onError
,
Function
onError
,
void
onDone
(),
void
onDone
(),
bool
cancelOnError
,
bool
cancelOnError
,
})
{
})
{
return
Stream
<
List
<
int
>>.
fromFuture
(
Future
<
List
<
int
>
>.
error
(
const
io
.
SocketException
(
'test'
)))
return
Stream
<
Uint8List
>.
fromFuture
(
Future
<
Uint8List
>.
error
(
const
io
.
SocketException
(
'test'
)))
.
listen
(
onData
,
onError:
onError
,
onDone:
onDone
,
cancelOnError:
cancelOnError
);
.
listen
(
onData
,
onError:
onError
,
onDone:
onDone
,
cancelOnError:
cancelOnError
);
}
}
...
...
packages/flutter_tools/test/commands/create_test.dart
View file @
fb2f18e7
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
import
'dart:async'
;
import
'dart:async'
;
import
'dart:convert'
;
import
'dart:convert'
;
import
'dart:typed_data'
;
import
'package:args/command_runner.dart'
;
import
'package:args/command_runner.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
...
@@ -1303,13 +1304,13 @@ class MockHttpClientResponse extends Stream<List<int>> implements HttpClientResp
...
@@ -1303,13 +1304,13 @@ class MockHttpClientResponse extends Stream<List<int>> implements HttpClientResp
*/
*/
@override
@override
StreamSubscription
<
List
<
int
>
>
listen
(
StreamSubscription
<
Uint8List
>
listen
(
void
onData
(
List
<
int
>
event
),
{
void
onData
(
Uint8List
event
),
{
Function
onError
,
Function
onError
,
void
onDone
(),
void
onDone
(),
bool
cancelOnError
,
bool
cancelOnError
,
})
{
})
{
return
Stream
<
List
<
int
>>.
fromIterable
(<
List
<
int
>>[
result
.
codeUnits
])
return
Stream
<
Uint8List
>.
fromIterable
(<
Uint8List
>[
Uint8List
.
fromList
(
result
.
codeUnits
)
])
.
listen
(
onData
,
onError:
onError
,
onDone:
onDone
,
cancelOnError:
cancelOnError
);
.
listen
(
onData
,
onError:
onError
,
onDone:
onDone
,
cancelOnError:
cancelOnError
);
}
}
...
...
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