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
42fa4f03
Unverified
Commit
42fa4f03
authored
Oct 06, 2020
by
Michael Goderbauer
Committed by
GitHub
Oct 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate some more non-test utils for tests (#67351)
parent
8998167d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
11 deletions
+4
-11
transformed_double_tap_test.dart
...es/flutter/test/gestures/transformed_double_tap_test.dart
+0
-0
data_table_test_utils.dart
packages/flutter/test/material/data_table_test_utils.dart
+0
-2
feedback_tester.dart
packages/flutter/test/material/feedback_tester.dart
+0
-2
image_test_utils.dart
packages/flutter/test/painting/image_test_utils.dart
+0
-1
message_codecs_testing.dart
packages/flutter/test/services/message_codecs_testing.dart
+4
-6
No files found.
packages/flutter/test/gestures/transformed_double_tap.dart
→
packages/flutter/test/gestures/transformed_double_tap
_test
.dart
View file @
42fa4f03
File moved
packages/flutter/test/material/data_table_test_utils.dart
View file @
42fa4f03
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
class
Dessert
{
Dessert
(
this
.
name
,
this
.
calories
,
this
.
fat
,
this
.
carbs
,
this
.
protein
,
this
.
sodium
,
this
.
calcium
,
this
.
iron
);
...
...
packages/flutter/test/material/feedback_tester.dart
View file @
42fa4f03
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'package:flutter/services.dart'
;
/// Tracks how often feedback has been requested since its instantiation.
...
...
packages/flutter/test/painting/image_test_utils.dart
View file @
42fa4f03
...
...
@@ -10,7 +10,6 @@ import 'package:flutter/painting.dart';
import
'package:flutter_test/flutter_test.dart'
;
class
TestImageProvider
extends
ImageProvider
<
TestImageProvider
>
{
TestImageProvider
(
this
.
testImage
);
...
...
packages/flutter/test/services/message_codecs_testing.dart
View file @
42fa4f03
...
...
@@ -2,15 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'dart:typed_data'
;
import
'package:flutter/services.dart'
;
import
'../flutter_test_alternative.dart'
;
void
checkEncoding
<
T
>(
MessageCodec
<
T
>
codec
,
T
message
,
List
<
int
>
expectedBytes
)
{
final
ByteData
encoded
=
codec
.
encodeMessage
(
message
);
final
ByteData
encoded
=
codec
.
encodeMessage
(
message
)
!
;
expect
(
encoded
.
buffer
.
asUint8List
(
0
,
encoded
.
lengthInBytes
),
orderedEquals
(
expectedBytes
),
...
...
@@ -18,17 +16,17 @@ void checkEncoding<T>(MessageCodec<T> codec, T message, List<int> expectedBytes)
}
void
checkEncodeDecode
<
T
>(
MessageCodec
<
T
>
codec
,
T
message
)
{
final
ByteData
encoded
=
codec
.
encodeMessage
(
message
);
final
ByteData
?
encoded
=
codec
.
encodeMessage
(
message
);
final
T
decoded
=
codec
.
decodeMessage
(
encoded
);
if
(
message
==
null
)
{
expect
(
encoded
,
isNull
);
expect
(
decoded
,
isNull
);
}
else
{
expect
(
deepEquals
(
message
,
decoded
),
isTrue
);
final
ByteData
encodedAgain
=
codec
.
encodeMessage
(
decoded
);
final
ByteData
encodedAgain
=
codec
.
encodeMessage
(
decoded
)
!
;
expect
(
encodedAgain
.
buffer
.
asUint8List
(),
orderedEquals
(
encoded
.
buffer
.
asUint8List
()),
orderedEquals
(
encoded
!
.
buffer
.
asUint8List
()),
);
}
}
...
...
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