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
76db0d74
Unverified
Commit
76db0d74
authored
Jul 01, 2021
by
Ahmed Ashour
Committed by
GitHub
Jul 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in test class (#84961)
parent
529a599c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
cache_test.dart
packages/flutter_tools/test/general.shard/cache_test.dart
+9
-9
No files found.
packages/flutter_tools/test/general.shard/cache_test.dart
View file @
76db0d74
...
...
@@ -195,9 +195,9 @@ void main() {
});
testWithoutContext
(
'should not be up to date, if some cached artifact is not'
,
()
async
{
final
CachedArtifact
artifact1
=
FakeSecondayCachedArtifact
()
final
CachedArtifact
artifact1
=
FakeSeconda
r
yCachedArtifact
()
..
upToDate
=
true
;
final
CachedArtifact
artifact2
=
FakeSecondayCachedArtifact
()
final
CachedArtifact
artifact2
=
FakeSeconda
r
yCachedArtifact
()
..
upToDate
=
false
;
final
FileSystem
fileSystem
=
MemoryFileSystem
.
test
();
...
...
@@ -211,9 +211,9 @@ void main() {
});
testWithoutContext
(
'should be up to date, if all cached artifacts are'
,
()
async
{
final
FakeSeconda
yCachedArtifact
artifact1
=
FakeSeconda
yCachedArtifact
()
final
FakeSeconda
ryCachedArtifact
artifact1
=
FakeSecondar
yCachedArtifact
()
..
upToDate
=
true
;
final
FakeSeconda
yCachedArtifact
artifact2
=
FakeSeconda
yCachedArtifact
()
final
FakeSeconda
ryCachedArtifact
artifact2
=
FakeSecondar
yCachedArtifact
()
..
upToDate
=
true
;
final
FileSystem
fileSystem
=
MemoryFileSystem
.
test
();
final
Cache
cache
=
Cache
.
test
(
...
...
@@ -226,9 +226,9 @@ void main() {
});
testWithoutContext
(
'should update cached artifacts which are not up to date'
,
()
async
{
final
FakeSeconda
yCachedArtifact
artifact1
=
FakeSeconda
yCachedArtifact
()
final
FakeSeconda
ryCachedArtifact
artifact1
=
FakeSecondar
yCachedArtifact
()
..
upToDate
=
true
;
final
FakeSeconda
yCachedArtifact
artifact2
=
FakeSeconda
yCachedArtifact
()
final
FakeSeconda
ryCachedArtifact
artifact2
=
FakeSecondar
yCachedArtifact
()
..
upToDate
=
false
;
final
FileSystem
fileSystem
=
MemoryFileSystem
.
test
();
...
...
@@ -272,9 +272,9 @@ void main() {
testWithoutContext
(
'failed storage.googleapis.com download shows China warning'
,
()
async
{
final
InternetAddress
address
=
(
await
InternetAddress
.
lookup
(
'storage.googleapis.com'
)).
first
;
final
FakeSeconda
yCachedArtifact
artifact1
=
FakeSeconda
yCachedArtifact
()
final
FakeSeconda
ryCachedArtifact
artifact1
=
FakeSecondar
yCachedArtifact
()
..
upToDate
=
false
;
final
FakeSeconda
yCachedArtifact
artifact2
=
FakeSeconda
yCachedArtifact
()
final
FakeSeconda
ryCachedArtifact
artifact2
=
FakeSecondar
yCachedArtifact
()
..
upToDate
=
false
..
updateException
=
SocketException
(
'Connection reset by peer'
,
...
...
@@ -969,7 +969,7 @@ class FakeDownloadedArtifact extends CachedArtifact {
Future
<
void
>
updateInner
(
ArtifactUpdater
artifactUpdater
,
FileSystem
fileSystem
,
OperatingSystemUtils
operatingSystemUtils
)
async
{
}
}
class
FakeSecondayCachedArtifact
extends
Fake
implements
CachedArtifact
{
class
FakeSeconda
r
yCachedArtifact
extends
Fake
implements
CachedArtifact
{
bool
upToDate
=
false
;
bool
didUpdate
=
false
;
Exception
updateException
;
...
...
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