From e9efc658bd937431319d6b7e8770a1399ccc5d71 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Mon, 19 Sep 2011 16:47:12 +0300 Subject: [PATCH] Partially fixed mwm_set unit test --- indexer/indexer_tests/mwm_set_test.cpp | 3 ++- indexer/mwm_set.hpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/indexer/indexer_tests/mwm_set_test.cpp b/indexer/indexer_tests/mwm_set_test.cpp index 68beabd2ea..73114995b4 100644 --- a/indexer/indexer_tests/mwm_set_test.cpp +++ b/indexer/indexer_tests/mwm_set_test.cpp @@ -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 diff --git a/indexer/mwm_set.hpp b/indexer/mwm_set.hpp index f592cfd7e3..3aeabd4a12 100644 --- a/indexer/mwm_set.hpp +++ b/indexer/mwm_set.hpp @@ -88,7 +88,7 @@ private: vector m_name; CacheType m_cache; size_t m_cacheSize; - function m_fnGetMwmInfo; - function const & m_fnCreateContainer; + function const m_fnGetMwmInfo; + function const m_fnCreateContainer; threads::Mutex m_lock; };