Minor changes.

This commit is contained in:
vng 2011-09-22 22:56:07 +03:00 committed by Alex Zolotarev
parent 7096a9d438
commit 19cebe3a73
2 changed files with 8 additions and 20 deletions

View file

@ -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

View file

@ -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;