Commit Graph

123 Commits

Author SHA1 Message Date
Eric Pouech 266814802b msctf/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-01 10:37:49 +01:00
Alexandre Julliard f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Nikolay Sivov 759ecd6e59 msctf: Add ITextStoreACPServices::CreateRange().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-02 20:16:07 +02:00
Nikolay Sivov 2952219e83 msctf/range: Update to ITfRangeACP.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-02 20:16:07 +02:00
Nikolay Sivov fa4c386e06 msctf: Maintain context reference in ranges.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-02 20:16:07 +02:00
Michael Stefaniuc 7f46f2314f msctf/tests: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-07 11:08:35 +01:00
Gijs Vermeulen 4a103ea961 msctf/tests: Add ITfSource::[Un]AdviseSink() test with ITfActiveLanguageProfileNotifySink.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-23 21:05:04 +01:00
Derek Lesho 3c09634ece msctf: Always provide a context when from GetBase/Top.
Signed-off-by: Derek Lesho <dlesho@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-10 22:46:24 +01:00
Zebediah Figura c55e8822ae msctf/tests: Fix some test failures on Windows 10.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-23 22:41:38 +01:00
Gabriel Ivăncescu 6393edb714 msctf: Clear the corresponding DocumentMgr pointers for Associated Focus Windows on destruction.
Fixes a regression introduced by d541087079.

AssociateFocus does not grab ownership of the Document Manager, but it does
return it in the "prev" output parameter with an increased refcount. So,
if the docmgr gets destroyed and AssociateFocus is called again, its "prev"
parameter will refer to freed memory. Windows sets it to NULL in such case.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48469
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-16 12:21:11 +01:00
Zebediah Figura 08cc7290df msctf/tests: Trace method calls more completely and only when WINETEST_DEBUG is set.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-27 19:28:22 +01:00
Zebediah Figura 507abe4dcd msctf/tests: Don't test calls to ITextStoreACP::GetStatus().
They vary across platforms, and in any case there's not much point
testing methods that just query state.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-27 19:28:20 +01:00
Zebediah Figura 9516ad1fc7 msctf/tests: Simplify ITfThreadMgrEventSink refcounting tests.
Just use one static object, and don't depend on the thread manager
never calling AddRef()/Release().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-27 19:28:17 +01:00
Rémi Bernon b9b834b6ba msctf/tests: Add multi-threaded apartment test for ITfSource_AdviseSink.
We expect it to fail because the ITfUIElementSink interface is flagged
as "local" and cannot be marshalled, and because ITfThreadMgr is flagged
with "threading(apartment)" and cannot be instanciated in the MTA.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-21 14:32:39 +02:00
Andrew Eikum d541087079 msctf: Accept ITfInputProcessorProfileActivationSink in ThreadMgr AdviseSink.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 09:42:55 +02:00
Andrew Eikum 9122bf768f msctf: Accept ITfUIElementSink in ThreadMgr AdviseSink.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 09:41:50 +02:00
Zebediah Figura b4843f29cb msctf/tests: Skip tests if limited.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 14:15:09 +02:00
Zebediah Figura e050c24998 msctf/tests: Set requestedExecutionLevel to asInvoker to prevent virtualization.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 14:15:04 +02:00
Michael Stefaniuc 5da1f82620 msctf/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-04 14:23:31 +02:00
Jacek Caban c082108e24 msctf: Added semi-stub support for ITfKeyTraceEventSink event sink.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-14 15:27:57 +01:00
Andrey Gusev 0b7882b00b msctf/tests: Fix a typo in sink_check_ok().
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-08 13:58:25 +01:00
Nikolay Sivov 8d03bef891 msctf/tests: Fix test object leak (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:39:38 +01:00
Huw Davies aac4cc8fbb msctf/tests: Return if the constructor fails. This avoids several clang warnings.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-17 12:50:42 +01:00
Huw Davies 5fb2267a78 msctf/tests: Fix tests on Windows 8 and 10.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-17 12:50:40 +01:00
Huw Davies 543496a4fc msctf/tests: Fix usage of test_ShouldDeactivate which is a BOOL.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-17 12:50:38 +01:00
Nikolay Sivov bbae410a2b msctf/tests: Return interface pointers instead of pointers to impl structure.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 20:47:48 +09:00
Michael Stefaniuc fd0101ab61 msctf: Don't crash on NULL input in EnumLanguageProfiles().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-20 11:02:32 +09:00
Jacek Caban 0bf6df6866 msctf: Fixed ref counts in tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-28 22:54:11 +09:00
Jacek Caban bc645ca71a msctf: Added Push/Pop context tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-28 22:54:09 +09:00
Jacek Caban 4585687e7d msctf: Added ITfTransitoryExtensionSink tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 20:40:11 +09:00
Francois Gouget 958d143526 msctf/tests: Spelling fixes for inputprocessor ok() messages.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-22 21:04:34 +09:00
Nikolay Sivov 6834367a16 msctf/tests: Fix a crash on unsupported interface.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 22:23:40 +09:00
Nikolay Sivov 85210d46c4 msctf: Added stub ITextStoreACPServices support for context ITextStoreACPSink.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 22:23:28 +09:00
Frédéric Delanoy 430556ae06 msctf/tests: Use todo_wine_if() in tests.
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-20 12:08:06 +09:00
Matteo Bruni a977484765 msctf: Add a partial implementation of ITfThreadMgrEx_ActivateEx().
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:49 +09:00
Alistair Leslie-Hughes 89fd36e1df msctf/tests: Fix memory leaks (valgrind).
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-30 19:11:51 +09:00
Michael Stefaniuc 5c9d24702f msctf/tests: Remove an unsused assignment (PVS-Studio). 2015-03-06 20:32:01 +09:00
Nikolay Sivov d3980cdcf2 msctf/tests: Fix crash when ITfInputProcessorProfileMgr is not supported. 2014-06-16 09:31:14 +02:00
Jacek Caban 645cdf9dc3 msctf: Added IEnumTfInputProcessorProfiles interface stub implementation. 2014-05-15 19:04:57 +02:00
Jacek Caban b84e112dd6 msctf: Added ITfInputProcessorProfileMgr interface stub implementation. 2014-04-29 18:22:36 +02:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
André Hentschel 15543701a7 msctf/tests: Mark GUID_NULL as result broken for Win8. 2013-11-07 13:13:49 +01:00
André Hentschel e22908a867 msctf/tests: Always set focus again explicitly for Win7+. 2013-11-07 13:13:24 +01:00
Michael Stefaniuc a50d081cd8 msctf/tests: Compile with -D__WINESRC__. 2013-10-17 10:43:37 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Marcus Meissner 2288851c90 msctf: Also free the sink in the non-source branch (Coverity). 2012-09-03 17:43:47 +02:00
Nikolay Sivov 955e27d0e3 msctf: Call interface methods properly. 2012-08-20 10:59:20 +02:00
Francois Gouget 8f8760a1a5 msctf/tests: Give time for the messages to arrive. 2011-09-12 11:00:28 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
Austin English 24eaf19300 msctf/tests: Make sure return values are used (LLVM/Clang). 2011-07-26 10:23:00 +02:00