Index: generated/googleapis/test/manufacturers/v1_test.dart |
diff --git a/generated/googleapis/test/manufacturers/v1_test.dart b/generated/googleapis/test/manufacturers/v1_test.dart |
index 20f22d74f6560a95c64f4114f4ae4220218b044a..9eace3f4acded9d47e653a1303c26e02976ea46e 100644 |
--- a/generated/googleapis/test/manufacturers/v1_test.dart |
+++ b/generated/googleapis/test/manufacturers/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/manufacturers/v1.dart' as api; |
@@ -46,84 +46,84 @@ 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); |
} |
-buildUnnamed1461() { |
+buildUnnamed1468() { |
var o = new core.List<api.Image>(); |
o.add(buildImage()); |
o.add(buildImage()); |
return o; |
} |
-checkUnnamed1461(core.List<api.Image> o) { |
+checkUnnamed1468(core.List<api.Image> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkImage(o[0]); |
checkImage(o[1]); |
} |
-buildUnnamed1462() { |
+buildUnnamed1469() { |
var o = new core.List<api.FeatureDescription>(); |
o.add(buildFeatureDescription()); |
o.add(buildFeatureDescription()); |
return o; |
} |
-checkUnnamed1462(core.List<api.FeatureDescription> o) { |
+checkUnnamed1469(core.List<api.FeatureDescription> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkFeatureDescription(o[0]); |
checkFeatureDescription(o[1]); |
} |
-buildUnnamed1463() { |
+buildUnnamed1470() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1463(core.List<core.String> o) { |
+checkUnnamed1470(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')); |
} |
-buildUnnamed1464() { |
+buildUnnamed1471() { |
var o = new core.List<api.ProductDetail>(); |
o.add(buildProductDetail()); |
o.add(buildProductDetail()); |
return o; |
} |
-checkUnnamed1464(core.List<api.ProductDetail> o) { |
+checkUnnamed1471(core.List<api.ProductDetail> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkProductDetail(o[0]); |
checkProductDetail(o[1]); |
} |
-buildUnnamed1465() { |
+buildUnnamed1472() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1465(core.List<core.String> o) { |
+checkUnnamed1472(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')); |
} |
-buildUnnamed1466() { |
+buildUnnamed1473() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1466(core.List<core.String> o) { |
+checkUnnamed1473(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')); |
@@ -134,7 +134,7 @@ buildAttributes() { |
var o = new api.Attributes(); |
buildCounterAttributes++; |
if (buildCounterAttributes < 3) { |
- o.additionalImageLink = buildUnnamed1461(); |
+ o.additionalImageLink = buildUnnamed1468(); |
o.ageGroup = "foo"; |
o.brand = "foo"; |
o.capacity = buildCapacity(); |
@@ -142,21 +142,21 @@ buildAttributes() { |
o.count = buildCount(); |
o.description = "foo"; |
o.disclosureDate = "foo"; |
- o.featureDescription = buildUnnamed1462(); |
+ o.featureDescription = buildUnnamed1469(); |
o.flavor = "foo"; |
o.format = "foo"; |
o.gender = "foo"; |
- o.gtin = buildUnnamed1463(); |
+ o.gtin = buildUnnamed1470(); |
o.imageLink = buildImage(); |
o.itemGroupId = "foo"; |
o.material = "foo"; |
o.mpn = "foo"; |
o.pattern = "foo"; |
- o.productDetail = buildUnnamed1464(); |
+ o.productDetail = buildUnnamed1471(); |
o.productLine = "foo"; |
o.productName = "foo"; |
o.productPageUrl = "foo"; |
- o.productType = buildUnnamed1465(); |
+ o.productType = buildUnnamed1472(); |
o.releaseDate = "foo"; |
o.scent = "foo"; |
o.size = "foo"; |
@@ -165,7 +165,7 @@ buildAttributes() { |
o.suggestedRetailPrice = buildPrice(); |
o.theme = "foo"; |
o.title = "foo"; |
- o.videoLink = buildUnnamed1466(); |
+ o.videoLink = buildUnnamed1473(); |
} |
buildCounterAttributes--; |
return o; |
@@ -174,7 +174,7 @@ buildAttributes() { |
checkAttributes(api.Attributes o) { |
buildCounterAttributes++; |
if (buildCounterAttributes < 3) { |
- checkUnnamed1461(o.additionalImageLink); |
+ checkUnnamed1468(o.additionalImageLink); |
unittest.expect(o.ageGroup, unittest.equals('foo')); |
unittest.expect(o.brand, unittest.equals('foo')); |
checkCapacity(o.capacity); |
@@ -182,21 +182,21 @@ checkAttributes(api.Attributes o) { |
checkCount(o.count); |
unittest.expect(o.description, unittest.equals('foo')); |
unittest.expect(o.disclosureDate, unittest.equals('foo')); |
- checkUnnamed1462(o.featureDescription); |
+ checkUnnamed1469(o.featureDescription); |
unittest.expect(o.flavor, unittest.equals('foo')); |
unittest.expect(o.format, unittest.equals('foo')); |
unittest.expect(o.gender, unittest.equals('foo')); |
- checkUnnamed1463(o.gtin); |
+ checkUnnamed1470(o.gtin); |
checkImage(o.imageLink); |
unittest.expect(o.itemGroupId, unittest.equals('foo')); |
unittest.expect(o.material, unittest.equals('foo')); |
unittest.expect(o.mpn, unittest.equals('foo')); |
unittest.expect(o.pattern, unittest.equals('foo')); |
- checkUnnamed1464(o.productDetail); |
+ checkUnnamed1471(o.productDetail); |
unittest.expect(o.productLine, unittest.equals('foo')); |
unittest.expect(o.productName, unittest.equals('foo')); |
unittest.expect(o.productPageUrl, unittest.equals('foo')); |
- checkUnnamed1465(o.productType); |
+ checkUnnamed1472(o.productType); |
unittest.expect(o.releaseDate, unittest.equals('foo')); |
unittest.expect(o.scent, unittest.equals('foo')); |
unittest.expect(o.size, unittest.equals('foo')); |
@@ -205,7 +205,7 @@ checkAttributes(api.Attributes o) { |
checkPrice(o.suggestedRetailPrice); |
unittest.expect(o.theme, unittest.equals('foo')); |
unittest.expect(o.title, unittest.equals('foo')); |
- checkUnnamed1466(o.videoLink); |
+ checkUnnamed1473(o.videoLink); |
} |
buildCounterAttributes--; |
} |
@@ -325,14 +325,14 @@ checkIssue(api.Issue o) { |
buildCounterIssue--; |
} |
-buildUnnamed1467() { |
+buildUnnamed1474() { |
var o = new core.List<api.Product>(); |
o.add(buildProduct()); |
o.add(buildProduct()); |
return o; |
} |
-checkUnnamed1467(core.List<api.Product> o) { |
+checkUnnamed1474(core.List<api.Product> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkProduct(o[0]); |
checkProduct(o[1]); |
@@ -344,7 +344,7 @@ buildListProductsResponse() { |
buildCounterListProductsResponse++; |
if (buildCounterListProductsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.products = buildUnnamed1467(); |
+ o.products = buildUnnamed1474(); |
} |
buildCounterListProductsResponse--; |
return o; |
@@ -354,7 +354,7 @@ checkListProductsResponse(api.ListProductsResponse o) { |
buildCounterListProductsResponse++; |
if (buildCounterListProductsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1467(o.products); |
+ checkUnnamed1474(o.products); |
} |
buildCounterListProductsResponse--; |
} |
@@ -380,27 +380,27 @@ checkPrice(api.Price o) { |
buildCounterPrice--; |
} |
-buildUnnamed1468() { |
+buildUnnamed1475() { |
var o = new core.List<api.Issue>(); |
o.add(buildIssue()); |
o.add(buildIssue()); |
return o; |
} |
-checkUnnamed1468(core.List<api.Issue> o) { |
+checkUnnamed1475(core.List<api.Issue> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkIssue(o[0]); |
checkIssue(o[1]); |
} |
-buildUnnamed1469() { |
+buildUnnamed1476() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1469(core.List<core.String> o) { |
+checkUnnamed1476(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')); |
@@ -413,8 +413,8 @@ buildProduct() { |
if (buildCounterProduct < 3) { |
o.contentLanguage = "foo"; |
o.finalAttributes = buildAttributes(); |
- o.issues = buildUnnamed1468(); |
- o.manuallyDeletedAttributes = buildUnnamed1469(); |
+ o.issues = buildUnnamed1475(); |
+ o.manuallyDeletedAttributes = buildUnnamed1476(); |
o.manuallyProvidedAttributes = buildAttributes(); |
o.name = "foo"; |
o.parent = "foo"; |
@@ -431,8 +431,8 @@ checkProduct(api.Product o) { |
if (buildCounterProduct < 3) { |
unittest.expect(o.contentLanguage, unittest.equals('foo')); |
checkAttributes(o.finalAttributes); |
- checkUnnamed1468(o.issues); |
- checkUnnamed1469(o.manuallyDeletedAttributes); |
+ checkUnnamed1475(o.issues); |
+ checkUnnamed1476(o.manuallyDeletedAttributes); |
checkAttributes(o.manuallyProvidedAttributes); |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.parent, unittest.equals('foo')); |
@@ -565,7 +565,7 @@ main() { |
api.AccountsProductsResourceApi res = new api.ManufacturersApi(mock).accounts.products; |
var arg_parent = "foo"; |
var arg_name = "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; |
@@ -600,7 +600,7 @@ main() { |
var resp = convert.JSON.encode(buildProduct()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_parent, arg_name).then(unittest.expectAsync(((api.Product response) { |
+ res.get(arg_parent, arg_name).then(unittest.expectAsync1(((api.Product response) { |
checkProduct(response); |
}))); |
}); |
@@ -612,7 +612,7 @@ main() { |
var arg_parent = "foo"; |
var arg_pageToken = "foo"; |
var arg_pageSize = 42; |
- 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; |
@@ -649,7 +649,7 @@ main() { |
var resp = convert.JSON.encode(buildListProductsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListProductsResponse response) { |
+ res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListProductsResponse response) { |
checkListProductsResponse(response); |
}))); |
}); |