Commit Graph

25 Commits

Author SHA1 Message Date
Vadim Zeitlin
11a5728b32 Replace remaining std::auto_ptr<> with wxScopedPtr in the tests
This should have been done in b8c9cd3528
to avoid all warnings about std::auto_ptr<> being deprecated when using
g++ 6 or later which compiles in C++14 mode by default.
2017-11-14 00:06:18 +01:00
Dimitri Schoolwerth
8f8d58d193 Use wx-prefixed macros throughout the repository.
Change {DECLARE,IMPLEMENT}_*CLASS and {DECLARE,BEGIN,END}_EVENT_TABLE
occurrences to use the wx-prefixed version of the macros.
2015-04-23 22:00:35 +04:00
Vadim Zeitlin
3f66f6a5b3 Remove all lines containing cvs/svn "$Id$" keyword.
This keyword is not expanded by Git which means it's not replaced with the
correct revision value in the releases made using git-based scripts and it's
confusing to have lines with unexpanded "$Id$" in the released files. As
expanding them with Git is not that simple (it could be done with git archive
and export-subst attribute) and there are not many benefits in having them in
the first place, just remove all these lines.

If nothing else, this will make an eventual transition to Git simpler.

Closes #14487.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-26 16:02:46 +00:00
Vadim Zeitlin
294a09aa8c Add per-direction wxSocket wait flags and byte counters.
Allow to specify whether the socket should block until all the data is read or
written or, on the contrary, avoid blocking only when reading or writing
instead of always using the same behaviour in both directions.

Also add separate counters for the bytes read/written instead of using the
same one for both.

These changes make it possible to use the same socket for reading/writing in
different threads.

Closes #14506.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-09-30 22:21:44 +00:00
Vadim Zeitlin
bb5a951418 Use __WINDOWS__ for OS checks and __WXMSW__ for GUI checks (round 2).
This is continuation of r70796 and serves the same purpose.

Closes #14065, #14066.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-04 20:31:42 +00:00
Vadim Zeitlin
232fdc630c Merge the new GUI tests from SOC2010_GUI_TEST branch.
Add a lot of tests for many wx GUI classes.

Add tests using the new wxUIActionSimulator class but disable them under OS X
as too many of them currently fail there.

Refactor the test suite to make organizing the existing tests and adding the
new ones easier.

Improve documentation using the information gathered while testing the
classes. Also update the documentation of the testing system itself.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-08-22 22:16:05 +00:00
Vadim Zeitlin
526954c596 Globally use "wxWindows licence" consistently.
Use "wxWindows licence" and not "wxWidgets licence" (the latter doesn't
exist) and consistently spell "licence" using British spelling.

See #12165.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-07-13 13:29:13 +00:00
Vadim Zeitlin
3a3b0bc2ea disable IPC test completely as it prevents the test program from running to completion when it hangs (for still unknown reason)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-11 13:15:45 +00:00
Vadim Zeitlin
68888eeaa8 compilation fixes for 64 bit platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-16 17:41:25 +00:00
Vadim Zeitlin
1f30c75e44 fix memory leak in URL test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 13:18:22 +00:00
Vadim Zeitlin
16685812c1 run wxURL test both with and without the event loop too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 12:53:44 +00:00
Vadim Zeitlin
6799c5e283 added wxURL test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-30 12:53:04 +00:00
Vadim Zeitlin
8d8087fc9b make the test really use the event loop in its second half (this already was the intention before but it didn't work correctly)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 11:12:47 +00:00
Vadim Zeitlin
6e7fd3ca03 test sockets both with and without event loop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-26 22:58:20 +00:00
Vadim Zeitlin
b245cbc587 fix (harmless) VC7 warnings about auto_ptr assignment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-23 00:09:34 +00:00
Vadim Zeitlin
68baf10e3f disable the test under Windows as it hangs and prevents buildbot from working
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-04 12:15:24 +00:00
Vadim Zeitlin
527587d347 really fix VC6 compilation of all testsi (without breaking VC9)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-03 00:31:16 +00:00
Vadim Zeitlin
7b9b06e323 create local event loop for the operations which need it; test reading with wxSOCKET_BLOCK flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 22:55:56 +00:00
Vadim Zeitlin
6b6b233ac0 wxUSE_STL compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 22:27:49 +00:00
Vadim Zeitlin
3afc646cae don't allocate a too big buffer on stack
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 20:57:19 +00:00
Vadim Zeitlin
62fb86a515 add simple (and disabled by default) wxSocket client test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 20:45:29 +00:00
Vadim Zeitlin
76a10a0dac fix crash under MSW due to constructing a static wxDDEClient instance (this arguably should work but currently doesn't because of use of (yet uninitialized) wxDDEClientObjects in wxDDEClient ctor)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-12 01:36:09 +00:00
Vadim Zeitlin
02ab8d3a75 only initialize sockets if IPC implementation is socket-based
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 21:01:41 +00:00
Vadim Zeitlin
4c141c5a96 PCH-less build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 15:12:58 +00:00
Vadim Zeitlin
e7ce668e1d added a simple IPC unit test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 02:19:34 +00:00