Aric Stewart : msctf/tests: Framework for testing ITfKeystrokeMgr.
Alexandre Julliard
julliard at winehq.org
Thu Apr 23 11:27:25 CDT 2009
Module: wine
Branch: master
Commit: 2bb5ade29fe8b97eb4243c4dfee15765be749d41
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2bb5ade29fe8b97eb4243c4dfee15765be749d41
Author: Aric Stewart <aric at codeweavers.com>
Date: Wed Apr 22 12:37:51 2009 -0500
msctf/tests: Framework for testing ITfKeystrokeMgr.
---
dlls/msctf/tests/inputprocessor.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/dlls/msctf/tests/inputprocessor.c b/dlls/msctf/tests/inputprocessor.c
index 5ac4160..c047e45 100644
--- a/dlls/msctf/tests/inputprocessor.c
+++ b/dlls/msctf/tests/inputprocessor.c
@@ -257,6 +257,16 @@ static void test_ThreadMgrUnadviseSinks(void)
ITfSource_Release(source);
}
+static void test_KeystrokeMgr(void)
+{
+ ITfKeystrokeMgr *keymgr= NULL;
+ HRESULT hr;
+
+ hr = ITfThreadMgr_QueryInterface(g_tm, &IID_ITfKeystrokeMgr, (LPVOID*)&keymgr);
+ ok(SUCCEEDED(hr),"Failed to get IID_ITfKeystrokeMgr for ThreadMgr\n");
+ ITfKeystrokeMgr_Release(keymgr);
+}
+
static void test_Activate(void)
{
HRESULT hr;
@@ -439,6 +449,7 @@ START_TEST(inputprocessor)
test_ThreadMgrAdviseSinks();
test_Activate();
test_startSession();
+ test_KeystrokeMgr();
test_endSession();
test_EnumLanguageProfiles();
test_FindClosestCategory();
More information about the wine-cvs
mailing list