| Index: generated/googleapis/test/gmail/v1_test.dart
|
| diff --git a/generated/googleapis/test/gmail/v1_test.dart b/generated/googleapis/test/gmail/v1_test.dart
|
| index cab0c853059ab36d8f2191203ba646b1e0d034ca..27a57d196e8fc63d9ad2edc68ab2b6ccb202e766 100644
|
| --- a/generated/googleapis/test/gmail/v1_test.dart
|
| +++ b/generated/googleapis/test/gmail/v1_test.dart
|
| @@ -37,14 +37,14 @@ checkDraft(api.Draft o) {
|
| buildCounterDraft--;
|
| }
|
|
|
| -buildUnnamed163() {
|
| +buildUnnamed849() {
|
| var o = new core.List<api.Message>();
|
| o.add(buildMessage());
|
| o.add(buildMessage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed163(core.List<api.Message> o) {
|
| +checkUnnamed849(core.List<api.Message> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMessage(o[0]);
|
| checkMessage(o[1]);
|
| @@ -56,7 +56,7 @@ buildHistory() {
|
| buildCounterHistory++;
|
| if (buildCounterHistory < 3) {
|
| o.id = "foo";
|
| - o.messages = buildUnnamed163();
|
| + o.messages = buildUnnamed849();
|
| }
|
| buildCounterHistory--;
|
| return o;
|
| @@ -66,7 +66,7 @@ checkHistory(api.History o) {
|
| buildCounterHistory++;
|
| if (buildCounterHistory < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed163(o.messages);
|
| + checkUnnamed849(o.messages);
|
| }
|
| buildCounterHistory--;
|
| }
|
| @@ -106,14 +106,14 @@ checkLabel(api.Label o) {
|
| buildCounterLabel--;
|
| }
|
|
|
| -buildUnnamed164() {
|
| +buildUnnamed850() {
|
| var o = new core.List<api.Draft>();
|
| o.add(buildDraft());
|
| o.add(buildDraft());
|
| return o;
|
| }
|
|
|
| -checkUnnamed164(core.List<api.Draft> o) {
|
| +checkUnnamed850(core.List<api.Draft> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDraft(o[0]);
|
| checkDraft(o[1]);
|
| @@ -124,7 +124,7 @@ buildListDraftsResponse() {
|
| var o = new api.ListDraftsResponse();
|
| buildCounterListDraftsResponse++;
|
| if (buildCounterListDraftsResponse < 3) {
|
| - o.drafts = buildUnnamed164();
|
| + o.drafts = buildUnnamed850();
|
| o.nextPageToken = "foo";
|
| o.resultSizeEstimate = 42;
|
| }
|
| @@ -135,21 +135,21 @@ buildListDraftsResponse() {
|
| checkListDraftsResponse(api.ListDraftsResponse o) {
|
| buildCounterListDraftsResponse++;
|
| if (buildCounterListDraftsResponse < 3) {
|
| - checkUnnamed164(o.drafts);
|
| + checkUnnamed850(o.drafts);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.resultSizeEstimate, unittest.equals(42));
|
| }
|
| buildCounterListDraftsResponse--;
|
| }
|
|
|
| -buildUnnamed165() {
|
| +buildUnnamed851() {
|
| var o = new core.List<api.History>();
|
| o.add(buildHistory());
|
| o.add(buildHistory());
|
| return o;
|
| }
|
|
|
| -checkUnnamed165(core.List<api.History> o) {
|
| +checkUnnamed851(core.List<api.History> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkHistory(o[0]);
|
| checkHistory(o[1]);
|
| @@ -160,7 +160,7 @@ buildListHistoryResponse() {
|
| var o = new api.ListHistoryResponse();
|
| buildCounterListHistoryResponse++;
|
| if (buildCounterListHistoryResponse < 3) {
|
| - o.history = buildUnnamed165();
|
| + o.history = buildUnnamed851();
|
| o.historyId = "foo";
|
| o.nextPageToken = "foo";
|
| }
|
| @@ -171,21 +171,21 @@ buildListHistoryResponse() {
|
| checkListHistoryResponse(api.ListHistoryResponse o) {
|
| buildCounterListHistoryResponse++;
|
| if (buildCounterListHistoryResponse < 3) {
|
| - checkUnnamed165(o.history);
|
| + checkUnnamed851(o.history);
|
| unittest.expect(o.historyId, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListHistoryResponse--;
|
| }
|
|
|
| -buildUnnamed166() {
|
| +buildUnnamed852() {
|
| var o = new core.List<api.Label>();
|
| o.add(buildLabel());
|
| o.add(buildLabel());
|
| return o;
|
| }
|
|
|
| -checkUnnamed166(core.List<api.Label> o) {
|
| +checkUnnamed852(core.List<api.Label> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLabel(o[0]);
|
| checkLabel(o[1]);
|
| @@ -196,7 +196,7 @@ buildListLabelsResponse() {
|
| var o = new api.ListLabelsResponse();
|
| buildCounterListLabelsResponse++;
|
| if (buildCounterListLabelsResponse < 3) {
|
| - o.labels = buildUnnamed166();
|
| + o.labels = buildUnnamed852();
|
| }
|
| buildCounterListLabelsResponse--;
|
| return o;
|
| @@ -205,19 +205,19 @@ buildListLabelsResponse() {
|
| checkListLabelsResponse(api.ListLabelsResponse o) {
|
| buildCounterListLabelsResponse++;
|
| if (buildCounterListLabelsResponse < 3) {
|
| - checkUnnamed166(o.labels);
|
| + checkUnnamed852(o.labels);
|
| }
|
| buildCounterListLabelsResponse--;
|
| }
|
|
|
| -buildUnnamed167() {
|
| +buildUnnamed853() {
|
| var o = new core.List<api.Message>();
|
| o.add(buildMessage());
|
| o.add(buildMessage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed167(core.List<api.Message> o) {
|
| +checkUnnamed853(core.List<api.Message> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMessage(o[0]);
|
| checkMessage(o[1]);
|
| @@ -228,7 +228,7 @@ buildListMessagesResponse() {
|
| var o = new api.ListMessagesResponse();
|
| buildCounterListMessagesResponse++;
|
| if (buildCounterListMessagesResponse < 3) {
|
| - o.messages = buildUnnamed167();
|
| + o.messages = buildUnnamed853();
|
| o.nextPageToken = "foo";
|
| o.resultSizeEstimate = 42;
|
| }
|
| @@ -239,21 +239,21 @@ buildListMessagesResponse() {
|
| checkListMessagesResponse(api.ListMessagesResponse o) {
|
| buildCounterListMessagesResponse++;
|
| if (buildCounterListMessagesResponse < 3) {
|
| - checkUnnamed167(o.messages);
|
| + checkUnnamed853(o.messages);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.resultSizeEstimate, unittest.equals(42));
|
| }
|
| buildCounterListMessagesResponse--;
|
| }
|
|
|
| -buildUnnamed168() {
|
| +buildUnnamed854() {
|
| var o = new core.List<api.Thread>();
|
| o.add(buildThread());
|
| o.add(buildThread());
|
| return o;
|
| }
|
|
|
| -checkUnnamed168(core.List<api.Thread> o) {
|
| +checkUnnamed854(core.List<api.Thread> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkThread(o[0]);
|
| checkThread(o[1]);
|
| @@ -266,7 +266,7 @@ buildListThreadsResponse() {
|
| if (buildCounterListThreadsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| o.resultSizeEstimate = 42;
|
| - o.threads = buildUnnamed168();
|
| + o.threads = buildUnnamed854();
|
| }
|
| buildCounterListThreadsResponse--;
|
| return o;
|
| @@ -277,19 +277,19 @@ checkListThreadsResponse(api.ListThreadsResponse o) {
|
| if (buildCounterListThreadsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.resultSizeEstimate, unittest.equals(42));
|
| - checkUnnamed168(o.threads);
|
| + checkUnnamed854(o.threads);
|
| }
|
| buildCounterListThreadsResponse--;
|
| }
|
|
|
| -buildUnnamed169() {
|
| +buildUnnamed855() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed169(core.List<core.String> o) {
|
| +checkUnnamed855(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'));
|
| @@ -302,7 +302,7 @@ buildMessage() {
|
| if (buildCounterMessage < 3) {
|
| o.historyId = "foo";
|
| o.id = "foo";
|
| - o.labelIds = buildUnnamed169();
|
| + o.labelIds = buildUnnamed855();
|
| o.payload = buildMessagePart();
|
| o.raw = "foo";
|
| o.sizeEstimate = 42;
|
| @@ -318,7 +318,7 @@ checkMessage(api.Message o) {
|
| if (buildCounterMessage < 3) {
|
| unittest.expect(o.historyId, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed169(o.labelIds);
|
| + checkUnnamed855(o.labelIds);
|
| checkMessagePart(o.payload);
|
| unittest.expect(o.raw, unittest.equals('foo'));
|
| unittest.expect(o.sizeEstimate, unittest.equals(42));
|
| @@ -328,27 +328,27 @@ checkMessage(api.Message o) {
|
| buildCounterMessage--;
|
| }
|
|
|
| -buildUnnamed170() {
|
| +buildUnnamed856() {
|
| var o = new core.List<api.MessagePartHeader>();
|
| o.add(buildMessagePartHeader());
|
| o.add(buildMessagePartHeader());
|
| return o;
|
| }
|
|
|
| -checkUnnamed170(core.List<api.MessagePartHeader> o) {
|
| +checkUnnamed856(core.List<api.MessagePartHeader> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMessagePartHeader(o[0]);
|
| checkMessagePartHeader(o[1]);
|
| }
|
|
|
| -buildUnnamed171() {
|
| +buildUnnamed857() {
|
| var o = new core.List<api.MessagePart>();
|
| o.add(buildMessagePart());
|
| o.add(buildMessagePart());
|
| return o;
|
| }
|
|
|
| -checkUnnamed171(core.List<api.MessagePart> o) {
|
| +checkUnnamed857(core.List<api.MessagePart> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMessagePart(o[0]);
|
| checkMessagePart(o[1]);
|
| @@ -361,10 +361,10 @@ buildMessagePart() {
|
| if (buildCounterMessagePart < 3) {
|
| o.body = buildMessagePartBody();
|
| o.filename = "foo";
|
| - o.headers = buildUnnamed170();
|
| + o.headers = buildUnnamed856();
|
| o.mimeType = "foo";
|
| o.partId = "foo";
|
| - o.parts = buildUnnamed171();
|
| + o.parts = buildUnnamed857();
|
| }
|
| buildCounterMessagePart--;
|
| return o;
|
| @@ -375,10 +375,10 @@ checkMessagePart(api.MessagePart o) {
|
| if (buildCounterMessagePart < 3) {
|
| checkMessagePartBody(o.body);
|
| unittest.expect(o.filename, unittest.equals('foo'));
|
| - checkUnnamed170(o.headers);
|
| + checkUnnamed856(o.headers);
|
| unittest.expect(o.mimeType, unittest.equals('foo'));
|
| unittest.expect(o.partId, unittest.equals('foo'));
|
| - checkUnnamed171(o.parts);
|
| + checkUnnamed857(o.parts);
|
| }
|
| buildCounterMessagePart--;
|
| }
|
| @@ -427,27 +427,27 @@ checkMessagePartHeader(api.MessagePartHeader o) {
|
| buildCounterMessagePartHeader--;
|
| }
|
|
|
| -buildUnnamed172() {
|
| +buildUnnamed858() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed172(core.List<core.String> o) {
|
| +checkUnnamed858(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'));
|
| }
|
|
|
| -buildUnnamed173() {
|
| +buildUnnamed859() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed173(core.List<core.String> o) {
|
| +checkUnnamed859(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'));
|
| @@ -458,8 +458,8 @@ buildModifyMessageRequest() {
|
| var o = new api.ModifyMessageRequest();
|
| buildCounterModifyMessageRequest++;
|
| if (buildCounterModifyMessageRequest < 3) {
|
| - o.addLabelIds = buildUnnamed172();
|
| - o.removeLabelIds = buildUnnamed173();
|
| + o.addLabelIds = buildUnnamed858();
|
| + o.removeLabelIds = buildUnnamed859();
|
| }
|
| buildCounterModifyMessageRequest--;
|
| return o;
|
| @@ -468,33 +468,33 @@ buildModifyMessageRequest() {
|
| checkModifyMessageRequest(api.ModifyMessageRequest o) {
|
| buildCounterModifyMessageRequest++;
|
| if (buildCounterModifyMessageRequest < 3) {
|
| - checkUnnamed172(o.addLabelIds);
|
| - checkUnnamed173(o.removeLabelIds);
|
| + checkUnnamed858(o.addLabelIds);
|
| + checkUnnamed859(o.removeLabelIds);
|
| }
|
| buildCounterModifyMessageRequest--;
|
| }
|
|
|
| -buildUnnamed174() {
|
| +buildUnnamed860() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed174(core.List<core.String> o) {
|
| +checkUnnamed860(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'));
|
| }
|
|
|
| -buildUnnamed175() {
|
| +buildUnnamed861() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed175(core.List<core.String> o) {
|
| +checkUnnamed861(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'));
|
| @@ -505,8 +505,8 @@ buildModifyThreadRequest() {
|
| var o = new api.ModifyThreadRequest();
|
| buildCounterModifyThreadRequest++;
|
| if (buildCounterModifyThreadRequest < 3) {
|
| - o.addLabelIds = buildUnnamed174();
|
| - o.removeLabelIds = buildUnnamed175();
|
| + o.addLabelIds = buildUnnamed860();
|
| + o.removeLabelIds = buildUnnamed861();
|
| }
|
| buildCounterModifyThreadRequest--;
|
| return o;
|
| @@ -515,8 +515,8 @@ buildModifyThreadRequest() {
|
| checkModifyThreadRequest(api.ModifyThreadRequest o) {
|
| buildCounterModifyThreadRequest++;
|
| if (buildCounterModifyThreadRequest < 3) {
|
| - checkUnnamed174(o.addLabelIds);
|
| - checkUnnamed175(o.removeLabelIds);
|
| + checkUnnamed860(o.addLabelIds);
|
| + checkUnnamed861(o.removeLabelIds);
|
| }
|
| buildCounterModifyThreadRequest--;
|
| }
|
| @@ -546,14 +546,14 @@ checkProfile(api.Profile o) {
|
| buildCounterProfile--;
|
| }
|
|
|
| -buildUnnamed176() {
|
| +buildUnnamed862() {
|
| var o = new core.List<api.Message>();
|
| o.add(buildMessage());
|
| o.add(buildMessage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed176(core.List<api.Message> o) {
|
| +checkUnnamed862(core.List<api.Message> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMessage(o[0]);
|
| checkMessage(o[1]);
|
| @@ -566,7 +566,7 @@ buildThread() {
|
| if (buildCounterThread < 3) {
|
| o.historyId = "foo";
|
| o.id = "foo";
|
| - o.messages = buildUnnamed176();
|
| + o.messages = buildUnnamed862();
|
| o.snippet = "foo";
|
| }
|
| buildCounterThread--;
|
| @@ -578,46 +578,59 @@ checkThread(api.Thread o) {
|
| if (buildCounterThread < 3) {
|
| unittest.expect(o.historyId, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed176(o.messages);
|
| + checkUnnamed862(o.messages);
|
| unittest.expect(o.snippet, unittest.equals('foo'));
|
| }
|
| buildCounterThread--;
|
| }
|
|
|
| -buildUnnamed177() {
|
| +buildUnnamed863() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed177(core.List<core.String> o) {
|
| +checkUnnamed863(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'));
|
| }
|
|
|
| -buildUnnamed178() {
|
| +buildUnnamed864() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed178(core.List<core.String> o) {
|
| +checkUnnamed864(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'));
|
| }
|
|
|
| -buildUnnamed179() {
|
| +buildUnnamed865() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed179(core.List<core.String> o) {
|
| +checkUnnamed865(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'));
|
| +}
|
| +
|
| +buildUnnamed866() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed866(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'));
|
| @@ -1469,7 +1482,7 @@ main() {
|
| var arg_userId = "foo";
|
| var arg_id = "foo";
|
| var arg_format = "foo";
|
| - var arg_metadataHeaders = buildUnnamed177();
|
| + var arg_metadataHeaders = buildUnnamed863();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1615,7 +1628,7 @@ main() {
|
| api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages;
|
| var arg_userId = "foo";
|
| var arg_includeSpamTrash = true;
|
| - var arg_labelIds = buildUnnamed178();
|
| + var arg_labelIds = buildUnnamed864();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_q = "foo";
|
| @@ -1941,6 +1954,8 @@ main() {
|
| api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads;
|
| var arg_userId = "foo";
|
| var arg_id = "foo";
|
| + var arg_format = "foo";
|
| + var arg_metadataHeaders = buildUnnamed865();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1965,6 +1980,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["format"].first, unittest.equals(arg_format));
|
| + unittest.expect(queryMap["metadataHeaders"], unittest.equals(arg_metadataHeaders));
|
|
|
|
|
| var h = {
|
| @@ -1973,7 +1990,7 @@ main() {
|
| var resp = convert.JSON.encode(buildThread());
|
| return new async.Future.value(common_test.stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_userId, arg_id).then(unittest.expectAsync(((api.Thread response) {
|
| + res.get(arg_userId, arg_id, format: arg_format, metadataHeaders: arg_metadataHeaders).then(unittest.expectAsync(((api.Thread response) {
|
| checkThread(response);
|
| })));
|
| });
|
| @@ -1984,7 +2001,7 @@ main() {
|
| api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads;
|
| var arg_userId = "foo";
|
| var arg_includeSpamTrash = true;
|
| - var arg_labelIds = buildUnnamed179();
|
| + var arg_labelIds = buildUnnamed866();
|
| var arg_maxResults = 42;
|
| var arg_pageToken = "foo";
|
| var arg_q = "foo";
|
|
|