Index: generated/googleapis/test/safebrowsing/v4_test.dart |
diff --git a/generated/googleapis/test/safebrowsing/v4_test.dart b/generated/googleapis/test/safebrowsing/v4_test.dart |
index edc5fcb37efba6ca81cc59f0264359276a7e82c1..ddd5b8b31b7fb4db9bd6f387196fb19720223550 100644 |
--- a/generated/googleapis/test/safebrowsing/v4_test.dart |
+++ b/generated/googleapis/test/safebrowsing/v4_test.dart |
@@ -91,14 +91,14 @@ checkClientInfo(api.ClientInfo o) { |
buildCounterClientInfo--; |
} |
-buildUnnamed1064() { |
+buildUnnamed1081() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1064(core.List<core.String> o) { |
+checkUnnamed1081(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')); |
@@ -112,7 +112,7 @@ buildConstraints() { |
o.maxDatabaseEntries = 42; |
o.maxUpdateEntries = 42; |
o.region = "foo"; |
- o.supportedCompressions = buildUnnamed1064(); |
+ o.supportedCompressions = buildUnnamed1081(); |
} |
buildCounterConstraints--; |
return o; |
@@ -124,19 +124,19 @@ checkConstraints(api.Constraints o) { |
unittest.expect(o.maxDatabaseEntries, unittest.equals(42)); |
unittest.expect(o.maxUpdateEntries, unittest.equals(42)); |
unittest.expect(o.region, unittest.equals('foo')); |
- checkUnnamed1064(o.supportedCompressions); |
+ checkUnnamed1081(o.supportedCompressions); |
} |
buildCounterConstraints--; |
} |
-buildUnnamed1065() { |
+buildUnnamed1082() { |
var o = new core.List<api.ListUpdateRequest>(); |
o.add(buildListUpdateRequest()); |
o.add(buildListUpdateRequest()); |
return o; |
} |
-checkUnnamed1065(core.List<api.ListUpdateRequest> o) { |
+checkUnnamed1082(core.List<api.ListUpdateRequest> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkListUpdateRequest(o[0]); |
checkListUpdateRequest(o[1]); |
@@ -148,7 +148,7 @@ buildFetchThreatListUpdatesRequest() { |
buildCounterFetchThreatListUpdatesRequest++; |
if (buildCounterFetchThreatListUpdatesRequest < 3) { |
o.client = buildClientInfo(); |
- o.listUpdateRequests = buildUnnamed1065(); |
+ o.listUpdateRequests = buildUnnamed1082(); |
} |
buildCounterFetchThreatListUpdatesRequest--; |
return o; |
@@ -158,19 +158,19 @@ checkFetchThreatListUpdatesRequest(api.FetchThreatListUpdatesRequest o) { |
buildCounterFetchThreatListUpdatesRequest++; |
if (buildCounterFetchThreatListUpdatesRequest < 3) { |
checkClientInfo(o.client); |
- checkUnnamed1065(o.listUpdateRequests); |
+ checkUnnamed1082(o.listUpdateRequests); |
} |
buildCounterFetchThreatListUpdatesRequest--; |
} |
-buildUnnamed1066() { |
+buildUnnamed1083() { |
var o = new core.List<api.ListUpdateResponse>(); |
o.add(buildListUpdateResponse()); |
o.add(buildListUpdateResponse()); |
return o; |
} |
-checkUnnamed1066(core.List<api.ListUpdateResponse> o) { |
+checkUnnamed1083(core.List<api.ListUpdateResponse> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkListUpdateResponse(o[0]); |
checkListUpdateResponse(o[1]); |
@@ -181,7 +181,7 @@ buildFetchThreatListUpdatesResponse() { |
var o = new api.FetchThreatListUpdatesResponse(); |
buildCounterFetchThreatListUpdatesResponse++; |
if (buildCounterFetchThreatListUpdatesResponse < 3) { |
- o.listUpdateResponses = buildUnnamed1066(); |
+ o.listUpdateResponses = buildUnnamed1083(); |
o.minimumWaitDuration = "foo"; |
} |
buildCounterFetchThreatListUpdatesResponse--; |
@@ -191,20 +191,20 @@ buildFetchThreatListUpdatesResponse() { |
checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) { |
buildCounterFetchThreatListUpdatesResponse++; |
if (buildCounterFetchThreatListUpdatesResponse < 3) { |
- checkUnnamed1066(o.listUpdateResponses); |
+ checkUnnamed1083(o.listUpdateResponses); |
unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); |
} |
buildCounterFetchThreatListUpdatesResponse--; |
} |
-buildUnnamed1067() { |
+buildUnnamed1084() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1067(core.List<core.String> o) { |
+checkUnnamed1084(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')); |
@@ -217,7 +217,7 @@ buildFindFullHashesRequest() { |
if (buildCounterFindFullHashesRequest < 3) { |
o.apiClient = buildClientInfo(); |
o.client = buildClientInfo(); |
- o.clientStates = buildUnnamed1067(); |
+ o.clientStates = buildUnnamed1084(); |
o.threatInfo = buildThreatInfo(); |
} |
buildCounterFindFullHashesRequest--; |
@@ -229,20 +229,20 @@ checkFindFullHashesRequest(api.FindFullHashesRequest o) { |
if (buildCounterFindFullHashesRequest < 3) { |
checkClientInfo(o.apiClient); |
checkClientInfo(o.client); |
- checkUnnamed1067(o.clientStates); |
+ checkUnnamed1084(o.clientStates); |
checkThreatInfo(o.threatInfo); |
} |
buildCounterFindFullHashesRequest--; |
} |
-buildUnnamed1068() { |
+buildUnnamed1085() { |
var o = new core.List<api.ThreatMatch>(); |
o.add(buildThreatMatch()); |
o.add(buildThreatMatch()); |
return o; |
} |
-checkUnnamed1068(core.List<api.ThreatMatch> o) { |
+checkUnnamed1085(core.List<api.ThreatMatch> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkThreatMatch(o[0]); |
checkThreatMatch(o[1]); |
@@ -253,7 +253,7 @@ buildFindFullHashesResponse() { |
var o = new api.FindFullHashesResponse(); |
buildCounterFindFullHashesResponse++; |
if (buildCounterFindFullHashesResponse < 3) { |
- o.matches = buildUnnamed1068(); |
+ o.matches = buildUnnamed1085(); |
o.minimumWaitDuration = "foo"; |
o.negativeCacheDuration = "foo"; |
} |
@@ -264,7 +264,7 @@ buildFindFullHashesResponse() { |
checkFindFullHashesResponse(api.FindFullHashesResponse o) { |
buildCounterFindFullHashesResponse++; |
if (buildCounterFindFullHashesResponse < 3) { |
- checkUnnamed1068(o.matches); |
+ checkUnnamed1085(o.matches); |
unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); |
unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); |
} |
@@ -292,14 +292,14 @@ checkFindThreatMatchesRequest(api.FindThreatMatchesRequest o) { |
buildCounterFindThreatMatchesRequest--; |
} |
-buildUnnamed1069() { |
+buildUnnamed1086() { |
var o = new core.List<api.ThreatMatch>(); |
o.add(buildThreatMatch()); |
o.add(buildThreatMatch()); |
return o; |
} |
-checkUnnamed1069(core.List<api.ThreatMatch> o) { |
+checkUnnamed1086(core.List<api.ThreatMatch> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkThreatMatch(o[0]); |
checkThreatMatch(o[1]); |
@@ -310,7 +310,7 @@ buildFindThreatMatchesResponse() { |
var o = new api.FindThreatMatchesResponse(); |
buildCounterFindThreatMatchesResponse++; |
if (buildCounterFindThreatMatchesResponse < 3) { |
- o.matches = buildUnnamed1069(); |
+ o.matches = buildUnnamed1086(); |
} |
buildCounterFindThreatMatchesResponse--; |
return o; |
@@ -319,19 +319,19 @@ buildFindThreatMatchesResponse() { |
checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { |
buildCounterFindThreatMatchesResponse++; |
if (buildCounterFindThreatMatchesResponse < 3) { |
- checkUnnamed1069(o.matches); |
+ checkUnnamed1086(o.matches); |
} |
buildCounterFindThreatMatchesResponse--; |
} |
-buildUnnamed1070() { |
+buildUnnamed1087() { |
var o = new core.List<api.ThreatListDescriptor>(); |
o.add(buildThreatListDescriptor()); |
o.add(buildThreatListDescriptor()); |
return o; |
} |
-checkUnnamed1070(core.List<api.ThreatListDescriptor> o) { |
+checkUnnamed1087(core.List<api.ThreatListDescriptor> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkThreatListDescriptor(o[0]); |
checkThreatListDescriptor(o[1]); |
@@ -342,7 +342,7 @@ buildListThreatListsResponse() { |
var o = new api.ListThreatListsResponse(); |
buildCounterListThreatListsResponse++; |
if (buildCounterListThreatListsResponse < 3) { |
- o.threatLists = buildUnnamed1070(); |
+ o.threatLists = buildUnnamed1087(); |
} |
buildCounterListThreatListsResponse--; |
return o; |
@@ -351,7 +351,7 @@ buildListThreatListsResponse() { |
checkListThreatListsResponse(api.ListThreatListsResponse o) { |
buildCounterListThreatListsResponse++; |
if (buildCounterListThreatListsResponse < 3) { |
- checkUnnamed1070(o.threatLists); |
+ checkUnnamed1087(o.threatLists); |
} |
buildCounterListThreatListsResponse--; |
} |
@@ -383,27 +383,27 @@ checkListUpdateRequest(api.ListUpdateRequest o) { |
buildCounterListUpdateRequest--; |
} |
-buildUnnamed1071() { |
+buildUnnamed1088() { |
var o = new core.List<api.ThreatEntrySet>(); |
o.add(buildThreatEntrySet()); |
o.add(buildThreatEntrySet()); |
return o; |
} |
-checkUnnamed1071(core.List<api.ThreatEntrySet> o) { |
+checkUnnamed1088(core.List<api.ThreatEntrySet> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkThreatEntrySet(o[0]); |
checkThreatEntrySet(o[1]); |
} |
-buildUnnamed1072() { |
+buildUnnamed1089() { |
var o = new core.List<api.ThreatEntrySet>(); |
o.add(buildThreatEntrySet()); |
o.add(buildThreatEntrySet()); |
return o; |
} |
-checkUnnamed1072(core.List<api.ThreatEntrySet> o) { |
+checkUnnamed1089(core.List<api.ThreatEntrySet> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkThreatEntrySet(o[0]); |
checkThreatEntrySet(o[1]); |
@@ -414,11 +414,11 @@ buildListUpdateResponse() { |
var o = new api.ListUpdateResponse(); |
buildCounterListUpdateResponse++; |
if (buildCounterListUpdateResponse < 3) { |
- o.additions = buildUnnamed1071(); |
+ o.additions = buildUnnamed1088(); |
o.checksum = buildChecksum(); |
o.newClientState = "foo"; |
o.platformType = "foo"; |
- o.removals = buildUnnamed1072(); |
+ o.removals = buildUnnamed1089(); |
o.responseType = "foo"; |
o.threatEntryType = "foo"; |
o.threatType = "foo"; |
@@ -430,11 +430,11 @@ buildListUpdateResponse() { |
checkListUpdateResponse(api.ListUpdateResponse o) { |
buildCounterListUpdateResponse++; |
if (buildCounterListUpdateResponse < 3) { |
- checkUnnamed1071(o.additions); |
+ checkUnnamed1088(o.additions); |
checkChecksum(o.checksum); |
unittest.expect(o.newClientState, unittest.equals('foo')); |
unittest.expect(o.platformType, unittest.equals('foo')); |
- checkUnnamed1072(o.removals); |
+ checkUnnamed1089(o.removals); |
unittest.expect(o.responseType, unittest.equals('foo')); |
unittest.expect(o.threatEntryType, unittest.equals('foo')); |
unittest.expect(o.threatType, unittest.equals('foo')); |
@@ -484,14 +484,14 @@ checkRawHashes(api.RawHashes o) { |
buildCounterRawHashes--; |
} |
-buildUnnamed1073() { |
+buildUnnamed1090() { |
var o = new core.List<core.int>(); |
o.add(42); |
o.add(42); |
return o; |
} |
-checkUnnamed1073(core.List<core.int> o) { |
+checkUnnamed1090(core.List<core.int> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals(42)); |
unittest.expect(o[1], unittest.equals(42)); |
@@ -502,7 +502,7 @@ buildRawIndices() { |
var o = new api.RawIndices(); |
buildCounterRawIndices++; |
if (buildCounterRawIndices < 3) { |
- o.indices = buildUnnamed1073(); |
+ o.indices = buildUnnamed1090(); |
} |
buildCounterRawIndices--; |
return o; |
@@ -511,7 +511,7 @@ buildRawIndices() { |
checkRawIndices(api.RawIndices o) { |
buildCounterRawIndices++; |
if (buildCounterRawIndices < 3) { |
- checkUnnamed1073(o.indices); |
+ checkUnnamed1090(o.indices); |
} |
buildCounterRawIndices--; |
} |
@@ -564,14 +564,14 @@ checkThreatEntry(api.ThreatEntry o) { |
buildCounterThreatEntry--; |
} |
-buildUnnamed1074() { |
+buildUnnamed1091() { |
var o = new core.List<api.MetadataEntry>(); |
o.add(buildMetadataEntry()); |
o.add(buildMetadataEntry()); |
return o; |
} |
-checkUnnamed1074(core.List<api.MetadataEntry> o) { |
+checkUnnamed1091(core.List<api.MetadataEntry> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkMetadataEntry(o[0]); |
checkMetadataEntry(o[1]); |
@@ -582,7 +582,7 @@ buildThreatEntryMetadata() { |
var o = new api.ThreatEntryMetadata(); |
buildCounterThreatEntryMetadata++; |
if (buildCounterThreatEntryMetadata < 3) { |
- o.entries = buildUnnamed1074(); |
+ o.entries = buildUnnamed1091(); |
} |
buildCounterThreatEntryMetadata--; |
return o; |
@@ -591,7 +591,7 @@ buildThreatEntryMetadata() { |
checkThreatEntryMetadata(api.ThreatEntryMetadata o) { |
buildCounterThreatEntryMetadata++; |
if (buildCounterThreatEntryMetadata < 3) { |
- checkUnnamed1074(o.entries); |
+ checkUnnamed1091(o.entries); |
} |
buildCounterThreatEntryMetadata--; |
} |
@@ -623,53 +623,53 @@ checkThreatEntrySet(api.ThreatEntrySet o) { |
buildCounterThreatEntrySet--; |
} |
-buildUnnamed1075() { |
+buildUnnamed1092() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1075(core.List<core.String> o) { |
+checkUnnamed1092(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')); |
} |
-buildUnnamed1076() { |
+buildUnnamed1093() { |
var o = new core.List<api.ThreatEntry>(); |
o.add(buildThreatEntry()); |
o.add(buildThreatEntry()); |
return o; |
} |
-checkUnnamed1076(core.List<api.ThreatEntry> o) { |
+checkUnnamed1093(core.List<api.ThreatEntry> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkThreatEntry(o[0]); |
checkThreatEntry(o[1]); |
} |
-buildUnnamed1077() { |
+buildUnnamed1094() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1077(core.List<core.String> o) { |
+checkUnnamed1094(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')); |
} |
-buildUnnamed1078() { |
+buildUnnamed1095() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1078(core.List<core.String> o) { |
+checkUnnamed1095(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')); |
@@ -680,10 +680,10 @@ buildThreatInfo() { |
var o = new api.ThreatInfo(); |
buildCounterThreatInfo++; |
if (buildCounterThreatInfo < 3) { |
- o.platformTypes = buildUnnamed1075(); |
- o.threatEntries = buildUnnamed1076(); |
- o.threatEntryTypes = buildUnnamed1077(); |
- o.threatTypes = buildUnnamed1078(); |
+ o.platformTypes = buildUnnamed1092(); |
+ o.threatEntries = buildUnnamed1093(); |
+ o.threatEntryTypes = buildUnnamed1094(); |
+ o.threatTypes = buildUnnamed1095(); |
} |
buildCounterThreatInfo--; |
return o; |
@@ -692,10 +692,10 @@ buildThreatInfo() { |
checkThreatInfo(api.ThreatInfo o) { |
buildCounterThreatInfo++; |
if (buildCounterThreatInfo < 3) { |
- checkUnnamed1075(o.platformTypes); |
- checkUnnamed1076(o.threatEntries); |
- checkUnnamed1077(o.threatEntryTypes); |
- checkUnnamed1078(o.threatTypes); |
+ checkUnnamed1092(o.platformTypes); |
+ checkUnnamed1093(o.threatEntries); |
+ checkUnnamed1094(o.threatEntryTypes); |
+ checkUnnamed1095(o.threatTypes); |
} |
buildCounterThreatInfo--; |
} |
@@ -958,8 +958,8 @@ main() { |
var mock = new HttpServerMock(); |
api.EncodedFullHashesResourceApi res = new api.SafebrowsingApi(mock).encodedFullHashes; |
var arg_encodedRequest = "foo"; |
- var arg_clientVersion = "foo"; |
var arg_clientId = "foo"; |
+ var arg_clientVersion = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -989,8 +989,8 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); |
unittest.expect(queryMap["clientId"].first, unittest.equals(arg_clientId)); |
+ unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); |
var h = { |
@@ -999,7 +999,7 @@ main() { |
var resp = convert.JSON.encode(buildFindFullHashesResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_encodedRequest, clientVersion: arg_clientVersion, clientId: arg_clientId).then(unittest.expectAsync1(((api.FindFullHashesResponse response) { |
+ res.get(arg_encodedRequest, clientId: arg_clientId, clientVersion: arg_clientVersion).then(unittest.expectAsync1(((api.FindFullHashesResponse response) { |
checkFindFullHashesResponse(response); |
}))); |
}); |
@@ -1013,8 +1013,8 @@ main() { |
var mock = new HttpServerMock(); |
api.EncodedUpdatesResourceApi res = new api.SafebrowsingApi(mock).encodedUpdates; |
var arg_encodedRequest = "foo"; |
- var arg_clientVersion = "foo"; |
var arg_clientId = "foo"; |
+ var arg_clientVersion = "foo"; |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -1044,8 +1044,8 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); |
unittest.expect(queryMap["clientId"].first, unittest.equals(arg_clientId)); |
+ unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); |
var h = { |
@@ -1054,7 +1054,7 @@ main() { |
var resp = convert.JSON.encode(buildFetchThreatListUpdatesResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_encodedRequest, clientVersion: arg_clientVersion, clientId: arg_clientId).then(unittest.expectAsync1(((api.FetchThreatListUpdatesResponse response) { |
+ res.get(arg_encodedRequest, clientId: arg_clientId, clientVersion: arg_clientVersion).then(unittest.expectAsync1(((api.FetchThreatListUpdatesResponse response) { |
checkFetchThreatListUpdatesResponse(response); |
}))); |
}); |