~xavi-garcia-mena/storage-provider-webdav/base-url-host-fix

« back to all changes in this revision

Viewing changes to src/OwncloudProvider.cpp

  • Committer: Tarmac
  • Author(s): James Henstridge
  • Date: 2016-09-23 05:03:11 UTC
  • mfrom: (7.1.13 provider-test-fixture)
  • Revision ID: tarmac-20160923050311-bb3m6zal58cpccqu
Add test infrastructure for testing DavProvider.

Approved by Michi Henning, unity-api-1-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "OwncloudProvider.h"
2
2
 
 
3
#include <QUrl>
 
4
 
3
5
using namespace std;
4
6
using namespace unity::storage::provider;
5
7
 
9
11
 
10
12
OwncloudProvider::~OwncloudProvider() = default;
11
13
 
12
 
string OwncloudProvider::base_url(Context const& ctx) const
 
14
QUrl OwncloudProvider::base_url(Context const& ctx) const
13
15
{
14
 
    return "http://whatever.com/";
 
16
    return QUrl("http://whatever.com/");
15
17
}
16
18
 
17
19
void OwncloudProvider::add_credentials(QNetworkRequest *request,