- renamed synrgyhk.dll to synwinhk.dll and moved lib code to separate folder.

- removed game device support (fallen into significant disrepair).
This commit is contained in:
jerry
2013-08-02 13:21:06 +00:00
parent 289f1ff71f
commit dab838ed14
77 changed files with 91 additions and 2859 deletions

View File

@@ -59,6 +59,7 @@ set(inc
../../lib/platform
../../lib/server
../../lib/synergy
../../lib/synwinhk
../../../tools/gtest-1.6.0/include
../../../tools/gmock-1.6.0/include
../unittests
@@ -70,12 +71,6 @@ if (UNIX)
)
endif()
if (WIN32)
if (GAME_DEVICE_SUPPORT)
link_directories("$ENV{DXSDK_DIR}/Lib/x86")
endif()
endif()
include_directories(${inc})
add_executable(integtests ${src})
target_link_libraries(integtests

View File

@@ -398,7 +398,7 @@ NetworkTests::sendMockData(void* eventTarget)
{
// send first message (file size)
CString size = intToString(kMockDataSize);
UInt32 sizeLength = size.size();
size_t sizeLength = size.size();
CFileChunker::CFileChunk* sizeMessage = new CFileChunker::CFileChunk(sizeLength + 2);
char* chunkData = sizeMessage->m_chunk;
@@ -461,13 +461,13 @@ newMockData(size_t size)
memcpy(data, head, headSize);
data += headSize;
SInt32 times = (size - headSize - tailSize) / synergyRocksSize;
size_t times = (size - headSize - tailSize) / synergyRocksSize;
for (SInt32 i = 0; i < times; ++i) {
memcpy(data, synergyRocks, synergyRocksSize);
data += synergyRocksSize;
}
SInt32 remainder = (size - headSize - tailSize) % synergyRocksSize;
size_t remainder = (size - headSize - tailSize) % synergyRocksSize;
if (remainder != 0) {
memset(data, '.', remainder);
data += remainder;

View File

@@ -41,8 +41,8 @@ class CMSWindowsKeyStateTests : public ::testing::Test
protected:
virtual void SetUp()
{
// load synrgyhk.dll
m_hookLibrary = m_hookLibraryLoader.openHookLibrary("synrgyhk");
// load synwinhk.dll
m_hookLibrary = m_hookLibraryLoader.openHookLibrary("synwinhk");
m_screensaver = new CMSWindowsScreenSaver();
}

View File

@@ -62,12 +62,6 @@ if (UNIX)
)
endif()
if (WIN32)
if (GAME_DEVICE_SUPPORT)
link_directories("$ENV{DXSDK_DIR}/Lib/x86")
endif()
endif()
include_directories(${inc})
add_executable(unittests ${src})
target_link_libraries(unittests

View File

@@ -61,7 +61,6 @@ public:
MOCK_METHOD0(forIKeyState, IKeyStateEvents&());
MOCK_METHOD0(forIPrimaryScreen, IPrimaryScreenEvents&());
MOCK_METHOD0(forIScreen, IScreenEvents&());
MOCK_METHOD0(forISecondaryScreen, ISecondaryScreenEvents&());
};
#endif