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

Unified Diff: generated/googleapis/test/consumersurveys/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
« no previous file with comments | « generated/googleapis/test/compute/v1_test.dart ('k') | generated/googleapis/test/container/v1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/test/consumersurveys/v2_test.dart
diff --git a/generated/googleapis/test/consumersurveys/v2_test.dart b/generated/googleapis/test/consumersurveys/v2_test.dart
index 14b1fe857d58c952e83912d9f3b8659725e1c5c3..610d09f6d5d1ca562dc489b951e0cc19ec81f4e9 100644
--- a/generated/googleapis/test/consumersurveys/v2_test.dart
+++ b/generated/googleapis/test/consumersurveys/v2_test.dart
@@ -278,6 +278,7 @@ buildSurvey() {
o.description = "foo";
o.owners = buildUnnamed25();
o.questions = buildUnnamed26();
+ o.rejectionReason = buildSurveyRejection();
o.state = "foo";
o.surveyUrlId = "foo";
o.title = "foo";
@@ -296,6 +297,7 @@ checkSurvey(api.Survey o) {
unittest.expect(o.description, unittest.equals('foo'));
checkUnnamed25(o.owners);
checkUnnamed26(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'));
@@ -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();
@@ -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();
« no previous file with comments | « generated/googleapis/test/compute/v1_test.dart ('k') | generated/googleapis/test/container/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698