NOISSUE Make tests no longer use the MultiMC object

They do not require the application part anymore
This commit is contained in:
Petr Mrázek
2015-01-31 19:21:47 +01:00
parent 6f3aa65bd6
commit 9249768db5
12 changed files with 54 additions and 66 deletions

View File

@ -4,11 +4,12 @@
#include <QNetworkProxy>
#include <QNetworkAccessManager>
#include "logger/QsLog.h"
#include "MultiMC.h"
#include <QDebug>
Env::Env()
{
// null
m_qnam = std::make_shared<QNetworkAccessManager>();
}
void Env::destroy()
@ -23,6 +24,18 @@ Env& Env::Env::getInstance()
return instance;
}
std::shared_ptr< HttpMetaCache > Env::metacache()
{
Q_ASSERT(m_metacache != nullptr);
return m_metacache;
}
std::shared_ptr< QNetworkAccessManager > Env::qnam()
{
return m_qnam;
}
void Env::initHttpMetaCache(QString rootPath, QString staticDataPath)
{
m_metacache.reset(new HttpMetaCache("metacache"));