From 0d3d54992104288e9ee0c834d0b96e8502fd2d42 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 11 Jan 2024 18:26:20 -0800 Subject: Move the BootstrapperApplication out of proc --- src/burn/test/BurnUnitTest/RegistrationTest.cpp | 56 ++++++++++++------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'src/burn/test/BurnUnitTest/RegistrationTest.cpp') diff --git a/src/burn/test/BurnUnitTest/RegistrationTest.cpp b/src/burn/test/BurnUnitTest/RegistrationTest.cpp index fc84511d..2d6515ef 100644 --- a/src/burn/test/BurnUnitTest/RegistrationTest.cpp +++ b/src/burn/test/BurnUnitTest/RegistrationTest.cpp @@ -70,8 +70,8 @@ namespace Bootstrapper LPCWSTR wzDocument = L"" - L" " - L" " + L" " + L" " L" " L" " L" " @@ -87,7 +87,7 @@ namespace Bootstrapper hr = VariableInitialize(&variables); TestThrowOnFailure(hr, L"Failed to initialize variables."); - hr = UserExperienceParseFromXml(&userExperience, pixeBundle); + hr = BootstrapperApplicationParseFromXml(&userExperience, pixeBundle); TestThrowOnFailure(hr, L"Failed to parse UX from XML."); hr = RegistrationParseFromXml(®istration, &cache, pixeBundle); @@ -130,7 +130,7 @@ namespace Bootstrapper { ReleaseStr(sczCurrentProcess); ReleaseObject(pixeBundle); - UserExperienceUninitialize(&userExperience); + BootstrapperApplicationUninitialize(&userExperience); RegistrationUninitialize(®istration); VariablesUninitialize(&variables); @@ -170,8 +170,8 @@ namespace Bootstrapper LPCWSTR wzDocument = L"" - L" " - L" " + L" " + L" " L" " L" " L" " @@ -187,7 +187,7 @@ namespace Bootstrapper hr = VariableInitialize(&variables); TestThrowOnFailure(hr, L"Failed to initialize variables."); - hr = UserExperienceParseFromXml(&userExperience, pixeBundle); + hr = BootstrapperApplicationParseFromXml(&userExperience, pixeBundle); TestThrowOnFailure(hr, L"Failed to parse UX from XML."); hr = RegistrationParseFromXml(®istration, &cache, pixeBundle); @@ -251,7 +251,7 @@ namespace Bootstrapper { ReleaseStr(sczCurrentProcess); ReleaseObject(pixeBundle); - UserExperienceUninitialize(&userExperience); + BootstrapperApplicationUninitialize(&userExperience); RegistrationUninitialize(®istration); VariablesUninitialize(&variables); @@ -291,8 +291,8 @@ namespace Bootstrapper LPCWSTR wzDocument = L"" - L" " - L" " + L" " + L" " L" " L" " L" " @@ -308,7 +308,7 @@ namespace Bootstrapper hr = VariableInitialize(&variables); TestThrowOnFailure(hr, L"Failed to initialize variables."); - hr = UserExperienceParseFromXml(&userExperience, pixeBundle); + hr = BootstrapperApplicationParseFromXml(&userExperience, pixeBundle); TestThrowOnFailure(hr, L"Failed to parse UX from XML."); hr = RegistrationParseFromXml(®istration, &cache, pixeBundle); @@ -372,7 +372,7 @@ namespace Bootstrapper { ReleaseStr(sczCurrentProcess); ReleaseObject(pixeBundle); - UserExperienceUninitialize(&userExperience); + BootstrapperApplicationUninitialize(&userExperience); RegistrationUninitialize(®istration); VariablesUninitialize(&variables); @@ -412,8 +412,8 @@ namespace Bootstrapper LPCWSTR wzDocument = L"" - L" " - L" " + L" " + L" " L" " L" " L" " - L" " - L" " + L" " + L" " L" " L" " L" " @@ -576,7 +576,7 @@ namespace Bootstrapper hr = VariablesParseFromXml(&variables, pixeBundle); TestThrowOnFailure(hr, L"Failed to parse variables from XML."); - hr = UserExperienceParseFromXml(&userExperience, pixeBundle); + hr = BootstrapperApplicationParseFromXml(&userExperience, pixeBundle); TestThrowOnFailure(hr, L"Failed to parse UX from XML."); hr = RegistrationParseFromXml(®istration, &cache, pixeBundle); @@ -612,7 +612,7 @@ namespace Bootstrapper hr = RegistrationSaveState(®istration, pbBuffer, cbBuffer); TestThrowOnFailure(hr, L"Failed to save state."); - ReleaseNullBuffer(pbBuffer); + ReleaseNullMem(pbBuffer); cbBuffer = 0; // Verify the variables exist @@ -646,7 +646,7 @@ namespace Bootstrapper ReleaseStr(sczRelatedBundleId); ReleaseStr(sczCurrentProcess); ReleaseObject(pixeBundle); - UserExperienceUninitialize(&userExperience); + BootstrapperApplicationUninitialize(&userExperience); RegistrationUninitialize(®istration); VariablesUninitialize(&variables); @@ -691,8 +691,8 @@ namespace Bootstrapper LPCWSTR wzDocument = L"" - L" " - L" " + L" " + L" " L" " L" " L" " @@ -714,7 +714,7 @@ namespace Bootstrapper hr = VariablesParseFromXml(&variables, pixeBundle); TestThrowOnFailure(hr, L"Failed to parse variables from XML."); - hr = UserExperienceParseFromXml(&userExperience, pixeBundle); + hr = BootstrapperApplicationParseFromXml(&userExperience, pixeBundle); TestThrowOnFailure(hr, L"Failed to parse UX from XML."); hr = RegistrationParseFromXml(®istration, &cache, pixeBundle); @@ -755,7 +755,7 @@ namespace Bootstrapper hr = RegistrationSaveState(®istration, pbBuffer, cbBuffer); TestThrowOnFailure(hr, L"Failed to save state."); - ReleaseNullBuffer(pbBuffer); + ReleaseNullMem(pbBuffer); cbBuffer = 0; // Verify the variables exist @@ -816,7 +816,7 @@ namespace Bootstrapper { ReleaseStr(sczCurrentProcess); ReleaseObject(pixeBundle); - UserExperienceUninitialize(&userExperience); + BootstrapperApplicationUninitialize(&userExperience); RegistrationUninitialize(®istration); VariablesUninitialize(&variables); @@ -836,7 +836,7 @@ namespace Bootstrapper void ValidateRunOnceKeyEntry(String^ exePath) { - this->ValidateRunOnceKeyString(TEST_BUNDLE_ID, String::Concat(L"\"", exePath, L"\" /burn.clean.room /burn.runonce")); + this->ValidateRunOnceKeyString(TEST_BUNDLE_ID, String::Concat(L"\"", exePath, L"\" /burn.runonce")); } void ValidateUninstallKeyNull(LPCWSTR valueName) -- cgit v1.2.3-55-g6feb