Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Unified Diff: generated/googleapis/test/manufacturers/v1_test.dart

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/test/logging/v2_test.dart ('k') | generated/googleapis/test/mirror/v1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3d80f76aa1dd86b07f92be933a633dc7ac9facb4..da4c7434602a7a7725d74de3b21f8bd71598b942 100644
--- a/generated/googleapis/test/manufacturers/v1_test.dart
+++ b/generated/googleapis/test/manufacturers/v1_test.dart
@@ -51,79 +51,79 @@ http.StreamedResponse stringResponse(
return new http.StreamedResponse(stream, status, headers: headers);
}
-buildUnnamed1394() {
+buildUnnamed1390() {
var o = new core.List<api.Image>();
o.add(buildImage());
o.add(buildImage());
return o;
}
-checkUnnamed1394(core.List<api.Image> o) {
+checkUnnamed1390(core.List<api.Image> o) {
unittest.expect(o, unittest.hasLength(2));
checkImage(o[0]);
checkImage(o[1]);
}
-buildUnnamed1395() {
+buildUnnamed1391() {
var o = new core.List<api.FeatureDescription>();
o.add(buildFeatureDescription());
o.add(buildFeatureDescription());
return o;
}
-checkUnnamed1395(core.List<api.FeatureDescription> o) {
+checkUnnamed1391(core.List<api.FeatureDescription> o) {
unittest.expect(o, unittest.hasLength(2));
checkFeatureDescription(o[0]);
checkFeatureDescription(o[1]);
}
-buildUnnamed1396() {
+buildUnnamed1392() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1396(core.List<core.String> o) {
+checkUnnamed1392(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'));
}
-buildUnnamed1397() {
+buildUnnamed1393() {
var o = new core.List<api.ProductDetail>();
o.add(buildProductDetail());
o.add(buildProductDetail());
return o;
}
-checkUnnamed1397(core.List<api.ProductDetail> o) {
+checkUnnamed1393(core.List<api.ProductDetail> o) {
unittest.expect(o, unittest.hasLength(2));
checkProductDetail(o[0]);
checkProductDetail(o[1]);
}
-buildUnnamed1398() {
+buildUnnamed1394() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1398(core.List<core.String> o) {
+checkUnnamed1394(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'));
}
-buildUnnamed1399() {
+buildUnnamed1395() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1399(core.List<core.String> o) {
+checkUnnamed1395(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 = buildUnnamed1394();
+ o.additionalImageLink = buildUnnamed1390();
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 = buildUnnamed1395();
+ o.featureDescription = buildUnnamed1391();
o.flavor = "foo";
o.format = "foo";
o.gender = "foo";
- o.gtin = buildUnnamed1396();
+ o.gtin = buildUnnamed1392();
o.imageLink = buildImage();
o.itemGroupId = "foo";
o.material = "foo";
o.mpn = "foo";
o.pattern = "foo";
- o.productDetail = buildUnnamed1397();
+ o.productDetail = buildUnnamed1393();
o.productLine = "foo";
o.productName = "foo";
o.productPageUrl = "foo";
- o.productType = buildUnnamed1398();
+ o.productType = buildUnnamed1394();
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 = buildUnnamed1399();
+ o.videoLink = buildUnnamed1395();
}
buildCounterAttributes--;
return o;
@@ -174,7 +174,7 @@ buildAttributes() {
checkAttributes(api.Attributes o) {
buildCounterAttributes++;
if (buildCounterAttributes < 3) {
- checkUnnamed1394(o.additionalImageLink);
+ checkUnnamed1390(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'));
- checkUnnamed1395(o.featureDescription);
+ checkUnnamed1391(o.featureDescription);
unittest.expect(o.flavor, unittest.equals('foo'));
unittest.expect(o.format, unittest.equals('foo'));
unittest.expect(o.gender, unittest.equals('foo'));
- checkUnnamed1396(o.gtin);
+ checkUnnamed1392(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'));
- checkUnnamed1397(o.productDetail);
+ checkUnnamed1393(o.productDetail);
unittest.expect(o.productLine, unittest.equals('foo'));
unittest.expect(o.productName, unittest.equals('foo'));
unittest.expect(o.productPageUrl, unittest.equals('foo'));
- checkUnnamed1398(o.productType);
+ checkUnnamed1394(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'));
- checkUnnamed1399(o.videoLink);
+ checkUnnamed1395(o.videoLink);
}
buildCounterAttributes--;
}
@@ -325,14 +325,14 @@ checkIssue(api.Issue o) {
buildCounterIssue--;
}
-buildUnnamed1400() {
+buildUnnamed1396() {
var o = new core.List<api.Product>();
o.add(buildProduct());
o.add(buildProduct());
return o;
}
-checkUnnamed1400(core.List<api.Product> o) {
+checkUnnamed1396(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 = buildUnnamed1400();
+ o.products = buildUnnamed1396();
}
buildCounterListProductsResponse--;
return o;
@@ -354,7 +354,7 @@ checkListProductsResponse(api.ListProductsResponse o) {
buildCounterListProductsResponse++;
if (buildCounterListProductsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed1400(o.products);
+ checkUnnamed1396(o.products);
}
buildCounterListProductsResponse--;
}
@@ -380,27 +380,27 @@ checkPrice(api.Price o) {
buildCounterPrice--;
}
-buildUnnamed1401() {
+buildUnnamed1397() {
var o = new core.List<api.Issue>();
o.add(buildIssue());
o.add(buildIssue());
return o;
}
-checkUnnamed1401(core.List<api.Issue> o) {
+checkUnnamed1397(core.List<api.Issue> o) {
unittest.expect(o, unittest.hasLength(2));
checkIssue(o[0]);
checkIssue(o[1]);
}
-buildUnnamed1402() {
+buildUnnamed1398() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed1402(core.List<core.String> o) {
+checkUnnamed1398(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 = buildUnnamed1401();
- o.manuallyDeletedAttributes = buildUnnamed1402();
+ o.issues = buildUnnamed1397();
+ o.manuallyDeletedAttributes = buildUnnamed1398();
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);
- checkUnnamed1401(o.issues);
- checkUnnamed1402(o.manuallyDeletedAttributes);
+ checkUnnamed1397(o.issues);
+ checkUnnamed1398(o.manuallyDeletedAttributes);
checkAttributes(o.manuallyProvidedAttributes);
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.parent, unittest.equals('foo'));
@@ -610,8 +610,8 @@ main() {
var mock = new HttpServerMock();
api.AccountsProductsResourceApi res = new api.ManufacturersApi(mock).accounts.products;
var arg_parent = "foo";
- var arg_pageToken = "foo";
var arg_pageSize = 42;
+ var arg_pageToken = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
@@ -639,8 +639,8 @@ main() {
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
- unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
+ unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
var h = {
@@ -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, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListProductsResponse response) {
checkListProductsResponse(response);
})));
});
« no previous file with comments | « generated/googleapis/test/logging/v2_test.dart ('k') | generated/googleapis/test/mirror/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698