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

Side by Side Diff: chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js

Issue 1901853002: Import supervised user dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md-user-manager-confirmation-page
Patch Set: Addressed comments + rebase Created 4 years, 8 months 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 unified diff | Download patch
« no previous file with comments | « chrome/test/data/webui/md_user_manager/create_profile_tests.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * The mock signin.ProfileBrowserProxy. 6 * The mock signin.ProfileBrowserProxy.
7 * 7 *
8 * @constructor 8 * @constructor
9 * @implements {signin.ProfileBrowserProxy} 9 * @implements {signin.ProfileBrowserProxy}
10 * @extends {settings.TestBrowserProxy} 10 * @extends {settings.TestBrowserProxy}
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 /** 84 /**
85 * Flag used to test whether this method was not called. 85 * Flag used to test whether this method was not called.
86 * @type {boolean} 86 * @type {boolean}
87 */ 87 */
88 this.cancelCreateProfileCalled = true; 88 this.cancelCreateProfileCalled = true;
89 this.methodCalled('cancelCreateProfile'); 89 this.methodCalled('cancelCreateProfile');
90 }, 90 },
91 91
92 /** @override */ 92 /** @override */
93 createProfile: function(profileName, profileIconUrl, isSupervised, 93 createProfile: function(profileName, profileIconUrl, isSupervised,
94 custodianProfilePath) { 94 supervisedUserId, custodianProfilePath) {
95 this.methodCalled('createProfile', 95 this.methodCalled('createProfile',
96 {profileName: profileName, 96 {profileName: profileName,
97 profileIconUrl: profileIconUrl, 97 profileIconUrl: profileIconUrl,
98 isSupervised: isSupervised, 98 isSupervised: isSupervised,
99 supervisedUserId: supervisedUserId,
99 custodianProfilePath: custodianProfilePath}); 100 custodianProfilePath: custodianProfilePath});
100 }, 101 },
101 102
102 /** @override */ 103 /** @override */
103 launchGuestUser: function() { 104 launchGuestUser: function() {
104 this.methodCalled('launchGuestUser'); 105 this.methodCalled('launchGuestUser');
105 }, 106 },
106 107
107 /** @override */ 108 /** @override */
108 getExistingSupervisedUsers: function() { 109 getExistingSupervisedUsers: function() {
109 this.methodCalled('getExistingSupervisedUsers'); 110 this.methodCalled('getExistingSupervisedUsers');
110 return Promise.resolve(this.existingSupervisedUsers_); 111 return Promise.resolve(this.existingSupervisedUsers_);
111 }, 112 },
112 }; 113 };
OLDNEW
« no previous file with comments | « chrome/test/data/webui/md_user_manager/create_profile_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698