mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-26 22:03:24 +08:00
- 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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -61,7 +61,6 @@ public:
|
||||
MOCK_METHOD0(forIKeyState, IKeyStateEvents&());
|
||||
MOCK_METHOD0(forIPrimaryScreen, IPrimaryScreenEvents&());
|
||||
MOCK_METHOD0(forIScreen, IScreenEvents&());
|
||||
MOCK_METHOD0(forISecondaryScreen, ISecondaryScreenEvents&());
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user