Fix unit tests for android build

This commit is contained in:
Jörg-Christian Böhme
2018-03-04 21:26:08 +01:00
parent 73897b4357
commit 181fc0eea3
10 changed files with 29 additions and 29 deletions

View File

@@ -291,7 +291,7 @@ void MongoDBTest::testBuildInfo()
void MongoDBTest::testConnectionPool()
{
#ifdef POCO_ANDROID
#if POCO_OS == POCO_OS_ANDROID
std::string host = "10.0.2.2";
#else
std::string host = "127.0.0.1";
@@ -406,7 +406,7 @@ void MongoDBTest::testConnectURI()
Poco::MongoDB::Connection conn;
Poco::MongoDB::Connection::SocketFactory sf;
#ifdef POCO_ANDROID
#if POCO_OS == POCO_OS_ANDROID
std::string host = "10.0.2.2";
#else
std::string host = "127.0.0.1";
@@ -454,7 +454,7 @@ void MongoDBTest::testConnectURI()
CppUnit::Test* MongoDBTest::suite()
{
#ifdef POCO_ANDROID
#if POCO_OS == POCO_OS_ANDROID
std::string host = "10.0.2.2";
#else
std::string host = "127.0.0.1";