Skip to content

Commit

Permalink
Fix flutter_frontend_server test - name parameter is required now. (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
aam authored Feb 19, 2021
1 parent 4122236 commit 76b9351
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions flutter_frontend_server/test/to_string_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void main(List<String> args) async {
when(procedure.name).thenReturn(Name('toString'));
when(procedure.annotations).thenReturn(const <Expression>[]);
when(procedure.enclosingLibrary).thenReturn(library);
when(procedure.enclosingClass).thenReturn(Class());
when(procedure.enclosingClass).thenReturn(Class(name: 'foo'));
when(procedure.isAbstract).thenReturn(true);
when(procedure.isStatic).thenReturn(false);
when(function.body).thenReturn(statement);
Expand All @@ -112,7 +112,7 @@ void main(List<String> args) async {
when(procedure.name).thenReturn(Name('toString'));
when(procedure.annotations).thenReturn(const <Expression>[]);
when(procedure.enclosingLibrary).thenReturn(library);
when(procedure.enclosingClass).thenReturn(Class());
when(procedure.enclosingClass).thenReturn(Class(name: 'foo'));
when(procedure.isAbstract).thenReturn(false);
when(procedure.isStatic).thenReturn(true);
when(function.body).thenReturn(statement);
Expand All @@ -131,7 +131,7 @@ void main(List<String> args) async {
when(procedure.name).thenReturn(Name('toString'));
when(procedure.annotations).thenReturn(const <Expression>[]);
when(procedure.enclosingLibrary).thenReturn(library);
when(procedure.enclosingClass).thenReturn(Class()..isEnum = true);
when(procedure.enclosingClass).thenReturn(Class(name: 'foo')..isEnum = true);
when(procedure.isAbstract).thenReturn(false);
when(procedure.isStatic).thenReturn(false);
when(function.body).thenReturn(statement);
Expand All @@ -150,7 +150,7 @@ void main(List<String> args) async {
when(procedure.name).thenReturn(Name('toString'));
when(procedure.annotations).thenReturn(const <Expression>[]);
when(procedure.enclosingLibrary).thenReturn(library);
when(procedure.enclosingClass).thenReturn(Class());
when(procedure.enclosingClass).thenReturn(Class(name: 'foo'));
when(procedure.isAbstract).thenReturn(false);
when(procedure.isStatic).thenReturn(false);
when(function.body).thenReturn(statement);
Expand Down Expand Up @@ -181,7 +181,7 @@ void main(List<String> args) async {
]);

when(procedure.enclosingLibrary).thenReturn(library);
when(procedure.enclosingClass).thenReturn(Class());
when(procedure.enclosingClass).thenReturn(Class(name: 'foo'));
when(procedure.isAbstract).thenReturn(false);
when(procedure.isStatic).thenReturn(false);
when(function.body).thenReturn(statement);
Expand Down Expand Up @@ -209,7 +209,7 @@ void main(List<String> args) async {
when(procedure.name).thenReturn(name);
when(procedure.annotations).thenReturn(const <Expression>[]);
when(procedure.enclosingLibrary).thenReturn(library);
when(procedure.enclosingClass).thenReturn(Class());
when(procedure.enclosingClass).thenReturn(Class(name: 'foo'));
when(procedure.isAbstract).thenReturn(false);
when(procedure.isStatic).thenReturn(false);
when(function.body).thenReturn(statement);
Expand All @@ -230,7 +230,7 @@ void main(List<String> args) async {
when(procedure.name).thenReturn(name);
when(procedure.annotations).thenReturn(const <Expression>[]);
when(procedure.enclosingLibrary).thenReturn(library);
when(procedure.enclosingClass).thenReturn(Class());
when(procedure.enclosingClass).thenReturn(Class(name: 'foo'));
when(procedure.isAbstract).thenReturn(false);
when(procedure.isStatic).thenReturn(false);
when(function.body).thenReturn(statement);
Expand Down

0 comments on commit 76b9351

Please sign in to comment.