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