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

Unified Diff: generated/googleapis/test/admin/directory_v1_test.dart

Issue 798373003: Api roll 8: 2014-12-15 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years 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/admin/directory_v1_test.dart
diff --git a/generated/googleapis/test/admin/directory_v1_test.dart b/generated/googleapis/test/admin/directory_v1_test.dart
index 57dafbb077a44762e8d73d900423b6144ec181da..de4d4d95c592539be79a39b17c1ba3ba167dd0d9 100644
--- a/generated/googleapis/test/admin/directory_v1_test.dart
+++ b/generated/googleapis/test/admin/directory_v1_test.dart
@@ -43,14 +43,14 @@ checkAlias(api.Alias o) {
buildCounterAlias--;
}
-buildUnnamed90() {
+buildUnnamed491() {
var o = new core.List<api.Alias>();
o.add(buildAlias());
o.add(buildAlias());
return o;
}
-checkUnnamed90(core.List<api.Alias> o) {
+checkUnnamed491(core.List<api.Alias> o) {
unittest.expect(o, unittest.hasLength(2));
checkAlias(o[0]);
checkAlias(o[1]);
@@ -61,7 +61,7 @@ buildAliases() {
var o = new api.Aliases();
buildCounterAliases++;
if (buildCounterAliases < 3) {
- o.aliases = buildUnnamed90();
+ o.aliases = buildUnnamed491();
o.etag = "foo";
o.kind = "foo";
}
@@ -72,7 +72,7 @@ buildAliases() {
checkAliases(api.Aliases o) {
buildCounterAliases++;
if (buildCounterAliases < 3) {
- checkUnnamed90(o.aliases);
+ checkUnnamed491(o.aliases);
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
}
@@ -110,14 +110,14 @@ checkAsp(api.Asp o) {
buildCounterAsp--;
}
-buildUnnamed91() {
+buildUnnamed492() {
var o = new core.List<api.Asp>();
o.add(buildAsp());
o.add(buildAsp());
return o;
}
-checkUnnamed91(core.List<api.Asp> o) {
+checkUnnamed492(core.List<api.Asp> o) {
unittest.expect(o, unittest.hasLength(2));
checkAsp(o[0]);
checkAsp(o[1]);
@@ -129,7 +129,7 @@ buildAsps() {
buildCounterAsps++;
if (buildCounterAsps < 3) {
o.etag = "foo";
- o.items = buildUnnamed91();
+ o.items = buildUnnamed492();
o.kind = "foo";
}
buildCounterAsps--;
@@ -140,20 +140,20 @@ checkAsps(api.Asps o) {
buildCounterAsps++;
if (buildCounterAsps < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed91(o.items);
+ checkUnnamed492(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
}
buildCounterAsps--;
}
-buildUnnamed92() {
+buildUnnamed493() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed92(core.Map<core.String, core.String> o) {
+checkUnnamed493(core.Map<core.String, core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o["x"], unittest.equals('foo'));
unittest.expect(o["y"], unittest.equals('foo'));
@@ -168,7 +168,7 @@ buildChannel() {
o.expiration = "foo";
o.id = "foo";
o.kind = "foo";
- o.params = buildUnnamed92();
+ o.params = buildUnnamed493();
o.payload = true;
o.resourceId = "foo";
o.resourceUri = "foo";
@@ -186,7 +186,7 @@ checkChannel(api.Channel o) {
unittest.expect(o.expiration, unittest.equals('foo'));
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
- checkUnnamed92(o.params);
+ checkUnnamed493(o.params);
unittest.expect(o.payload, unittest.isTrue);
unittest.expect(o.resourceId, unittest.equals('foo'));
unittest.expect(o.resourceUri, unittest.equals('foo'));
@@ -217,14 +217,14 @@ checkChromeOsDeviceActiveTimeRanges(api.ChromeOsDeviceActiveTimeRanges o) {
buildCounterChromeOsDeviceActiveTimeRanges--;
}
-buildUnnamed93() {
+buildUnnamed494() {
var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>();
o.add(buildChromeOsDeviceActiveTimeRanges());
o.add(buildChromeOsDeviceActiveTimeRanges());
return o;
}
-checkUnnamed93(core.List<api.ChromeOsDeviceActiveTimeRanges> o) {
+checkUnnamed494(core.List<api.ChromeOsDeviceActiveTimeRanges> o) {
unittest.expect(o, unittest.hasLength(2));
checkChromeOsDeviceActiveTimeRanges(o[0]);
checkChromeOsDeviceActiveTimeRanges(o[1]);
@@ -251,14 +251,14 @@ checkChromeOsDeviceRecentUsers(api.ChromeOsDeviceRecentUsers o) {
buildCounterChromeOsDeviceRecentUsers--;
}
-buildUnnamed94() {
+buildUnnamed495() {
var o = new core.List<api.ChromeOsDeviceRecentUsers>();
o.add(buildChromeOsDeviceRecentUsers());
o.add(buildChromeOsDeviceRecentUsers());
return o;
}
-checkUnnamed94(core.List<api.ChromeOsDeviceRecentUsers> o) {
+checkUnnamed495(core.List<api.ChromeOsDeviceRecentUsers> o) {
unittest.expect(o, unittest.hasLength(2));
checkChromeOsDeviceRecentUsers(o[0]);
checkChromeOsDeviceRecentUsers(o[1]);
@@ -269,7 +269,7 @@ buildChromeOsDevice() {
var o = new api.ChromeOsDevice();
buildCounterChromeOsDevice++;
if (buildCounterChromeOsDevice < 3) {
- o.activeTimeRanges = buildUnnamed93();
+ o.activeTimeRanges = buildUnnamed494();
o.annotatedLocation = "foo";
o.annotatedUser = "foo";
o.bootMode = "foo";
@@ -288,7 +288,7 @@ buildChromeOsDevice() {
o.orgUnitPath = "foo";
o.osVersion = "foo";
o.platformVersion = "foo";
- o.recentUsers = buildUnnamed94();
+ o.recentUsers = buildUnnamed495();
o.serialNumber = "foo";
o.status = "foo";
o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02");
@@ -301,7 +301,7 @@ buildChromeOsDevice() {
checkChromeOsDevice(api.ChromeOsDevice o) {
buildCounterChromeOsDevice++;
if (buildCounterChromeOsDevice < 3) {
- checkUnnamed93(o.activeTimeRanges);
+ checkUnnamed494(o.activeTimeRanges);
unittest.expect(o.annotatedLocation, unittest.equals('foo'));
unittest.expect(o.annotatedUser, unittest.equals('foo'));
unittest.expect(o.bootMode, unittest.equals('foo'));
@@ -320,7 +320,7 @@ checkChromeOsDevice(api.ChromeOsDevice o) {
unittest.expect(o.orgUnitPath, unittest.equals('foo'));
unittest.expect(o.osVersion, unittest.equals('foo'));
unittest.expect(o.platformVersion, unittest.equals('foo'));
- checkUnnamed94(o.recentUsers);
+ checkUnnamed495(o.recentUsers);
unittest.expect(o.serialNumber, unittest.equals('foo'));
unittest.expect(o.status, unittest.equals('foo'));
unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
@@ -329,14 +329,14 @@ checkChromeOsDevice(api.ChromeOsDevice o) {
buildCounterChromeOsDevice--;
}
-buildUnnamed95() {
+buildUnnamed496() {
var o = new core.List<api.ChromeOsDevice>();
o.add(buildChromeOsDevice());
o.add(buildChromeOsDevice());
return o;
}
-checkUnnamed95(core.List<api.ChromeOsDevice> o) {
+checkUnnamed496(core.List<api.ChromeOsDevice> o) {
unittest.expect(o, unittest.hasLength(2));
checkChromeOsDevice(o[0]);
checkChromeOsDevice(o[1]);
@@ -347,7 +347,7 @@ buildChromeOsDevices() {
var o = new api.ChromeOsDevices();
buildCounterChromeOsDevices++;
if (buildCounterChromeOsDevices < 3) {
- o.chromeosdevices = buildUnnamed95();
+ o.chromeosdevices = buildUnnamed496();
o.etag = "foo";
o.kind = "foo";
o.nextPageToken = "foo";
@@ -359,7 +359,7 @@ buildChromeOsDevices() {
checkChromeOsDevices(api.ChromeOsDevices o) {
buildCounterChromeOsDevices++;
if (buildCounterChromeOsDevices < 3) {
- checkUnnamed95(o.chromeosdevices);
+ checkUnnamed496(o.chromeosdevices);
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
@@ -367,27 +367,27 @@ checkChromeOsDevices(api.ChromeOsDevices o) {
buildCounterChromeOsDevices--;
}
-buildUnnamed96() {
+buildUnnamed497() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed96(core.List<core.String> o) {
+checkUnnamed497(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'));
}
-buildUnnamed97() {
+buildUnnamed498() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed97(core.List<core.String> o) {
+checkUnnamed498(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'));
@@ -399,7 +399,7 @@ buildGroup() {
buildCounterGroup++;
if (buildCounterGroup < 3) {
o.adminCreated = true;
- o.aliases = buildUnnamed96();
+ o.aliases = buildUnnamed497();
o.description = "foo";
o.directMembersCount = "foo";
o.email = "foo";
@@ -407,7 +407,7 @@ buildGroup() {
o.id = "foo";
o.kind = "foo";
o.name = "foo";
- o.nonEditableAliases = buildUnnamed97();
+ o.nonEditableAliases = buildUnnamed498();
}
buildCounterGroup--;
return o;
@@ -417,7 +417,7 @@ checkGroup(api.Group o) {
buildCounterGroup++;
if (buildCounterGroup < 3) {
unittest.expect(o.adminCreated, unittest.isTrue);
- checkUnnamed96(o.aliases);
+ checkUnnamed497(o.aliases);
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.directMembersCount, unittest.equals('foo'));
unittest.expect(o.email, unittest.equals('foo'));
@@ -425,19 +425,19 @@ checkGroup(api.Group o) {
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed97(o.nonEditableAliases);
+ checkUnnamed498(o.nonEditableAliases);
}
buildCounterGroup--;
}
-buildUnnamed98() {
+buildUnnamed499() {
var o = new core.List<api.Group>();
o.add(buildGroup());
o.add(buildGroup());
return o;
}
-checkUnnamed98(core.List<api.Group> o) {
+checkUnnamed499(core.List<api.Group> o) {
unittest.expect(o, unittest.hasLength(2));
checkGroup(o[0]);
checkGroup(o[1]);
@@ -449,7 +449,7 @@ buildGroups() {
buildCounterGroups++;
if (buildCounterGroups < 3) {
o.etag = "foo";
- o.groups = buildUnnamed98();
+ o.groups = buildUnnamed499();
o.kind = "foo";
o.nextPageToken = "foo";
}
@@ -461,7 +461,7 @@ checkGroups(api.Groups o) {
buildCounterGroups++;
if (buildCounterGroups < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed98(o.groups);
+ checkUnnamed499(o.groups);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
@@ -497,14 +497,14 @@ checkMember(api.Member o) {
buildCounterMember--;
}
-buildUnnamed99() {
+buildUnnamed500() {
var o = new core.List<api.Member>();
o.add(buildMember());
o.add(buildMember());
return o;
}
-checkUnnamed99(core.List<api.Member> o) {
+checkUnnamed500(core.List<api.Member> o) {
unittest.expect(o, unittest.hasLength(2));
checkMember(o[0]);
checkMember(o[1]);
@@ -517,7 +517,7 @@ buildMembers() {
if (buildCounterMembers < 3) {
o.etag = "foo";
o.kind = "foo";
- o.members = buildUnnamed99();
+ o.members = buildUnnamed500();
o.nextPageToken = "foo";
}
buildCounterMembers--;
@@ -529,20 +529,20 @@ checkMembers(api.Members o) {
if (buildCounterMembers < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
- checkUnnamed99(o.members);
+ checkUnnamed500(o.members);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterMembers--;
}
-buildUnnamed100() {
+buildUnnamed501() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed100(core.List<core.String> o) {
+checkUnnamed501(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'));
@@ -555,7 +555,7 @@ buildMobileDeviceApplications() {
if (buildCounterMobileDeviceApplications < 3) {
o.displayName = "foo";
o.packageName = "foo";
- o.permission = buildUnnamed100();
+ o.permission = buildUnnamed501();
o.versionCode = 42;
o.versionName = "foo";
}
@@ -568,47 +568,47 @@ checkMobileDeviceApplications(api.MobileDeviceApplications o) {
if (buildCounterMobileDeviceApplications < 3) {
unittest.expect(o.displayName, unittest.equals('foo'));
unittest.expect(o.packageName, unittest.equals('foo'));
- checkUnnamed100(o.permission);
+ checkUnnamed501(o.permission);
unittest.expect(o.versionCode, unittest.equals(42));
unittest.expect(o.versionName, unittest.equals('foo'));
}
buildCounterMobileDeviceApplications--;
}
-buildUnnamed101() {
+buildUnnamed502() {
var o = new core.List<api.MobileDeviceApplications>();
o.add(buildMobileDeviceApplications());
o.add(buildMobileDeviceApplications());
return o;
}
-checkUnnamed101(core.List<api.MobileDeviceApplications> o) {
+checkUnnamed502(core.List<api.MobileDeviceApplications> o) {
unittest.expect(o, unittest.hasLength(2));
checkMobileDeviceApplications(o[0]);
checkMobileDeviceApplications(o[1]);
}
-buildUnnamed102() {
+buildUnnamed503() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed102(core.List<core.String> o) {
+checkUnnamed503(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'));
}
-buildUnnamed103() {
+buildUnnamed504() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed103(core.List<core.String> o) {
+checkUnnamed504(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'));
@@ -619,13 +619,13 @@ buildMobileDevice() {
var o = new api.MobileDevice();
buildCounterMobileDevice++;
if (buildCounterMobileDevice < 3) {
- o.applications = buildUnnamed101();
+ o.applications = buildUnnamed502();
o.basebandVersion = "foo";
o.buildNumber = "foo";
o.defaultLanguage = "foo";
o.deviceCompromisedStatus = "foo";
o.deviceId = "foo";
- o.email = buildUnnamed102();
+ o.email = buildUnnamed503();
o.etag = "foo";
o.firstSync = core.DateTime.parse("2002-02-27T14:01:02");
o.hardwareId = "foo";
@@ -636,7 +636,7 @@ buildMobileDevice() {
o.managedAccountIsOnOwnerProfile = true;
o.meid = "foo";
o.model = "foo";
- o.name = buildUnnamed103();
+ o.name = buildUnnamed504();
o.networkOperator = "foo";
o.os = "foo";
o.resourceId = "foo";
@@ -653,13 +653,13 @@ buildMobileDevice() {
checkMobileDevice(api.MobileDevice o) {
buildCounterMobileDevice++;
if (buildCounterMobileDevice < 3) {
- checkUnnamed101(o.applications);
+ checkUnnamed502(o.applications);
unittest.expect(o.basebandVersion, unittest.equals('foo'));
unittest.expect(o.buildNumber, unittest.equals('foo'));
unittest.expect(o.defaultLanguage, unittest.equals('foo'));
unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo'));
unittest.expect(o.deviceId, unittest.equals('foo'));
- checkUnnamed102(o.email);
+ checkUnnamed503(o.email);
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
unittest.expect(o.hardwareId, unittest.equals('foo'));
@@ -670,7 +670,7 @@ checkMobileDevice(api.MobileDevice o) {
unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue);
unittest.expect(o.meid, unittest.equals('foo'));
unittest.expect(o.model, unittest.equals('foo'));
- checkUnnamed103(o.name);
+ checkUnnamed504(o.name);
unittest.expect(o.networkOperator, unittest.equals('foo'));
unittest.expect(o.os, unittest.equals('foo'));
unittest.expect(o.resourceId, unittest.equals('foo'));
@@ -702,14 +702,14 @@ checkMobileDeviceAction(api.MobileDeviceAction o) {
buildCounterMobileDeviceAction--;
}
-buildUnnamed104() {
+buildUnnamed505() {
var o = new core.List<api.MobileDevice>();
o.add(buildMobileDevice());
o.add(buildMobileDevice());
return o;
}
-checkUnnamed104(core.List<api.MobileDevice> o) {
+checkUnnamed505(core.List<api.MobileDevice> o) {
unittest.expect(o, unittest.hasLength(2));
checkMobileDevice(o[0]);
checkMobileDevice(o[1]);
@@ -722,7 +722,7 @@ buildMobileDevices() {
if (buildCounterMobileDevices < 3) {
o.etag = "foo";
o.kind = "foo";
- o.mobiledevices = buildUnnamed104();
+ o.mobiledevices = buildUnnamed505();
o.nextPageToken = "foo";
}
buildCounterMobileDevices--;
@@ -734,7 +734,7 @@ checkMobileDevices(api.MobileDevices o) {
if (buildCounterMobileDevices < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
- checkUnnamed104(o.mobiledevices);
+ checkUnnamed505(o.mobiledevices);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterMobileDevices--;
@@ -773,14 +773,14 @@ checkNotification(api.Notification o) {
buildCounterNotification--;
}
-buildUnnamed105() {
+buildUnnamed506() {
var o = new core.List<api.Notification>();
o.add(buildNotification());
o.add(buildNotification());
return o;
}
-checkUnnamed105(core.List<api.Notification> o) {
+checkUnnamed506(core.List<api.Notification> o) {
unittest.expect(o, unittest.hasLength(2));
checkNotification(o[0]);
checkNotification(o[1]);
@@ -792,7 +792,7 @@ buildNotifications() {
buildCounterNotifications++;
if (buildCounterNotifications < 3) {
o.etag = "foo";
- o.items = buildUnnamed105();
+ o.items = buildUnnamed506();
o.kind = "foo";
o.nextPageToken = "foo";
o.unreadNotificationsCount = 42;
@@ -805,7 +805,7 @@ checkNotifications(api.Notifications o) {
buildCounterNotifications++;
if (buildCounterNotifications < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed105(o.items);
+ checkUnnamed506(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.unreadNotificationsCount, unittest.equals(42));
@@ -844,14 +844,14 @@ checkOrgUnit(api.OrgUnit o) {
buildCounterOrgUnit--;
}
-buildUnnamed106() {
+buildUnnamed507() {
var o = new core.List<api.OrgUnit>();
o.add(buildOrgUnit());
o.add(buildOrgUnit());
return o;
}
-checkUnnamed106(core.List<api.OrgUnit> o) {
+checkUnnamed507(core.List<api.OrgUnit> o) {
unittest.expect(o, unittest.hasLength(2));
checkOrgUnit(o[0]);
checkOrgUnit(o[1]);
@@ -864,7 +864,7 @@ buildOrgUnits() {
if (buildCounterOrgUnits < 3) {
o.etag = "foo";
o.kind = "foo";
- o.organizationUnits = buildUnnamed106();
+ o.organizationUnits = buildUnnamed507();
}
buildCounterOrgUnits--;
return o;
@@ -875,19 +875,19 @@ checkOrgUnits(api.OrgUnits o) {
if (buildCounterOrgUnits < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
- checkUnnamed106(o.organizationUnits);
+ checkUnnamed507(o.organizationUnits);
}
buildCounterOrgUnits--;
}
-buildUnnamed107() {
+buildUnnamed508() {
var o = new core.List<api.SchemaFieldSpec>();
o.add(buildSchemaFieldSpec());
o.add(buildSchemaFieldSpec());
return o;
}
-checkUnnamed107(core.List<api.SchemaFieldSpec> o) {
+checkUnnamed508(core.List<api.SchemaFieldSpec> o) {
unittest.expect(o, unittest.hasLength(2));
checkSchemaFieldSpec(o[0]);
checkSchemaFieldSpec(o[1]);
@@ -899,7 +899,7 @@ buildSchema() {
buildCounterSchema++;
if (buildCounterSchema < 3) {
o.etag = "foo";
- o.fields = buildUnnamed107();
+ o.fields = buildUnnamed508();
o.kind = "foo";
o.schemaId = "foo";
o.schemaName = "foo";
@@ -912,7 +912,7 @@ checkSchema(api.Schema o) {
buildCounterSchema++;
if (buildCounterSchema < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed107(o.fields);
+ checkUnnamed508(o.fields);
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.schemaId, unittest.equals('foo'));
unittest.expect(o.schemaName, unittest.equals('foo'));
@@ -976,14 +976,14 @@ checkSchemaFieldSpec(api.SchemaFieldSpec o) {
buildCounterSchemaFieldSpec--;
}
-buildUnnamed108() {
+buildUnnamed509() {
var o = new core.List<api.Schema>();
o.add(buildSchema());
o.add(buildSchema());
return o;
}
-checkUnnamed108(core.List<api.Schema> o) {
+checkUnnamed509(core.List<api.Schema> o) {
unittest.expect(o, unittest.hasLength(2));
checkSchema(o[0]);
checkSchema(o[1]);
@@ -996,7 +996,7 @@ buildSchemas() {
if (buildCounterSchemas < 3) {
o.etag = "foo";
o.kind = "foo";
- o.schemas = buildUnnamed108();
+ o.schemas = buildUnnamed509();
}
buildCounterSchemas--;
return o;
@@ -1007,19 +1007,19 @@ checkSchemas(api.Schemas o) {
if (buildCounterSchemas < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
- checkUnnamed108(o.schemas);
+ checkUnnamed509(o.schemas);
}
buildCounterSchemas--;
}
-buildUnnamed109() {
+buildUnnamed510() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed109(core.List<core.String> o) {
+checkUnnamed510(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'));
@@ -1036,7 +1036,7 @@ buildToken() {
o.etag = "foo";
o.kind = "foo";
o.nativeApp = true;
- o.scopes = buildUnnamed109();
+ o.scopes = buildUnnamed510();
o.userKey = "foo";
}
buildCounterToken--;
@@ -1052,20 +1052,20 @@ checkToken(api.Token o) {
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nativeApp, unittest.isTrue);
- checkUnnamed109(o.scopes);
+ checkUnnamed510(o.scopes);
unittest.expect(o.userKey, unittest.equals('foo'));
}
buildCounterToken--;
}
-buildUnnamed110() {
+buildUnnamed511() {
var o = new core.List<api.Token>();
o.add(buildToken());
o.add(buildToken());
return o;
}
-checkUnnamed110(core.List<api.Token> o) {
+checkUnnamed511(core.List<api.Token> o) {
unittest.expect(o, unittest.hasLength(2));
checkToken(o[0]);
checkToken(o[1]);
@@ -1077,7 +1077,7 @@ buildTokens() {
buildCounterTokens++;
if (buildCounterTokens < 3) {
o.etag = "foo";
- o.items = buildUnnamed110();
+ o.items = buildUnnamed511();
o.kind = "foo";
}
buildCounterTokens--;
@@ -1088,46 +1088,46 @@ checkTokens(api.Tokens o) {
buildCounterTokens++;
if (buildCounterTokens < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed110(o.items);
+ checkUnnamed511(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
}
buildCounterTokens--;
}
-buildUnnamed111() {
+buildUnnamed512() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed111(core.List<core.String> o) {
+checkUnnamed512(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'));
}
-buildUnnamed112() {
+buildUnnamed513() {
var o = new core.Map<core.String, api.UserCustomProperties>();
o["x"] = buildUserCustomProperties();
o["y"] = buildUserCustomProperties();
return o;
}
-checkUnnamed112(core.Map<core.String, api.UserCustomProperties> o) {
+checkUnnamed513(core.Map<core.String, api.UserCustomProperties> o) {
unittest.expect(o, unittest.hasLength(2));
checkUserCustomProperties(o["x"]);
checkUserCustomProperties(o["y"]);
}
-buildUnnamed113() {
+buildUnnamed514() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed113(core.List<core.String> o) {
+checkUnnamed514(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'));
@@ -1140,10 +1140,10 @@ buildUser() {
if (buildCounterUser < 3) {
o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
o.agreedToTerms = true;
- o.aliases = buildUnnamed111();
+ o.aliases = buildUnnamed512();
o.changePasswordAtNextLogin = true;
o.creationTime = core.DateTime.parse("2002-02-27T14:01:02");
- o.customSchemas = buildUnnamed112();
+ o.customSchemas = buildUnnamed513();
o.customerId = "foo";
o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02");
o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
@@ -1160,7 +1160,8 @@ buildUser() {
o.kind = "foo";
o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02");
o.name = buildUserName();
- o.nonEditableAliases = buildUnnamed113();
+ o.nonEditableAliases = buildUnnamed514();
+ o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
o.orgUnitPath = "foo";
o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
o.password = "foo";
@@ -1170,6 +1171,7 @@ buildUser() {
o.suspended = true;
o.suspensionReason = "foo";
o.thumbnailPhotoUrl = "foo";
+ o.websites = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
}
buildCounterUser--;
return o;
@@ -1180,10 +1182,10 @@ checkUser(api.User o) {
if (buildCounterUser < 3) {
var casted1 = (o.addresses) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
unittest.expect(o.agreedToTerms, unittest.isTrue);
- checkUnnamed111(o.aliases);
+ checkUnnamed512(o.aliases);
unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue);
unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
- checkUnnamed112(o.customSchemas);
+ checkUnnamed513(o.customSchemas);
unittest.expect(o.customerId, unittest.equals('foo'));
unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
var casted2 = (o.emails) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
@@ -1200,20 +1202,43 @@ checkUser(api.User o) {
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
checkUserName(o.name);
- checkUnnamed113(o.nonEditableAliases);
+ checkUnnamed514(o.nonEditableAliases);
+ var casted5 = (o.notes) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
unittest.expect(o.orgUnitPath, unittest.equals('foo'));
- var casted5 = (o.organizations) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
+ var casted6 = (o.organizations) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
unittest.expect(o.password, unittest.equals('foo'));
- var casted6 = (o.phones) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
+ var casted7 = (o.phones) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo'));
unittest.expect(o.primaryEmail, unittest.equals('foo'));
- var casted7 = (o.relations) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo'));
+ var casted8 = (o.relations) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo'));
unittest.expect(o.suspended, unittest.isTrue);
unittest.expect(o.suspensionReason, unittest.equals('foo'));
unittest.expect(o.thumbnailPhotoUrl, unittest.equals('foo'));
+ var casted9 = (o.websites) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo'));
}
buildCounterUser--;
}
+core.int buildCounterUserAbout = 0;
+buildUserAbout() {
+ var o = new api.UserAbout();
+ buildCounterUserAbout++;
+ if (buildCounterUserAbout < 3) {
+ o.contentType = "foo";
+ o.value = "foo";
+ }
+ buildCounterUserAbout--;
+ return o;
+}
+
+checkUserAbout(api.UserAbout o) {
+ buildCounterUserAbout++;
+ if (buildCounterUserAbout < 3) {
+ unittest.expect(o.contentType, unittest.equals('foo'));
+ unittest.expect(o.value, unittest.equals('foo'));
+ }
+ buildCounterUserAbout--;
+}
+
core.int buildCounterUserAddress = 0;
buildUserAddress() {
var o = new api.UserAddress();
@@ -1266,8 +1291,8 @@ buildUserCustomProperties() {
checkUserCustomProperties(api.UserCustomProperties o) {
unittest.expect(o, unittest.hasLength(2));
- var casted8 = (o["a"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo'));
- var casted9 = (o["b"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo'));
+ var casted10 = (o["a"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo'));
+ var casted11 = (o["b"]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo'));
}
core.int buildCounterUserEmail = 0;
@@ -1528,14 +1553,39 @@ checkUserUndelete(api.UserUndelete o) {
buildCounterUserUndelete--;
}
-buildUnnamed114() {
+core.int buildCounterUserWebsite = 0;
+buildUserWebsite() {
+ var o = new api.UserWebsite();
+ buildCounterUserWebsite++;
+ if (buildCounterUserWebsite < 3) {
+ o.customType = "foo";
+ o.primary = true;
+ o.type = "foo";
+ o.value = "foo";
+ }
+ buildCounterUserWebsite--;
+ return o;
+}
+
+checkUserWebsite(api.UserWebsite o) {
+ buildCounterUserWebsite++;
+ if (buildCounterUserWebsite < 3) {
+ unittest.expect(o.customType, unittest.equals('foo'));
+ unittest.expect(o.primary, unittest.isTrue);
+ unittest.expect(o.type, unittest.equals('foo'));
+ unittest.expect(o.value, unittest.equals('foo'));
+ }
+ buildCounterUserWebsite--;
+}
+
+buildUnnamed515() {
var o = new core.List<api.User>();
o.add(buildUser());
o.add(buildUser());
return o;
}
-checkUnnamed114(core.List<api.User> o) {
+checkUnnamed515(core.List<api.User> o) {
unittest.expect(o, unittest.hasLength(2));
checkUser(o[0]);
checkUser(o[1]);
@@ -1550,7 +1600,7 @@ buildUsers() {
o.kind = "foo";
o.nextPageToken = "foo";
o.triggerEvent = "foo";
- o.users = buildUnnamed114();
+ o.users = buildUnnamed515();
}
buildCounterUsers--;
return o;
@@ -1563,7 +1613,7 @@ checkUsers(api.Users o) {
unittest.expect(o.kind, unittest.equals('foo'));
unittest.expect(o.nextPageToken, unittest.equals('foo'));
unittest.expect(o.triggerEvent, unittest.equals('foo'));
- checkUnnamed114(o.users);
+ checkUnnamed515(o.users);
}
buildCounterUsers--;
}
@@ -1593,14 +1643,14 @@ checkVerificationCode(api.VerificationCode o) {
buildCounterVerificationCode--;
}
-buildUnnamed115() {
+buildUnnamed516() {
var o = new core.List<api.VerificationCode>();
o.add(buildVerificationCode());
o.add(buildVerificationCode());
return o;
}
-checkUnnamed115(core.List<api.VerificationCode> o) {
+checkUnnamed516(core.List<api.VerificationCode> o) {
unittest.expect(o, unittest.hasLength(2));
checkVerificationCode(o[0]);
checkVerificationCode(o[1]);
@@ -1612,7 +1662,7 @@ buildVerificationCodes() {
buildCounterVerificationCodes++;
if (buildCounterVerificationCodes < 3) {
o.etag = "foo";
- o.items = buildUnnamed115();
+ o.items = buildUnnamed516();
o.kind = "foo";
}
buildCounterVerificationCodes--;
@@ -1623,59 +1673,59 @@ checkVerificationCodes(api.VerificationCodes o) {
buildCounterVerificationCodes++;
if (buildCounterVerificationCodes < 3) {
unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed115(o.items);
+ checkUnnamed516(o.items);
unittest.expect(o.kind, unittest.equals('foo'));
}
buildCounterVerificationCodes--;
}
-buildUnnamed116() {
+buildUnnamed517() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed116(core.List<core.String> o) {
+checkUnnamed517(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'));
}
-buildUnnamed117() {
+buildUnnamed518() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed117(core.List<core.String> o) {
+checkUnnamed518(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'));
}
-buildUnnamed118() {
+buildUnnamed519() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed118(core.List<core.String> o) {
+checkUnnamed519(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'));
}
-buildUnnamed119() {
+buildUnnamed520() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed119(core.List<core.String> o) {
+checkUnnamed520(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'));
@@ -1935,6 +1985,15 @@ main() {
});
+ unittest.group("obj-schema-UserAbout", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildUserAbout();
+ var od = new api.UserAbout.fromJson(o.toJson());
+ checkUserAbout(od);
+ });
+ });
+
+
unittest.group("obj-schema-UserAddress", () {
unittest.test("to-json--from-json", () {
var o = buildUserAddress();
@@ -2043,6 +2102,15 @@ main() {
});
+ unittest.group("obj-schema-UserWebsite", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildUserWebsite();
+ var od = new api.UserWebsite.fromJson(o.toJson());
+ checkUserWebsite(od);
+ });
+ });
+
+
unittest.group("obj-schema-Users", () {
unittest.test("to-json--from-json", () {
var o = buildUsers();
@@ -3924,7 +3992,7 @@ main() {
var mock = new common_test.HttpServerMock();
api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
var arg_customerId = "foo";
- var arg_orgUnitPath = buildUnnamed116();
+ var arg_orgUnitPath = buildUnnamed517();
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
@@ -3978,7 +4046,7 @@ main() {
var mock = new common_test.HttpServerMock();
api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
var arg_customerId = "foo";
- var arg_orgUnitPath = buildUnnamed117();
+ var arg_orgUnitPath = buildUnnamed518();
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var path = (req.url).path;
var pathOffset = 0;
@@ -4149,7 +4217,7 @@ main() {
api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
var arg_request = buildOrgUnit();
var arg_customerId = "foo";
- var arg_orgUnitPath = buildUnnamed118();
+ var arg_orgUnitPath = buildUnnamed519();
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var obj = new api.OrgUnit.fromJson(json);
checkOrgUnit(obj);
@@ -4209,7 +4277,7 @@ main() {
api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits;
var arg_request = buildOrgUnit();
var arg_customerId = "foo";
- var arg_orgUnitPath = buildUnnamed119();
+ var arg_orgUnitPath = buildUnnamed520();
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var obj = new api.OrgUnit.fromJson(json);
checkOrgUnit(obj);

Powered by Google App Engine
This is Rietveld 408576698