libnetservices.a: fix unit test builds after hrev54923
This commit is contained in:
@@ -8,7 +8,7 @@ SubDirHdrs [ FDirName $(HAIKU_TOP) src apps haikudepot server ] ;
|
||||
SubDirHdrs [ FDirName $(HAIKU_TOP) src apps haikudepot server dumpexportrepository ] ;
|
||||
SubDirHdrs [ FDirName $(HAIKU_TOP) src apps haikudepot util ] ;
|
||||
|
||||
UsePrivateHeaders shared interface ;
|
||||
UsePrivateHeaders interface netservices shared ;
|
||||
|
||||
local sourceDirs =
|
||||
model
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
#include <cppunit/TestSuite.h>
|
||||
|
||||
|
||||
using namespace BPrivate::Network;
|
||||
|
||||
|
||||
CookieTest::CookieTest()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -9,9 +9,14 @@
|
||||
#include <TestCase.h>
|
||||
#include <TestSuite.h>
|
||||
|
||||
|
||||
class BNetworkCookie;
|
||||
class BNetworkCookieJar;
|
||||
namespace BPrivate {
|
||||
namespace Network {
|
||||
class BNetworkCookie;
|
||||
class BNetworkCookieJar;
|
||||
}
|
||||
}
|
||||
using BPrivate::Network::BNetworkCookie;
|
||||
using BPrivate::Network::BNetworkCookieJar;
|
||||
class BUrl;
|
||||
|
||||
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
#include <cppunit/TestCaller.h>
|
||||
|
||||
|
||||
using namespace BPrivate::Network;
|
||||
|
||||
|
||||
// http://www-archive.mozilla.org/quality/networking/testing/datatests.html
|
||||
|
||||
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
#include <cppunit/TestSuite.h>
|
||||
|
||||
|
||||
using BPrivate::Network::BUrlProtocolListener;
|
||||
using BPrivate::Network::BUrlRequest;
|
||||
|
||||
|
||||
class DataTest: public BTestCase, BUrlProtocolListener {
|
||||
public:
|
||||
DataTest();
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
#include "TestServer.h"
|
||||
|
||||
|
||||
using namespace BPrivate::Network;
|
||||
|
||||
|
||||
class StopTestListener : public BUrlProtocolListener {
|
||||
public:
|
||||
StopTestListener() {}
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
#include <cppunit/TestSuite.h>
|
||||
|
||||
|
||||
using namespace BPrivate;
|
||||
using namespace BPrivate::Network;
|
||||
|
||||
|
||||
GeolocationTest::GeolocationTest()
|
||||
@@ -27,6 +27,9 @@
|
||||
#include "TestServer.h"
|
||||
|
||||
|
||||
using namespace BPrivate::Network;
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
typedef std::map<std::string, std::string> HttpHeaderMap;
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
SubDir HAIKU_TOP src tests kits net service ;
|
||||
|
||||
UsePrivateHeaders private shared ;
|
||||
UsePrivateHeaders netservices private shared ;
|
||||
|
||||
UnitTestLib servicekittest.so :
|
||||
ServiceKitTestAddon.cpp
|
||||
|
||||
CookieTest.cpp
|
||||
DataTest.cpp
|
||||
GeolocationTest.cpp
|
||||
HttpTest.cpp
|
||||
UrlTest.cpp
|
||||
FileTest.cpp
|
||||
TestServer.cpp
|
||||
|
||||
: be $(TARGET_NETWORK_LIBS) $(HAIKU_NETAPI_LIB) [ TargetLibstdc++ ]
|
||||
: be libnetservices.a shared $(TARGET_NETWORK_LIBS) $(HAIKU_NETAPI_LIB)
|
||||
[ TargetLibstdc++ ]
|
||||
;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "CookieTest.h"
|
||||
#include "DataTest.h"
|
||||
#include "GeolocationTest.h"
|
||||
#include "HttpTest.h"
|
||||
#include "UrlTest.h"
|
||||
#include "FileTest.h"
|
||||
@@ -24,6 +25,7 @@ getTestSuite()
|
||||
HttpTest::AddTests(*suite);
|
||||
DataTest::AddTests(*suite);
|
||||
FileTest::AddTests(*suite);
|
||||
GeolocationTest::AddTests(*suite);
|
||||
|
||||
return suite;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,6 @@ UnitTestLib libsharedtest.so :
|
||||
JsonErrorHandlingTest.cpp
|
||||
JsonTextWriterTest.cpp
|
||||
JsonToMessageTest.cpp
|
||||
GeolocationTest.cpp
|
||||
KeymapTest.cpp
|
||||
LRUCacheTest.cpp
|
||||
NaturalCompareTest.cpp
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
#include "CalendarViewTest.h"
|
||||
#include "DriverSettingsMessageAdapterTest.h"
|
||||
#include "GeolocationTest.h"
|
||||
#include "NaturalCompareTest.h"
|
||||
#include "JsonEndToEndTest.h"
|
||||
#include "JsonErrorHandlingTest.h"
|
||||
@@ -27,7 +26,6 @@ getTestSuite()
|
||||
|
||||
CalendarViewTest::AddTests(*suite);
|
||||
DriverSettingsMessageAdapterTest::AddTests(*suite);
|
||||
GeolocationTest::AddTests(*suite);
|
||||
NaturalCompareTest::AddTests(*suite);
|
||||
JsonEndToEndTest::AddTests(*suite);
|
||||
JsonErrorHandlingTest::AddTests(*suite);
|
||||
|
||||
Reference in New Issue
Block a user