aboutsummaryrefslogtreecommitdiff
path: root/src/test/examples/TestEngine/TestEngine.h
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2019-12-22 13:51:35 +1100
committerSean Hall <r.sean.hall@gmail.com>2019-12-22 13:34:07 +1000
commit4a176b759c47fa1970fcfd0d9e25c294bda82ef4 (patch)
tree961cc91c44569d72c12d9f2dc5b1c11a80bb94a9 /src/test/examples/TestEngine/TestEngine.h
parent43fb611edc680a74d229e8f1eeacb30adad8e3c7 (diff)
downloadwix-4a176b759c47fa1970fcfd0d9e25c294bda82ef4.tar.gz
wix-4a176b759c47fa1970fcfd0d9e25c294bda82ef4.tar.bz2
wix-4a176b759c47fa1970fcfd0d9e25c294bda82ef4.zip
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.
Diffstat (limited to 'src/test/examples/TestEngine/TestEngine.h')
-rw-r--r--src/test/examples/TestEngine/TestEngine.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/test/examples/TestEngine/TestEngine.h b/src/test/examples/TestEngine/TestEngine.h
new file mode 100644
index 00000000..52872100
--- /dev/null
+++ b/src/test/examples/TestEngine/TestEngine.h
@@ -0,0 +1,42 @@
1#pragma once
2// 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.
3
4#include "precomp.h"
5
6class TestEngine
7{
8public:
9 HRESULT LoadBA(
10 __in LPCWSTR wzBAFilePath
11 );
12
13 HRESULT Log(
14 __in LPCWSTR wzMessage
15 );
16
17 HRESULT SendShutdownEvent(
18 __in BOOTSTRAPPER_SHUTDOWN_ACTION defaultAction
19 );
20
21private:
22 static HRESULT BAEngineLog(
23 __in TestEngine* pContext,
24 __in BAENGINE_LOG_ARGS* pArgs,
25 __in BAENGINE_LOG_RESULTS* /*pResults*/
26 );
27
28 static HRESULT WINAPI EngineProc(
29 __in BOOTSTRAPPER_ENGINE_MESSAGE message,
30 __in const LPVOID pvArgs,
31 __inout LPVOID pvResults,
32 __in_opt LPVOID pvContext
33 );
34
35public:
36 TestEngine();
37
38 ~TestEngine();
39
40private:
41 BOOTSTRAPPER_CREATE_RESULTS* m_pCreateResults;
42}; \ No newline at end of file