From 4a176b759c47fa1970fcfd0d9e25c294bda82ef4 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sun, 22 Dec 2019 13:51:35 +1100 Subject: Update the MbaHost test project to use an external exe to load the BA, which allows loading a different .NET than the one running the tests. This also allows writing the tests in C# instead of C++/CLI. --- src/test/WixToolsetTest.MbaHost/EngineForTest.cpp | 45 ----------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/test/WixToolsetTest.MbaHost/EngineForTest.cpp (limited to 'src/test/WixToolsetTest.MbaHost/EngineForTest.cpp') diff --git a/src/test/WixToolsetTest.MbaHost/EngineForTest.cpp b/src/test/WixToolsetTest.MbaHost/EngineForTest.cpp deleted file mode 100644 index b2567a7b..00000000 --- a/src/test/WixToolsetTest.MbaHost/EngineForTest.cpp +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. - -#include "precomp.h" - -static HRESULT BAEngineLog( - __in BOOTSTRAPPER_ENGINE_CONTEXT* pContext, - __in BAENGINE_LOG_ARGS* pArgs, - __in BAENGINE_LOG_RESULTS* /*pResults*/ -) -{ - HRESULT hr = S_OK; - - pContext->pfnLog(pArgs->wzMessage); - - return hr; -} - -HRESULT WINAPI EngineForTestProc( - __in BOOTSTRAPPER_ENGINE_MESSAGE message, - __in const LPVOID pvArgs, - __inout LPVOID pvResults, - __in_opt LPVOID pvContext -) -{ - HRESULT hr = S_OK; - BOOTSTRAPPER_ENGINE_CONTEXT* pContext = reinterpret_cast(pvContext); - - if (!pContext || !pvArgs || !pvResults) - { - ExitFunction1(hr = E_INVALIDARG); - } - - switch (message) - { - case BOOTSTRAPPER_ENGINE_MESSAGE_LOG: - hr = BAEngineLog(pContext, reinterpret_cast(pvArgs), reinterpret_cast(pvResults)); - break; - default: - hr = E_NOTIMPL; - break; - } - -LExit: - return hr; -} \ No newline at end of file -- cgit v1.2.3-55-g6feb