skeleton for new ipc code.

This commit is contained in:
Nick Bolton
2012-06-28 07:29:06 +00:00
parent 0c42964f3a
commit 7d8fd5927d
12 changed files with 318 additions and 9 deletions

View File

@@ -0,0 +1,38 @@
/*
* synergy -- mouse and keyboard sharing utility
* Copyright (C) 2012 Nick Bolton
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* found in the file COPYING that should have accompanied this file.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <gtest/gtest.h>
#include "CIpcServer.h"
#include "CIpcClient.h"
TEST(CIpcTests, serverSend)
{
CIpcServer server;
server.listen();
CIpcClient client;
client.connect();
}
TEST(CIpcTests, clientSend)
{
CIpcServer server;
server.listen();
CIpcClient client;
client.connect();
}

View File

@@ -15,34 +15,27 @@
set(src
Main.cpp
CIpcTests.cpp
)
if (WIN32)
# windows
list(APPEND src
platform/CMSWindowsClipboardTests.cpp
platform/CMSWindowsKeyStateTests.cpp
)
elseif (APPLE)
# mac
list(APPEND src
platform/COSXClipboardTests.cpp
platform/COSXKeyStateTests.cpp
)
elseif (UNIX)
# unix/linux
list(APPEND src
platform/CXWindowsClipboardTests.cpp
platform/CXWindowsKeyStateTests.cpp
platform/CXWindowsScreenTests.cpp
platform/CXWindowsScreenSaverTests.cpp
)
endif()
set(inc
@@ -51,6 +44,7 @@ set(inc
../../lib/client
../../lib/common
../../lib/io
../../lib/ipc
../../lib/mt
../../lib/net
../../lib/platform
@@ -76,4 +70,4 @@ endif()
include_directories(${inc})
add_executable(integtests ${src})
target_link_libraries(integtests
arch base client common io mt net platform server synergy gtest gmock ${libs})
arch base client common io ipc mt net platform server synergy gtest gmock ${libs})