Changeset 102534 in vbox for trunk/src/VBox/Main/testcase/tstUnattendedScript.cpp
- Timestamp:
- Dec 8, 2023 11:06:41 AM (15 months ago)
- svn:sync-xref-src-repo-rev:
- 160678
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstUnattendedScript.cpp
r102381 r102534 59 59 { 60 60 mStrUser = "vboxuser"; 61 mStrPassword = "changeme"; 61 mStrUserPassword = "changeme"; 62 mStrAdminPassword = "adminpw"; 62 63 mStrFullUserName = "VBox & VBox;"; 63 64 mStrProductKey = "911"; … … 168 169 } 169 170 170 HRESULT Unattended::get Password(com::Utf8Str &password)171 HRESULT Unattended::getUserPassword(com::Utf8Str &password) 171 172 { 172 173 RT_NOREF(password); … … 174 175 } 175 176 176 HRESULT Unattended::setPassword(const com::Utf8Str &password) 177 HRESULT Unattended::setUserPassword(const com::Utf8Str &password) 178 { 179 RT_NOREF(password); 180 return E_NOTIMPL; 181 } 182 183 HRESULT Unattended::getAdminPassword(com::Utf8Str &password) 184 { 185 RT_NOREF(password); 186 return E_NOTIMPL; 187 } 188 189 HRESULT Unattended::setAdminPassword(const com::Utf8Str &password) 177 190 { 178 191 RT_NOREF(password); … … 544 557 } 545 558 546 Utf8Str const &Unattended::i_getPassword() const 547 { 548 return mStrPassword; 559 Utf8Str const &Unattended::i_getUserPassword() const 560 { 561 return mStrUserPassword; 562 } 563 564 Utf8Str const &Unattended::i_getAdminPassword() const 565 { 566 /* If no Administrator / 'root' password is being set, the user password will be used instead. 567 * Also see API documentation. */ 568 return mStrAdminPassword.isEmpty() ? mStrUserPassword : mStrAdminPassword; 549 569 } 550 570
Note:
See TracChangeset
for help on using the changeset viewer.