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

Unified Diff: generated/googleapis/test/surveys/v2_test.dart

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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
Index: generated/googleapis/test/surveys/v2_test.dart
diff --git a/generated/googleapis/test/consumersurveys/v2_test.dart b/generated/googleapis/test/surveys/v2_test.dart
similarity index 90%
copy from generated/googleapis/test/consumersurveys/v2_test.dart
copy to generated/googleapis/test/surveys/v2_test.dart
index 14b1fe857d58c952e83912d9f3b8659725e1c5c3..3f1b29c7dc04ff02b898daa911c3a6e044396961 100644
--- a/generated/googleapis/test/consumersurveys/v2_test.dart
+++ b/generated/googleapis/test/surveys/v2_test.dart
@@ -1,4 +1,4 @@
-library googleapis.consumersurveys.v2.test;
+library googleapis.surveys.v2.test;
import "dart:core" as core;
import "dart:collection" as collection;
@@ -9,7 +9,7 @@ import 'package:http/http.dart' as http;
import 'package:http/testing.dart' as http_testing;
import 'package:unittest/unittest.dart' as unittest;
-import 'package:googleapis/consumersurveys/v2.dart' as api;
+import 'package:googleapis/surveys/v2.dart' as api;
class HttpServerMock extends http.BaseClient {
core.Function _callback;
@@ -51,14 +51,14 @@ http.StreamedResponse stringResponse(
return new http.StreamedResponse(stream, status, headers: headers);
}
-buildUnnamed21() {
+buildUnnamed2202() {
var o = new core.List<api.FieldMask>();
o.add(buildFieldMask());
o.add(buildFieldMask());
return o;
}
-checkUnnamed21(core.List<api.FieldMask> o) {
+checkUnnamed2202(core.List<api.FieldMask> o) {
unittest.expect(o, unittest.hasLength(2));
checkFieldMask(o[0]);
checkFieldMask(o[1]);
@@ -69,7 +69,7 @@ buildFieldMask() {
var o = new api.FieldMask();
buildCounterFieldMask++;
if (buildCounterFieldMask < 3) {
- o.fields = buildUnnamed21();
+ o.fields = buildUnnamed2202();
o.id = 42;
}
buildCounterFieldMask--;
@@ -79,20 +79,20 @@ buildFieldMask() {
checkFieldMask(api.FieldMask o) {
buildCounterFieldMask++;
if (buildCounterFieldMask < 3) {
- checkUnnamed21(o.fields);
+ checkUnnamed2202(o.fields);
unittest.expect(o.id, unittest.equals(42));
}
buildCounterFieldMask--;
}
-buildUnnamed22() {
+buildUnnamed2203() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed22(core.List<core.String> o) {
+checkUnnamed2203(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'));
@@ -108,7 +108,7 @@ buildMobileAppPanel() {
o.language = "foo";
o.mobileAppPanelId = "foo";
o.name = "foo";
- o.owners = buildUnnamed22();
+ o.owners = buildUnnamed2203();
}
buildCounterMobileAppPanel--;
return o;
@@ -122,19 +122,19 @@ checkMobileAppPanel(api.MobileAppPanel o) {
unittest.expect(o.language, unittest.equals('foo'));
unittest.expect(o.mobileAppPanelId, unittest.equals('foo'));
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed22(o.owners);
+ checkUnnamed2203(o.owners);
}
buildCounterMobileAppPanel--;
}
-buildUnnamed23() {
+buildUnnamed2204() {
var o = new core.List<api.MobileAppPanel>();
o.add(buildMobileAppPanel());
o.add(buildMobileAppPanel());
return o;
}
-checkUnnamed23(core.List<api.MobileAppPanel> o) {
+checkUnnamed2204(core.List<api.MobileAppPanel> o) {
unittest.expect(o, unittest.hasLength(2));
checkMobileAppPanel(o[0]);
checkMobileAppPanel(o[1]);
@@ -147,7 +147,7 @@ buildMobileAppPanelsListResponse() {
if (buildCounterMobileAppPanelsListResponse < 3) {
o.pageInfo = buildPageInfo();
o.requestId = "foo";
- o.resources = buildUnnamed23();
+ o.resources = buildUnnamed2204();
o.tokenPagination = buildTokenPagination();
}
buildCounterMobileAppPanelsListResponse--;
@@ -159,7 +159,7 @@ checkMobileAppPanelsListResponse(api.MobileAppPanelsListResponse o) {
if (buildCounterMobileAppPanelsListResponse < 3) {
checkPageInfo(o.pageInfo);
unittest.expect(o.requestId, unittest.equals('foo'));
- checkUnnamed23(o.resources);
+ checkUnnamed2204(o.resources);
checkTokenPagination(o.tokenPagination);
}
buildCounterMobileAppPanelsListResponse--;
@@ -207,14 +207,14 @@ checkResultsGetRequest(api.ResultsGetRequest o) {
buildCounterResultsGetRequest--;
}
-buildUnnamed24() {
+buildUnnamed2205() {
var o = new core.List<api.FieldMask>();
o.add(buildFieldMask());
o.add(buildFieldMask());
return o;
}
-checkUnnamed24(core.List<api.FieldMask> o) {
+checkUnnamed2205(core.List<api.FieldMask> o) {
unittest.expect(o, unittest.hasLength(2));
checkFieldMask(o[0]);
checkFieldMask(o[1]);
@@ -225,7 +225,7 @@ buildResultsMask() {
var o = new api.ResultsMask();
buildCounterResultsMask++;
if (buildCounterResultsMask < 3) {
- o.fields = buildUnnamed24();
+ o.fields = buildUnnamed2205();
o.projection = "foo";
}
buildCounterResultsMask--;
@@ -235,33 +235,33 @@ buildResultsMask() {
checkResultsMask(api.ResultsMask o) {
buildCounterResultsMask++;
if (buildCounterResultsMask < 3) {
- checkUnnamed24(o.fields);
+ checkUnnamed2205(o.fields);
unittest.expect(o.projection, unittest.equals('foo'));
}
buildCounterResultsMask--;
}
-buildUnnamed25() {
+buildUnnamed2206() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed25(core.List<core.String> o) {
+checkUnnamed2206(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'));
}
-buildUnnamed26() {
+buildUnnamed2207() {
var o = new core.List<api.SurveyQuestion>();
o.add(buildSurveyQuestion());
o.add(buildSurveyQuestion());
return o;
}
-checkUnnamed26(core.List<api.SurveyQuestion> o) {
+checkUnnamed2207(core.List<api.SurveyQuestion> o) {
unittest.expect(o, unittest.hasLength(2));
checkSurveyQuestion(o[0]);
checkSurveyQuestion(o[1]);
@@ -276,8 +276,9 @@ buildSurvey() {
o.cost = buildSurveyCost();
o.customerData = "foo";
o.description = "foo";
- o.owners = buildUnnamed25();
- o.questions = buildUnnamed26();
+ o.owners = buildUnnamed2206();
+ o.questions = buildUnnamed2207();
+ o.rejectionReason = buildSurveyRejection();
o.state = "foo";
o.surveyUrlId = "foo";
o.title = "foo";
@@ -294,8 +295,9 @@ checkSurvey(api.Survey o) {
checkSurveyCost(o.cost);
unittest.expect(o.customerData, unittest.equals('foo'));
unittest.expect(o.description, unittest.equals('foo'));
- checkUnnamed25(o.owners);
- checkUnnamed26(o.questions);
+ checkUnnamed2206(o.owners);
+ checkUnnamed2207(o.questions);
+ checkSurveyRejection(o.rejectionReason);
unittest.expect(o.state, unittest.equals('foo'));
unittest.expect(o.surveyUrlId, unittest.equals('foo'));
unittest.expect(o.title, unittest.equals('foo'));
@@ -304,27 +306,27 @@ checkSurvey(api.Survey o) {
buildCounterSurvey--;
}
-buildUnnamed27() {
+buildUnnamed2208() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed27(core.List<core.String> o) {
+checkUnnamed2208(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'));
}
-buildUnnamed28() {
+buildUnnamed2209() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed28(core.List<core.String> o) {
+checkUnnamed2209(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'));
@@ -335,11 +337,11 @@ buildSurveyAudience() {
var o = new api.SurveyAudience();
buildCounterSurveyAudience++;
if (buildCounterSurveyAudience < 3) {
- o.ages = buildUnnamed27();
+ o.ages = buildUnnamed2208();
o.country = "foo";
o.countrySubdivision = "foo";
o.gender = "foo";
- o.languages = buildUnnamed28();
+ o.languages = buildUnnamed2209();
o.mobileAppPanelId = "foo";
o.populationSource = "foo";
}
@@ -350,11 +352,11 @@ buildSurveyAudience() {
checkSurveyAudience(api.SurveyAudience o) {
buildCounterSurveyAudience++;
if (buildCounterSurveyAudience < 3) {
- checkUnnamed27(o.ages);
+ checkUnnamed2208(o.ages);
unittest.expect(o.country, unittest.equals('foo'));
unittest.expect(o.countrySubdivision, unittest.equals('foo'));
unittest.expect(o.gender, unittest.equals('foo'));
- checkUnnamed28(o.languages);
+ checkUnnamed2209(o.languages);
unittest.expect(o.mobileAppPanelId, unittest.equals('foo'));
unittest.expect(o.populationSource, unittest.equals('foo'));
}
@@ -386,53 +388,53 @@ checkSurveyCost(api.SurveyCost o) {
buildCounterSurveyCost--;
}
-buildUnnamed29() {
+buildUnnamed2210() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed29(core.List<core.String> o) {
+checkUnnamed2210(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'));
}
-buildUnnamed30() {
+buildUnnamed2211() {
var o = new core.List<api.SurveyQuestionImage>();
o.add(buildSurveyQuestionImage());
o.add(buildSurveyQuestionImage());
return o;
}
-checkUnnamed30(core.List<api.SurveyQuestionImage> o) {
+checkUnnamed2211(core.List<api.SurveyQuestionImage> o) {
unittest.expect(o, unittest.hasLength(2));
checkSurveyQuestionImage(o[0]);
checkSurveyQuestionImage(o[1]);
}
-buildUnnamed31() {
+buildUnnamed2212() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed31(core.List<core.String> o) {
+checkUnnamed2212(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'));
}
-buildUnnamed32() {
+buildUnnamed2213() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed32(core.List<core.String> o) {
+checkUnnamed2213(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'));
@@ -444,20 +446,20 @@ buildSurveyQuestion() {
buildCounterSurveyQuestion++;
if (buildCounterSurveyQuestion < 3) {
o.answerOrder = "foo";
- o.answers = buildUnnamed29();
+ o.answers = buildUnnamed2210();
o.hasOther = true;
o.highValueLabel = "foo";
- o.images = buildUnnamed30();
+ o.images = buildUnnamed2211();
o.lastAnswerPositionPinned = true;
o.lowValueLabel = "foo";
o.mustPickSuggestion = true;
o.numStars = "foo";
o.openTextPlaceholder = "foo";
- o.openTextSuggestions = buildUnnamed31();
+ o.openTextSuggestions = buildUnnamed2212();
o.question = "foo";
o.sentimentText = "foo";
o.singleLineResponse = true;
- o.thresholdAnswers = buildUnnamed32();
+ o.thresholdAnswers = buildUnnamed2213();
o.type = "foo";
o.unitOfMeasurementLabel = "foo";
o.videoId = "foo";
@@ -470,20 +472,20 @@ checkSurveyQuestion(api.SurveyQuestion o) {
buildCounterSurveyQuestion++;
if (buildCounterSurveyQuestion < 3) {
unittest.expect(o.answerOrder, unittest.equals('foo'));
- checkUnnamed29(o.answers);
+ checkUnnamed2210(o.answers);
unittest.expect(o.hasOther, unittest.isTrue);
unittest.expect(o.highValueLabel, unittest.equals('foo'));
- checkUnnamed30(o.images);
+ checkUnnamed2211(o.images);
unittest.expect(o.lastAnswerPositionPinned, unittest.isTrue);
unittest.expect(o.lowValueLabel, unittest.equals('foo'));
unittest.expect(o.mustPickSuggestion, unittest.isTrue);
unittest.expect(o.numStars, unittest.equals('foo'));
unittest.expect(o.openTextPlaceholder, unittest.equals('foo'));
- checkUnnamed31(o.openTextSuggestions);
+ checkUnnamed2212(o.openTextSuggestions);
unittest.expect(o.question, unittest.equals('foo'));
unittest.expect(o.sentimentText, unittest.equals('foo'));
unittest.expect(o.singleLineResponse, unittest.isTrue);
- checkUnnamed32(o.thresholdAnswers);
+ checkUnnamed2213(o.thresholdAnswers);
unittest.expect(o.type, unittest.equals('foo'));
unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo'));
unittest.expect(o.videoId, unittest.equals('foo'));
@@ -514,6 +516,27 @@ checkSurveyQuestionImage(api.SurveyQuestionImage o) {
buildCounterSurveyQuestionImage--;
}
+core.int buildCounterSurveyRejection = 0;
+buildSurveyRejection() {
+ var o = new api.SurveyRejection();
+ buildCounterSurveyRejection++;
+ if (buildCounterSurveyRejection < 3) {
+ o.explanation = "foo";
+ o.type = "foo";
+ }
+ buildCounterSurveyRejection--;
+ return o;
+}
+
+checkSurveyRejection(api.SurveyRejection o) {
+ buildCounterSurveyRejection++;
+ if (buildCounterSurveyRejection < 3) {
+ unittest.expect(o.explanation, unittest.equals('foo'));
+ unittest.expect(o.type, unittest.equals('foo'));
+ }
+ buildCounterSurveyRejection--;
+}
+
core.int buildCounterSurveyResults = 0;
buildSurveyResults() {
var o = new api.SurveyResults();
@@ -554,14 +577,14 @@ checkSurveysDeleteResponse(api.SurveysDeleteResponse o) {
buildCounterSurveysDeleteResponse--;
}
-buildUnnamed33() {
+buildUnnamed2214() {
var o = new core.List<api.Survey>();
o.add(buildSurvey());
o.add(buildSurvey());
return o;
}
-checkUnnamed33(core.List<api.Survey> o) {
+checkUnnamed2214(core.List<api.Survey> o) {
unittest.expect(o, unittest.hasLength(2));
checkSurvey(o[0]);
checkSurvey(o[1]);
@@ -574,7 +597,7 @@ buildSurveysListResponse() {
if (buildCounterSurveysListResponse < 3) {
o.pageInfo = buildPageInfo();
o.requestId = "foo";
- o.resources = buildUnnamed33();
+ o.resources = buildUnnamed2214();
o.tokenPagination = buildTokenPagination();
}
buildCounterSurveysListResponse--;
@@ -586,7 +609,7 @@ checkSurveysListResponse(api.SurveysListResponse o) {
if (buildCounterSurveysListResponse < 3) {
checkPageInfo(o.pageInfo);
unittest.expect(o.requestId, unittest.equals('foo'));
- checkUnnamed33(o.resources);
+ checkUnnamed2214(o.resources);
checkTokenPagination(o.tokenPagination);
}
buildCounterSurveysListResponse--;
@@ -775,6 +798,15 @@ main() {
});
+ unittest.group("obj-schema-SurveyRejection", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildSurveyRejection();
+ var od = new api.SurveyRejection.fromJson(o.toJson());
+ checkSurveyRejection(od);
+ });
+ });
+
+
unittest.group("obj-schema-SurveyResults", () {
unittest.test("to-json--from-json", () {
var o = buildSurveyResults();
@@ -842,7 +874,7 @@ main() {
unittest.test("method--get", () {
var mock = new HttpServerMock();
- api.MobileapppanelsResourceApi res = new api.ConsumersurveysApi(mock).mobileapppanels;
+ api.MobileapppanelsResourceApi res = new api.SurveysApi(mock).mobileapppanels;
var arg_panelId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -851,8 +883,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("consumersurveys/v2/"));
- pathOffset += 19;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/"));
+ pathOffset += 11;
unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("mobileAppPanels/"));
pathOffset += 16;
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
@@ -891,7 +923,7 @@ main() {
unittest.test("method--list", () {
var mock = new HttpServerMock();
- api.MobileapppanelsResourceApi res = new api.ConsumersurveysApi(mock).mobileapppanels;
+ api.MobileapppanelsResourceApi res = new api.SurveysApi(mock).mobileapppanels;
var arg_maxResults = 42;
var arg_startIndex = 42;
var arg_token = "foo";
@@ -902,8 +934,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("consumersurveys/v2/"));
- pathOffset += 19;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/"));
+ pathOffset += 11;
unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("mobileAppPanels"));
pathOffset += 15;
@@ -942,7 +974,7 @@ main() {
unittest.test("method--update", () {
var mock = new HttpServerMock();
- api.MobileapppanelsResourceApi res = new api.ConsumersurveysApi(mock).mobileapppanels;
+ api.MobileapppanelsResourceApi res = new api.SurveysApi(mock).mobileapppanels;
var arg_request = buildMobileAppPanel();
var arg_panelId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
@@ -955,8 +987,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("consumersurveys/v2/"));
- pathOffset += 19;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/"));
+ pathOffset += 11;
unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("mobileAppPanels/"));
pathOffset += 16;
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
@@ -1001,7 +1033,7 @@ main() {
// TODO: Implement tests for media download;
var mock = new HttpServerMock();
- api.ResultsResourceApi res = new api.ConsumersurveysApi(mock).results;
+ api.ResultsResourceApi res = new api.SurveysApi(mock).results;
var arg_request = buildResultsGetRequest();
var arg_surveyUrlId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
@@ -1014,8 +1046,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("consumersurveys/v2/"));
- pathOffset += 19;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/"));
+ pathOffset += 11;
unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/"));
pathOffset += 8;
index = path.indexOf("/results", pathOffset);
@@ -1062,7 +1094,7 @@ main() {
unittest.test("method--delete", () {
var mock = new HttpServerMock();
- api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys;
+ api.SurveysResourceApi res = new api.SurveysApi(mock).surveys;
var arg_surveyUrlId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -1071,8 +1103,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("consumersurveys/v2/"));
- pathOffset += 19;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/"));
+ pathOffset += 11;
unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/"));
pathOffset += 8;
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
@@ -1111,7 +1143,7 @@ main() {
unittest.test("method--get", () {
var mock = new HttpServerMock();
- api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys;
+ api.SurveysResourceApi res = new api.SurveysApi(mock).surveys;
var arg_surveyUrlId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -1120,8 +1152,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("consumersurveys/v2/"));
- pathOffset += 19;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/"));
+ pathOffset += 11;
unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/"));
pathOffset += 8;
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
@@ -1160,7 +1192,7 @@ main() {
unittest.test("method--insert", () {
var mock = new HttpServerMock();
- api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys;
+ api.SurveysResourceApi res = new api.SurveysApi(mock).surveys;
var arg_request = buildSurvey();
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var obj = new api.Survey.fromJson(json);
@@ -1172,8 +1204,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("consumersurveys/v2/"));
- pathOffset += 19;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/"));
+ pathOffset += 11;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("surveys"));
pathOffset += 7;
@@ -1209,7 +1241,7 @@ main() {
unittest.test("method--list", () {
var mock = new HttpServerMock();
- api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys;
+ api.SurveysResourceApi res = new api.SurveysApi(mock).surveys;
var arg_maxResults = 42;
var arg_startIndex = 42;
var arg_token = "foo";
@@ -1220,8 +1252,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("consumersurveys/v2/"));
- pathOffset += 19;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/"));
+ pathOffset += 11;
unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("surveys"));
pathOffset += 7;
@@ -1260,7 +1292,7 @@ main() {
unittest.test("method--start", () {
var mock = new HttpServerMock();
- api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys;
+ api.SurveysResourceApi res = new api.SurveysApi(mock).surveys;
var arg_request = buildSurveysStartRequest();
var arg_resourceId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
@@ -1273,8 +1305,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("consumersurveys/v2/"));
- pathOffset += 19;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/"));
+ pathOffset += 11;
unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/"));
pathOffset += 8;
index = path.indexOf("/start", pathOffset);
@@ -1317,7 +1349,7 @@ main() {
unittest.test("method--stop", () {
var mock = new HttpServerMock();
- api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys;
+ api.SurveysResourceApi res = new api.SurveysApi(mock).surveys;
var arg_resourceId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -1326,8 +1358,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("consumersurveys/v2/"));
- pathOffset += 19;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/"));
+ pathOffset += 11;
unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/"));
pathOffset += 8;
index = path.indexOf("/stop", pathOffset);
@@ -1370,7 +1402,7 @@ main() {
unittest.test("method--update", () {
var mock = new HttpServerMock();
- api.SurveysResourceApi res = new api.ConsumersurveysApi(mock).surveys;
+ api.SurveysResourceApi res = new api.SurveysApi(mock).surveys;
var arg_request = buildSurvey();
var arg_surveyUrlId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
@@ -1383,8 +1415,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("consumersurveys/v2/"));
- pathOffset += 19;
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("surveys/v2/"));
+ pathOffset += 11;
unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/"));
pathOffset += 8;
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
« no previous file with comments | « generated/googleapis/test/storagetransfer/v1_test.dart ('k') | generated/googleapis/test/tagmanager/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698