[libcalamares] Apply coding style to remainder of geoip/
This commit is contained in:
parent
839e496fcb
commit
115f5bfd82
@ -34,21 +34,16 @@ QTEST_GUILESS_MAIN( GeoIPTests )
|
||||
|
||||
using namespace CalamaresUtils::GeoIP;
|
||||
|
||||
GeoIPTests::GeoIPTests()
|
||||
{
|
||||
}
|
||||
GeoIPTests::GeoIPTests() {}
|
||||
|
||||
GeoIPTests::~GeoIPTests()
|
||||
{
|
||||
}
|
||||
GeoIPTests::~GeoIPTests() {}
|
||||
|
||||
void
|
||||
GeoIPTests::initTestCase()
|
||||
{
|
||||
}
|
||||
|
||||
static const char json_data_attribute[] =
|
||||
"{\"time_zone\":\"Europe/Amsterdam\"}";
|
||||
static const char json_data_attribute[] = "{\"time_zone\":\"Europe/Amsterdam\"}";
|
||||
|
||||
void
|
||||
GeoIPTests::testJSON()
|
||||
@ -67,7 +62,8 @@ GeoIPTests::testJSON()
|
||||
QCOMPARE( tz.first, QStringLiteral( "America" ) );
|
||||
}
|
||||
|
||||
void GeoIPTests::testJSONalt()
|
||||
void
|
||||
GeoIPTests::testJSONalt()
|
||||
{
|
||||
GeoIPJSON handler( "zona_de_hora" );
|
||||
|
||||
@ -133,8 +129,8 @@ GeoIPTests::testXML()
|
||||
void
|
||||
GeoIPTests::testXML2()
|
||||
{
|
||||
static const char data[] =
|
||||
"<Response><TimeZone>America/North Dakota/Beulah</TimeZone></Response>"; // With a space!
|
||||
static const char data[]
|
||||
= "<Response><TimeZone>America/North Dakota/Beulah</TimeZone></Response>"; // With a space!
|
||||
|
||||
#ifdef QT_XML_LIB
|
||||
GeoIPXML handler;
|
||||
@ -146,7 +142,8 @@ GeoIPTests::testXML2()
|
||||
}
|
||||
|
||||
|
||||
void GeoIPTests::testXMLalt()
|
||||
void
|
||||
GeoIPTests::testXMLalt()
|
||||
{
|
||||
#ifdef QT_XML_LIB
|
||||
GeoIPXML handler( "ZT" );
|
||||
@ -173,7 +170,8 @@ GeoIPTests::testXMLbad()
|
||||
#endif
|
||||
}
|
||||
|
||||
void GeoIPTests::testSplitTZ()
|
||||
void
|
||||
GeoIPTests::testSplitTZ()
|
||||
{
|
||||
using namespace CalamaresUtils::GeoIP;
|
||||
auto tz = splitTZString( QStringLiteral( "Moon/Dark_side" ) );
|
||||
@ -227,7 +225,8 @@ synchronous_get( const char* urlstring )
|
||||
QCOMPARE( default_tz, tz2 ); \
|
||||
}
|
||||
|
||||
void GeoIPTests::testGet()
|
||||
void
|
||||
GeoIPTests::testGet()
|
||||
{
|
||||
if ( !QProcessEnvironment::systemEnvironment().contains( QStringLiteral( "TEST_HTTP_GET" ) ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user