Make all current written tests pass

Fixes a couple of issues with the tests.
Also, a type in prefs.h is "short" while it's actually
a boolean, this made me write the wrong testcase for this.

Fixed this by setting the Qt wrapper to bool, but I didn't
changed the c implementation because I tought I could break
something.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-10-15 20:26:34 +02:00 committed by Dirk Hohndel
parent c1fbc70d83
commit 9c4b0170bf
3 changed files with 11 additions and 11 deletions

View file

@ -866,7 +866,7 @@ int ProxySettings::port() const
return prefs.proxy_port;
}
short ProxySettings::auth() const
bool ProxySettings::auth() const
{
return prefs.proxy_auth;
}
@ -915,7 +915,7 @@ void ProxySettings::setPort(int value)
emit portChanged(value);
}
void ProxySettings::setAuth(short value)
void ProxySettings::setAuth(bool value)
{
if (value == prefs.proxy_auth)
return;