Partially fixed mwm_set unit test

This commit is contained in:
Alex Zolotarev 2011-09-19 16:47:12 +03:00 committed by Alex Zolotarev
parent 8469539492
commit e9efc658bd
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,7 @@
#include "../../testing/testing.hpp"
#include "../mwm_set.hpp"
#include "../../coding/file_container.hpp"
#include "../../platform/platform.hpp"
namespace
{
@ -11,7 +12,7 @@ void SetMwmInfoForTest(string const & path, MwmInfo & info)
}
FilesContainerR * CreateFileContainerForTest(string const &)
{
return new FilesContainerR("minsk-pass.mwm");
return new FilesContainerR(GetPlatform().WritablePathForFile("minsk-pass.mwm"));
}
} // unnamed namespace

View file

@ -88,7 +88,7 @@ private:
vector<string> m_name;
CacheType m_cache;
size_t m_cacheSize;
function<void (string const &, MwmInfo &)> m_fnGetMwmInfo;
function<FilesContainerR * (string const &)> const & m_fnCreateContainer;
function<void (string const &, MwmInfo &)> const m_fnGetMwmInfo;
function<FilesContainerR * (string const &)> const m_fnCreateContainer;
threads::Mutex m_lock;
};