| 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 ac972e333df969de302ec71cd8f2c666eeb32543..f226af550afb1cf982e75e133027f9098501aacf 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--;
|
| }
|
|
|
| -buildUnnamed1013() {
|
| +buildUnnamed1088() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1013(core.List<core.String> o) {
|
| +checkUnnamed1088(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 = buildUnnamed1013();
|
| + o.supportedCompressions = buildUnnamed1088();
|
| }
|
| 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'));
|
| - checkUnnamed1013(o.supportedCompressions);
|
| + checkUnnamed1088(o.supportedCompressions);
|
| }
|
| buildCounterConstraints--;
|
| }
|
|
|
| -buildUnnamed1014() {
|
| +buildUnnamed1089() {
|
| var o = new core.List<api.ListUpdateRequest>();
|
| o.add(buildListUpdateRequest());
|
| o.add(buildListUpdateRequest());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1014(core.List<api.ListUpdateRequest> o) {
|
| +checkUnnamed1089(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 = buildUnnamed1014();
|
| + o.listUpdateRequests = buildUnnamed1089();
|
| }
|
| buildCounterFetchThreatListUpdatesRequest--;
|
| return o;
|
| @@ -158,19 +158,19 @@ checkFetchThreatListUpdatesRequest(api.FetchThreatListUpdatesRequest o) {
|
| buildCounterFetchThreatListUpdatesRequest++;
|
| if (buildCounterFetchThreatListUpdatesRequest < 3) {
|
| checkClientInfo(o.client);
|
| - checkUnnamed1014(o.listUpdateRequests);
|
| + checkUnnamed1089(o.listUpdateRequests);
|
| }
|
| buildCounterFetchThreatListUpdatesRequest--;
|
| }
|
|
|
| -buildUnnamed1015() {
|
| +buildUnnamed1090() {
|
| var o = new core.List<api.ListUpdateResponse>();
|
| o.add(buildListUpdateResponse());
|
| o.add(buildListUpdateResponse());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1015(core.List<api.ListUpdateResponse> o) {
|
| +checkUnnamed1090(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 = buildUnnamed1015();
|
| + o.listUpdateResponses = buildUnnamed1090();
|
| o.minimumWaitDuration = "foo";
|
| }
|
| buildCounterFetchThreatListUpdatesResponse--;
|
| @@ -191,20 +191,20 @@ buildFetchThreatListUpdatesResponse() {
|
| checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) {
|
| buildCounterFetchThreatListUpdatesResponse++;
|
| if (buildCounterFetchThreatListUpdatesResponse < 3) {
|
| - checkUnnamed1015(o.listUpdateResponses);
|
| + checkUnnamed1090(o.listUpdateResponses);
|
| unittest.expect(o.minimumWaitDuration, unittest.equals('foo'));
|
| }
|
| buildCounterFetchThreatListUpdatesResponse--;
|
| }
|
|
|
| -buildUnnamed1016() {
|
| +buildUnnamed1091() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1016(core.List<core.String> o) {
|
| +checkUnnamed1091(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 = buildUnnamed1016();
|
| + o.clientStates = buildUnnamed1091();
|
| o.threatInfo = buildThreatInfo();
|
| }
|
| buildCounterFindFullHashesRequest--;
|
| @@ -229,20 +229,20 @@ checkFindFullHashesRequest(api.FindFullHashesRequest o) {
|
| if (buildCounterFindFullHashesRequest < 3) {
|
| checkClientInfo(o.apiClient);
|
| checkClientInfo(o.client);
|
| - checkUnnamed1016(o.clientStates);
|
| + checkUnnamed1091(o.clientStates);
|
| checkThreatInfo(o.threatInfo);
|
| }
|
| buildCounterFindFullHashesRequest--;
|
| }
|
|
|
| -buildUnnamed1017() {
|
| +buildUnnamed1092() {
|
| var o = new core.List<api.ThreatMatch>();
|
| o.add(buildThreatMatch());
|
| o.add(buildThreatMatch());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1017(core.List<api.ThreatMatch> o) {
|
| +checkUnnamed1092(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 = buildUnnamed1017();
|
| + o.matches = buildUnnamed1092();
|
| o.minimumWaitDuration = "foo";
|
| o.negativeCacheDuration = "foo";
|
| }
|
| @@ -264,7 +264,7 @@ buildFindFullHashesResponse() {
|
| checkFindFullHashesResponse(api.FindFullHashesResponse o) {
|
| buildCounterFindFullHashesResponse++;
|
| if (buildCounterFindFullHashesResponse < 3) {
|
| - checkUnnamed1017(o.matches);
|
| + checkUnnamed1092(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--;
|
| }
|
|
|
| -buildUnnamed1018() {
|
| +buildUnnamed1093() {
|
| var o = new core.List<api.ThreatMatch>();
|
| o.add(buildThreatMatch());
|
| o.add(buildThreatMatch());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1018(core.List<api.ThreatMatch> o) {
|
| +checkUnnamed1093(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 = buildUnnamed1018();
|
| + o.matches = buildUnnamed1093();
|
| }
|
| buildCounterFindThreatMatchesResponse--;
|
| return o;
|
| @@ -319,19 +319,19 @@ buildFindThreatMatchesResponse() {
|
| checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) {
|
| buildCounterFindThreatMatchesResponse++;
|
| if (buildCounterFindThreatMatchesResponse < 3) {
|
| - checkUnnamed1018(o.matches);
|
| + checkUnnamed1093(o.matches);
|
| }
|
| buildCounterFindThreatMatchesResponse--;
|
| }
|
|
|
| -buildUnnamed1019() {
|
| +buildUnnamed1094() {
|
| var o = new core.List<api.ThreatListDescriptor>();
|
| o.add(buildThreatListDescriptor());
|
| o.add(buildThreatListDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1019(core.List<api.ThreatListDescriptor> o) {
|
| +checkUnnamed1094(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 = buildUnnamed1019();
|
| + o.threatLists = buildUnnamed1094();
|
| }
|
| buildCounterListThreatListsResponse--;
|
| return o;
|
| @@ -351,7 +351,7 @@ buildListThreatListsResponse() {
|
| checkListThreatListsResponse(api.ListThreatListsResponse o) {
|
| buildCounterListThreatListsResponse++;
|
| if (buildCounterListThreatListsResponse < 3) {
|
| - checkUnnamed1019(o.threatLists);
|
| + checkUnnamed1094(o.threatLists);
|
| }
|
| buildCounterListThreatListsResponse--;
|
| }
|
| @@ -383,27 +383,27 @@ checkListUpdateRequest(api.ListUpdateRequest o) {
|
| buildCounterListUpdateRequest--;
|
| }
|
|
|
| -buildUnnamed1020() {
|
| +buildUnnamed1095() {
|
| var o = new core.List<api.ThreatEntrySet>();
|
| o.add(buildThreatEntrySet());
|
| o.add(buildThreatEntrySet());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1020(core.List<api.ThreatEntrySet> o) {
|
| +checkUnnamed1095(core.List<api.ThreatEntrySet> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkThreatEntrySet(o[0]);
|
| checkThreatEntrySet(o[1]);
|
| }
|
|
|
| -buildUnnamed1021() {
|
| +buildUnnamed1096() {
|
| var o = new core.List<api.ThreatEntrySet>();
|
| o.add(buildThreatEntrySet());
|
| o.add(buildThreatEntrySet());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1021(core.List<api.ThreatEntrySet> o) {
|
| +checkUnnamed1096(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 = buildUnnamed1020();
|
| + o.additions = buildUnnamed1095();
|
| o.checksum = buildChecksum();
|
| o.newClientState = "foo";
|
| o.platformType = "foo";
|
| - o.removals = buildUnnamed1021();
|
| + o.removals = buildUnnamed1096();
|
| o.responseType = "foo";
|
| o.threatEntryType = "foo";
|
| o.threatType = "foo";
|
| @@ -430,11 +430,11 @@ buildListUpdateResponse() {
|
| checkListUpdateResponse(api.ListUpdateResponse o) {
|
| buildCounterListUpdateResponse++;
|
| if (buildCounterListUpdateResponse < 3) {
|
| - checkUnnamed1020(o.additions);
|
| + checkUnnamed1095(o.additions);
|
| checkChecksum(o.checksum);
|
| unittest.expect(o.newClientState, unittest.equals('foo'));
|
| unittest.expect(o.platformType, unittest.equals('foo'));
|
| - checkUnnamed1021(o.removals);
|
| + checkUnnamed1096(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--;
|
| }
|
|
|
| -buildUnnamed1022() {
|
| +buildUnnamed1097() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed1022(core.List<core.int> o) {
|
| +checkUnnamed1097(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 = buildUnnamed1022();
|
| + o.indices = buildUnnamed1097();
|
| }
|
| buildCounterRawIndices--;
|
| return o;
|
| @@ -511,7 +511,7 @@ buildRawIndices() {
|
| checkRawIndices(api.RawIndices o) {
|
| buildCounterRawIndices++;
|
| if (buildCounterRawIndices < 3) {
|
| - checkUnnamed1022(o.indices);
|
| + checkUnnamed1097(o.indices);
|
| }
|
| buildCounterRawIndices--;
|
| }
|
| @@ -564,14 +564,14 @@ checkThreatEntry(api.ThreatEntry o) {
|
| buildCounterThreatEntry--;
|
| }
|
|
|
| -buildUnnamed1023() {
|
| +buildUnnamed1098() {
|
| var o = new core.List<api.MetadataEntry>();
|
| o.add(buildMetadataEntry());
|
| o.add(buildMetadataEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1023(core.List<api.MetadataEntry> o) {
|
| +checkUnnamed1098(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 = buildUnnamed1023();
|
| + o.entries = buildUnnamed1098();
|
| }
|
| buildCounterThreatEntryMetadata--;
|
| return o;
|
| @@ -591,7 +591,7 @@ buildThreatEntryMetadata() {
|
| checkThreatEntryMetadata(api.ThreatEntryMetadata o) {
|
| buildCounterThreatEntryMetadata++;
|
| if (buildCounterThreatEntryMetadata < 3) {
|
| - checkUnnamed1023(o.entries);
|
| + checkUnnamed1098(o.entries);
|
| }
|
| buildCounterThreatEntryMetadata--;
|
| }
|
| @@ -623,53 +623,53 @@ checkThreatEntrySet(api.ThreatEntrySet o) {
|
| buildCounterThreatEntrySet--;
|
| }
|
|
|
| -buildUnnamed1024() {
|
| +buildUnnamed1099() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1024(core.List<core.String> o) {
|
| +checkUnnamed1099(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'));
|
| }
|
|
|
| -buildUnnamed1025() {
|
| +buildUnnamed1100() {
|
| var o = new core.List<api.ThreatEntry>();
|
| o.add(buildThreatEntry());
|
| o.add(buildThreatEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1025(core.List<api.ThreatEntry> o) {
|
| +checkUnnamed1100(core.List<api.ThreatEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkThreatEntry(o[0]);
|
| checkThreatEntry(o[1]);
|
| }
|
|
|
| -buildUnnamed1026() {
|
| +buildUnnamed1101() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1026(core.List<core.String> o) {
|
| +checkUnnamed1101(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'));
|
| }
|
|
|
| -buildUnnamed1027() {
|
| +buildUnnamed1102() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1027(core.List<core.String> o) {
|
| +checkUnnamed1102(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 = buildUnnamed1024();
|
| - o.threatEntries = buildUnnamed1025();
|
| - o.threatEntryTypes = buildUnnamed1026();
|
| - o.threatTypes = buildUnnamed1027();
|
| + o.platformTypes = buildUnnamed1099();
|
| + o.threatEntries = buildUnnamed1100();
|
| + o.threatEntryTypes = buildUnnamed1101();
|
| + o.threatTypes = buildUnnamed1102();
|
| }
|
| buildCounterThreatInfo--;
|
| return o;
|
| @@ -692,10 +692,10 @@ buildThreatInfo() {
|
| checkThreatInfo(api.ThreatInfo o) {
|
| buildCounterThreatInfo++;
|
| if (buildCounterThreatInfo < 3) {
|
| - checkUnnamed1024(o.platformTypes);
|
| - checkUnnamed1025(o.threatEntries);
|
| - checkUnnamed1026(o.threatEntryTypes);
|
| - checkUnnamed1027(o.threatTypes);
|
| + checkUnnamed1099(o.platformTypes);
|
| + checkUnnamed1100(o.threatEntries);
|
| + checkUnnamed1101(o.threatEntryTypes);
|
| + checkUnnamed1102(o.threatTypes);
|
| }
|
| buildCounterThreatInfo--;
|
| }
|
| @@ -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);
|
| })));
|
| });
|
|
|