forked from organicmaps/organicmaps
Minor changes.
This commit is contained in:
parent
7096a9d438
commit
19cebe3a73
2 changed files with 8 additions and 20 deletions
|
@ -1,22 +1,13 @@
|
|||
#include "../../testing/testing.hpp"
|
||||
#include "../mwm_set.hpp"
|
||||
|
||||
#include "../../coding/file_container.hpp"
|
||||
|
||||
#include "../../platform/platform.hpp"
|
||||
|
||||
namespace
|
||||
{
|
||||
class MwmValue : public MwmSet::MwmValueBase
|
||||
{
|
||||
FilesContainerR m_cont;
|
||||
public:
|
||||
MwmValue(string const & name) : m_cont(name) {}
|
||||
};
|
||||
} // unnamed namespace
|
||||
class MwmValue : public MwmSet::MwmValueBase
|
||||
{
|
||||
};
|
||||
|
||||
namespace
|
||||
{
|
||||
class TestMwmSet : public MwmSet
|
||||
{
|
||||
protected:
|
||||
|
@ -27,15 +18,14 @@ namespace
|
|||
}
|
||||
virtual MwmValue * CreateValue(string const &) const
|
||||
{
|
||||
return new MwmValue(GetPlatform().WritablePathForFile("minsk-pass.mwm"));
|
||||
}
|
||||
virtual void DestroyValue(MwmValue * p) const
|
||||
{
|
||||
delete p;
|
||||
return new MwmValue();
|
||||
}
|
||||
|
||||
public:
|
||||
~TestMwmSet() { Cleanup(); }
|
||||
~TestMwmSet()
|
||||
{
|
||||
Cleanup();
|
||||
}
|
||||
};
|
||||
} // unnamed namespace
|
||||
|
||||
|
|
|
@ -74,8 +74,6 @@ protected:
|
|||
void Cleanup();
|
||||
|
||||
private:
|
||||
friend class MwmLock;
|
||||
|
||||
static const MwmId INVALID_MWM_ID = static_cast<MwmId>(-1);
|
||||
|
||||
typedef deque<pair<MwmId, MwmValueBase *> > CacheType;
|
||||
|
|
Loading…
Add table
Reference in a new issue