Jerry (Xinyu Hou)
de91be1035
#2765 Added unit tests for KeyMap
2016-09-26 11:58:33 +01:00
Jerry (Xinyu Hou)
bbb652e504
#2765 Added unit test for modifier mapping
2016-09-26 11:58:33 +01:00
Jerry (Xinyu Hou)
cc10e319d1
#3305 Resolved namespace issue
2016-09-26 11:58:33 +01:00
Jerry (Xinyu Hou)
b62de406e2
#3305 Refactor MockKeyState into a separate class
2016-09-26 11:58:33 +01:00
Jerry (Xinyu Hou)
82d2a9564e
#3305 Made mock match to the original KeyState
2016-09-26 11:58:33 +01:00
Jerry (Xinyu Hou)
d9a6c14170
#3305 Used Mac native way to simulate media keys
2016-09-26 11:58:33 +01:00
Jerry (Xinyu Hou)
fbd2c1413e
Merge branch 'jerry-sandbox2'
2015-11-23 09:54:05 -08:00
XinyuHou
ebec92fd5b
Fix unit test failed compiling on Linux #5030
2015-11-19 13:46:47 -08:00
Jerry (Xinyu Hou)
c23d443a9a
Add unit tests for DpiHelper
2015-11-19 13:46:47 -08:00
Jerry (Xinyu Hou)
8c4ccdf148
Unit test for new fields in serial key #4715
2015-11-12 10:08:55 -08:00
Jerry (Xinyu Hou)
73ac3df22d
Limit expired time to trial version #4716
2015-10-30 11:41:51 -07:00
Jerry (Xinyu Hou)
942dcabdcd
Add split empty string unit test #4933
2015-10-29 15:11:09 -07:00
Jerry (Xinyu Hou)
c148fbb7f4
Fix unit tests name convention #4933
2015-10-29 13:08:00 -07:00
Jerry (Xinyu Hou)
d429988e73
Add more unit tests for split string function #4933
2015-10-29 13:00:03 -07:00
Jerry (Xinyu Hou)
1b73b8875b
Add unit tests for split string function #4933
2015-10-29 12:53:15 -07:00
Jerry (Xinyu Hou)
da315ec164
Add unit tests for subscription manager #4715
2015-10-23 11:35:58 -07:00
Jerry (Xinyu Hou)
de49b46edd
Expected hasClients at least 3 times #4721
2015-07-31 13:56:19 -07:00
Jerry (Xinyu Hou)
a5c865913f
Added expect call time for hasClients #4721
2015-07-31 13:55:09 -07:00
Jerry (Xinyu Hou)
c3d38db053
Made buffer thread wait for notify when no gui #4721
2015-07-31 13:55:00 -07:00
Jerry (Xinyu Hou)
5ec9ccc76e
Revert "Made buffer thread wait until there is a GUI client #4721 "
...
This reverts commit 9a4327e44236c0ac30809660dc87a97e984dc84f.
2015-07-31 13:52:56 -07:00
Jerry (Xinyu Hou)
01526bbe78
Revert "Removed unrelated checking #4721 "
...
This reverts commit 2de276cfca71a79df31a1d4a89d412212279a1a5.
2015-07-31 13:52:47 -07:00
Xinyu Hou
88214a0d3c
Removed unrelated checking #4721
2015-07-31 13:49:42 -07:00
Xinyu Hou
afdcb9cefe
Made buffer thread wait until there is a GUI client #4721
...
Conflicts:
src/lib/ipc/IpcLogOutputter.cpp
2015-07-31 13:49:17 -07:00
Jerry (Xinyu Hou)
a8cf9173c8
Revert "Changed note to notify #4745 "
...
This reverts commit 5006adedfe .
Conflicts:
src/test/unittests/ipc/IpcLogOutputterTests.cpp
2015-07-31 13:19:17 -07:00
Nick Bolton
f94e1e1660
Disabled intermittently failing unit test #4651
2015-06-10 07:04:58 -07:00
Jerry (Xinyu Hou)
f36d257495
Updated the comments
2015-06-09 15:48:08 -07:00
Jerry (Xinyu Hou)
81acb96540
Tried to fix random unittest fail (part2)
2015-06-09 15:33:57 -07:00
Jerry (Xinyu Hou)
deb3db93e6
Tried to fix random unittest fail
2015-06-09 13:59:04 -07:00
Jerry (Xinyu Hou)
4508e10186
Fixed IpcLogOutputterTest #4721
2015-06-03 15:23:33 -07:00
Jerry (Xinyu Hou)
c4e8dc7198
Merge remote-tracking branch 'origin/master' into jerry-sandbox
2015-06-02 15:30:33 -07:00
Jerry (Xinyu Hou)
5006adedfe
Changed note to notify #4745
2015-06-01 14:46:08 -07:00
Jerry (Xinyu Hou)
bd3a8e9429
Fixed unittest for ipcLogOutputter #4721
2015-05-29 17:48:53 -07:00
Nick Bolton
b71c298163
Changed sleep time to 100ms for unit test (hack) #4651
2015-05-25 15:25:14 +01:00
Jerry (Xinyu Hou)
c22e327eed
Merge remote-tracking branch 'origin/master' into jerry-sandbox
2015-05-21 11:37:42 -07:00
Nick Bolton
561204b2a7
Disabled threading on most IPC logging tests #4624
...
Threading was making it very hard to reliably run the IPC logging tests
(many timing issues), so I disabled threading for most of the tests.
2015-05-20 17:42:07 +01:00
Nick Bolton
89a977da66
Positive tests for IPC logging #4624
...
So far I had only tested what happens when the limits are exceeded.
These new tests are for when usage is within limits.
2015-05-20 16:16:22 +01:00
Nick Bolton
a710b2752b
Reintroduced sleep for really fast computers #4624
2015-05-20 16:07:09 +01:00
Nick Bolton
9636af61d6
Solution attempt for timing bugs in write_bufferRateLimit
...
It's probably better to wait until the buffer is sent, rather than
waiting until its empty. To test the output it has to be sent, but
because of timing, it may be emptied at any point.
2015-05-20 15:51:07 +01:00
Jerry (Xinyu Hou)
2c74a7f5c1
Added stringToSizeType and its unittest #4601
2015-05-19 14:23:43 -07:00
Jerry (Xinyu Hou)
00ceda55dc
Merge remote-tracking branch 'origin/master' into jerry-sandbox
2015-05-19 11:37:45 -07:00
Jerry (Xinyu Hou)
c674642181
Used StreamChunker for clipboard and file transfer #4601
...
Clipboard is not handled at this point
2015-05-19 09:30:35 -07:00
Nick Bolton
2cce60f672
Fixed sleep timing on IPC log rate limit unit tests #4624
...
Still a little hacky, but seems stable on my dev machine
2015-05-19 10:41:04 +01:00
Nick Bolton
62a501066f
Disabled IPC logging tests for Mac and Linux #4624
...
This is a bit hacky, but IPC logging isn't used on Mac and Linux anyway,
and we're hopefully going to remove it.
2015-05-18 18:19:43 +01:00
Nick Bolton
9f577ca4f3
Added rate limiting to IPC logging #4624
2015-05-18 18:06:58 +01:00
Nick Bolton
b27b236c07
Disabled failing IPC tests for Mac #4651
2015-05-18 16:39:54 +01:00
Nick Bolton
2e3769c7a6
Added failing test for IpcLogOutputter::write(...) #4651
...
- Changed behavior of close() to stop the buffer thread
- Fixed code style in IpcLogOutputter.cpp
- Changed MAX_SEND macro to enum
- Added Doxygen @name sections
2015-05-15 14:43:42 +01:00
Nick Bolton
134a15ea8d
Modified IpcServer to be mockable #4651
...
Also started IpcLogOutputterTests
2015-05-14 18:01:39 +01:00
Nigel Armstrong
d71304ee55
Modified header of every file COPYING to LICENSE
...
Modified to match the updated name of the license file
2015-05-06 22:12:44 -04:00
XinyuHou
1f0adb0d7b
Fixed warning on Linux #4570
2015-05-06 12:11:12 +01:00
XinyuHou
c168721d2f
Added deprecated args handling #4570
2015-05-06 11:57:42 +01:00
XinyuHou
dd574c4f2c
Added unit tests for string operations
2015-04-14 17:51:50 +01:00
XinyuHou
80343c41eb
deleted old home brew crypto #4313
2015-02-11 11:12:54 +00:00
Nick Bolton
41d6080028
changed company name in copyright notice
2014-11-11 13:52:03 +00:00
Nick Bolton
e8e156f0e2
dropped "c" prefix from class names
2014-11-11 13:51:47 +00:00
Xinyu Hou
e26ccfdce6
Parse arg refactoring #4124
...
Added unit testing
2014-10-22 16:52:08 +01:00
Nick Bolton
0745d5884b
Task #3969 - Merge String.cpp and StringUtil.cpp
2014-03-21 08:32:36 +00:00
Nick Bolton
e34e39a41c
fixed XArchEvalUnix using wrong memeber, string_format using c++11 (which we're not ready for yet), code style (indentation and new lines)
2014-03-20 13:34:21 +00:00
Nick Bolton
ad8905ccbf
fixed: silenced gtest warning on osx106
2014-02-28 13:56:07 +00:00
Nick Bolton
4675f29a4c
code style fixes:
...
- reordered includes to prevent accidental dependencies.
- moved arch specific files into their own folder (easier to include with cmake).
- renamed non-class files to reflect new code style (lower case with underscores).
- using full relative paths for includes (easier for understanding dependencies).
- using #pragma once instead of classic-style header guards.
2014-02-28 12:36:45 +00:00
Nick Bolton
8e74710dad
code style: dropped C prefix
2014-02-27 17:45:17 +00:00
Nick Bolton
f11c660efb
used glob instead of manually specifying files. cmake does not recommend this, but we always re-run cmake anyway after adding files since we use vs.
2014-02-26 17:46:02 +00:00
Nick Bolton
50a4f310c9
moved tools to ext - makes more sense, as it contains external libs, not tools
2014-02-26 16:52:54 +00:00
Nick Bolton
8d6a44d1b7
fixed: osx106 warnings
2014-02-26 15:53:28 +00:00
Nick Bolton
c44971b43d
fixed: warnings on mac os x
2014-02-25 15:03:43 +00:00
Nick Bolton
77676d558e
potential fix for unit/integ test false positives
2014-02-24 13:45:43 +00:00
Nick Bolton
75d2c5abf1
fixed: nothing happens on osx 10.6
2014-02-17 19:38:26 +00:00
Nick Bolton
af04f8b2ef
reverted failure test for buildbot.
2013-08-30 18:51:01 +00:00
Nick Bolton
46a33b2d97
fixed: return value from last commit - should be 1, not 0.
2013-08-30 18:39:10 +00:00
Nick Bolton
fcf5940c67
fixed: missing return value from last commit.
2013-08-30 17:53:34 +00:00
Nick Bolton
7b217abe21
temp fail for unit tests to test buildbot failure email
2013-08-30 17:35:37 +00:00
Nick Bolton
024f66e25e
fixed unit tests, changed modes to cfb (other modes have been removed).
2013-08-30 15:20:36 +00:00
jerry
ce1b62db14
Feature to drag a file from Windows to Mac:
...
- On Mac client main thread is used for cocoa application in order to simulate drag.
- Send dragging file dir from Windows server to Mac client while dragging after switching screen.
- Dragging information sending is immature now (need to support multi files dragging in the future).
- Used Cocoa function to monitor dragg pasteboard.
- Changed Mac client to use another thread for event queue instead of the main thread.
- Change fileRecieveComplete to fileRecieveCompleted.
2013-08-30 14:38:43 +00:00
jerry
dab838ed14
- renamed synrgyhk.dll to synwinhk.dll and moved lib code to separate folder.
...
- removed game device support (fallen into significant disrepair).
2013-08-02 13:21:06 +00:00
Nick Bolton
394ece004a
Patch by Jerry:
...
- Fixed line endings
- Integ test for file transfer
- Fixed crashed problem when log info is larger than 2048 bytes
- Fixed compile error caused by std exception (by Feng ye)
- Fixed include path on Mac and linux (by Feng ye)
2013-07-24 16:41:12 +00:00
Nick Bolton
c368013f13
Patch by Jerry for issue 46:
...
- Unit test for sending file data from server to client.
- Removed singleton pattern from CSocketMultiplexer for easier unit testing.
- Incremented protocol version from 1.4 to 1.5 (new file chunk message).
- Storing pointer to CConfig instead of copying in CServer (so we can mock it).
- Created a common event queue for testing (timeout, quit event, etc).
- Fixed code style.
2013-07-16 19:02:30 +00:00
Nick Bolton
608074c041
- made unit testing easier by (mostly) removing the event queue singleton.
...
- fixed code style in many places (mostly indentation).
2013-06-29 14:17:49 +00:00
Nick Bolton
65b8f480e8
fixed: code style in unit test (missing g_)
2013-05-01 15:57:46 +00:00
Nick Bolton
4fffe2dad1
fixed: unit test name did not match compilation unit
2013-05-01 15:54:32 +00:00
Nick Bolton
e8ed977a8f
fixed: issue 3565 - encryption fails with heavy network traffic.
...
changed encrypt and decrypt to be asymmetrical (iv change now applies only in one direction).
2013-05-01 15:53:22 +00:00
Nick Bolton
119d4cfa11
fixed: function name conflict on mac
2013-05-01 15:46:15 +00:00
Nick Bolton
bb3dd1611c
fixed readWriteIvChanged unit test to match new behaviour of newIv.
2013-04-11 23:45:55 +00:00
Nick Bolton
607f8c9321
fixed: new iv was used before it was sent to the client, so the client could not decrypt new iv.
2013-04-11 22:30:24 +00:00
Nick Bolton
bae07f8cd5
test for generating keys from longer passwords.
2013-04-11 21:52:45 +00:00
Nick Bolton
e84f111f35
changed unit test IVs so that \0 isn't used (logs look less confusing).
2013-04-11 06:16:15 +00:00
Nick Bolton
1dccfe6c53
fixed: real server dtor being called (we forgot to set m_mock - FUUUUUUUU). also added quick and dirty backtrace for osx, since we keep accidentally calling that singleton in unit tests... could be handy, we should consider refactoring into a func maybe.
2013-04-11 05:50:59 +00:00
Nick Bolton
c0dcdd52e7
fixed: crypto++ compile errors, linux compiler syntax bugs, and code style (spaces -> tabs)
2013-04-11 00:30:41 +00:00
Nick Bolton
650da22c33
fixed buffer overrun bugs in unit tests.
2013-04-10 17:30:21 +00:00
Nick Bolton
72cbcd70c0
fixed unit tests, buffer indexes were not reset, caused tests to fail on 2nd repeat.
2013-04-10 12:14:59 +00:00
Nick Bolton
880819fab7
Jerry's patch for password hash and custom mode (via command line).
2013-04-09 21:57:07 +00:00
Nick Bolton
7010de9cc4
sending IV to client before DKDN, DKUP and DKRP (the most sensitive messages). unit tests to support changes. made crypto stream tests a bit less spammy by using NiceMock.
2013-04-09 18:56:19 +00:00
Nick Bolton
23998fc06c
unit tests for IV change.
2013-04-08 18:35:23 +00:00
Nick Bolton
b2746bc1b2
added unit test to make sure IV works as we expect.
2013-04-08 13:01:21 +00:00
Nick Bolton
0a69c28ac5
implemented crypto stream, with some extra unit tests
2013-04-05 16:33:48 +00:00
Nick Bolton
3aaebd9e50
Patch by Jerry:
...
* wrote CCryptoStream and supporting unit tests
* changed CStreamFilter to accept CMockEventQueue
* changed CStreamFilter's dtor to virtual because it is inherited
2013-04-04 16:17:25 +00:00
Nick Bolton
7040905632
crypto++ -- upgraded to 5.6.2 and added zip to svn instead of individual source files (easier to manage). also added unit test to prove that linking works well on windows.
2013-04-03 12:59:02 +00:00
Nick Bolton
c8ea071d78
comment out crypto stuff, for now (only compiles on windows)
2013-01-05 22:50:34 +00:00
Nick Bolton
a11b68c988
uncommented crypto tests and fixed line endings
2012-11-30 01:07:04 +00:00
Nick Bolton
13c10cbad3
fixed: line endings
2012-11-30 01:00:40 +00:00
Nick Bolton
b322ade68c
fixed: rogue include
2012-11-29 23:50:03 +00:00
Nick Bolton
bd6b9f6b90
added crypto++ library and example authenticated encryption unit test (CCryptoTests)
2012-11-29 23:27:02 +00:00
Nick Bolton
7f6eca9eb4
corrected license and author attribution (cs 2002-2012, nb 2008-2012)
2012-09-04 02:09:56 +00:00
Nick Bolton
f26e7b0d97
fixed unit tests (log not initialized)
2012-07-10 13:55:05 +00:00
Nick Bolton
3d6551f708
moved stream into synergy namespace (to prevent naming collision in win libs)
...
implemented ipc "hello" message (to identify client type)
integ tests working for hello message, but use of ipc in main program has problem with events.
2012-07-05 18:05:35 +00:00
Nick Bolton
218e98398f
ipc client connect test with working unit tests.
2012-06-29 11:33:21 +00:00
Nick Bolton
488241850c
moving 1.4 to trunk
2012-06-10 16:50:54 +00:00
Nick Bolton
e65886857d
removed trunk; please commit to (and build patches against) release branches instead.
2011-10-05 00:10:22 +00:00
Nick Bolton
2fe11744cf
merged 1.4 r1043:1044 into trunk
2011-06-18 23:44:23 +00:00
Nick Bolton
5a315324ca
merged 1.4 r1007:1008 into trunk
2011-05-21 00:30:08 +00:00
Nick Bolton
81b5124e58
merged 1.3 r985:986 into trunk and 1.4
2011-05-11 21:12:20 +00:00
Nick Bolton
901d939267
removed more windwows line endings
2011-05-11 21:07:22 +00:00
Nick Bolton
13c6c36107
merged 1.4 r982:983 into trunk
2011-05-09 00:28:45 +00:00
Nick Bolton
edeae477e1
implemented google mock config and gave it a quick try (see: add_newValue_writeWasCalled)
2011-05-07 02:12:09 +00:00
Nick Bolton
b5fa1a086e
fixed gtest paths for linux
2011-04-28 12:10:57 +00:00
Nick Bolton
2155247425
split up bin and lib dirs from build dir
2011-04-28 10:42:36 +00:00
Nick Bolton
40b5a98790
moved integ and unit tests into test dir
2011-04-28 10:24:02 +00:00