| Index: generated/googleapis/test/webfonts/v1_test.dart
|
| diff --git a/generated/googleapis/test/webfonts/v1_test.dart b/generated/googleapis/test/webfonts/v1_test.dart
|
| index 89d0dfe125fb4641016b845d40e26f02d473fbb1..7b2cbcbc9a37d393b1ee3c4f9ece90131c2a7450 100644
|
| --- a/generated/googleapis/test/webfonts/v1_test.dart
|
| +++ b/generated/googleapis/test/webfonts/v1_test.dart
|
| @@ -7,7 +7,7 @@ import "dart:convert" as convert;
|
|
|
| import 'package:http/http.dart' as http;
|
| import 'package:http/testing.dart' as http_testing;
|
| -import 'package:unittest/unittest.dart' as unittest;
|
| +import 'package:test/test.dart' as unittest;
|
|
|
| import 'package:googleapis/webfonts/v1.dart' as api;
|
|
|
| @@ -46,45 +46,45 @@ class HttpServerMock extends http.BaseClient {
|
| }
|
|
|
| http.StreamedResponse stringResponse(
|
| - core.int status, core.Map headers, core.String body) {
|
| + core.int status, core.Map<core.String, core.String> headers, core.String body) {
|
| var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed1542() {
|
| +buildUnnamed1549() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1542(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1549(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1543() {
|
| +buildUnnamed1550() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1543(core.List<core.String> o) {
|
| +checkUnnamed1550(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1544() {
|
| +buildUnnamed1551() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1544(core.List<core.String> o) {
|
| +checkUnnamed1551(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -97,11 +97,11 @@ buildWebfont() {
|
| if (buildCounterWebfont < 3) {
|
| o.category = "foo";
|
| o.family = "foo";
|
| - o.files = buildUnnamed1542();
|
| + o.files = buildUnnamed1549();
|
| o.kind = "foo";
|
| o.lastModified = core.DateTime.parse("2002-02-27T14:01:02Z");
|
| - o.subsets = buildUnnamed1543();
|
| - o.variants = buildUnnamed1544();
|
| + o.subsets = buildUnnamed1550();
|
| + o.variants = buildUnnamed1551();
|
| o.version = "foo";
|
| }
|
| buildCounterWebfont--;
|
| @@ -113,24 +113,24 @@ checkWebfont(api.Webfont o) {
|
| if (buildCounterWebfont < 3) {
|
| unittest.expect(o.category, unittest.equals('foo'));
|
| unittest.expect(o.family, unittest.equals('foo'));
|
| - checkUnnamed1542(o.files);
|
| + checkUnnamed1549(o.files);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.lastModified, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00")));
|
| - checkUnnamed1543(o.subsets);
|
| - checkUnnamed1544(o.variants);
|
| + checkUnnamed1550(o.subsets);
|
| + checkUnnamed1551(o.variants);
|
| unittest.expect(o.version, unittest.equals('foo'));
|
| }
|
| buildCounterWebfont--;
|
| }
|
|
|
| -buildUnnamed1545() {
|
| +buildUnnamed1552() {
|
| var o = new core.List<api.Webfont>();
|
| o.add(buildWebfont());
|
| o.add(buildWebfont());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1545(core.List<api.Webfont> o) {
|
| +checkUnnamed1552(core.List<api.Webfont> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkWebfont(o[0]);
|
| checkWebfont(o[1]);
|
| @@ -141,7 +141,7 @@ buildWebfontList() {
|
| var o = new api.WebfontList();
|
| buildCounterWebfontList++;
|
| if (buildCounterWebfontList < 3) {
|
| - o.items = buildUnnamed1545();
|
| + o.items = buildUnnamed1552();
|
| o.kind = "foo";
|
| }
|
| buildCounterWebfontList--;
|
| @@ -151,7 +151,7 @@ buildWebfontList() {
|
| checkWebfontList(api.WebfontList o) {
|
| buildCounterWebfontList++;
|
| if (buildCounterWebfontList < 3) {
|
| - checkUnnamed1545(o.items);
|
| + checkUnnamed1552(o.items);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterWebfontList--;
|
| @@ -183,7 +183,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.WebfontsResourceApi res = new api.WebfontsApi(mock).webfonts;
|
| var arg_sort = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -220,7 +220,7 @@ main() {
|
| var resp = convert.JSON.encode(buildWebfontList());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(sort: arg_sort).then(unittest.expectAsync(((api.WebfontList response) {
|
| + res.list(sort: arg_sort).then(unittest.expectAsync1(((api.WebfontList response) {
|
| checkWebfontList(response);
|
| })));
|
| });
|
|
|