summaryrefslogtreecommitdiff
path: root/src/unittests/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-28 02:36:11 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-28 02:36:11 +0300
commit28e53f73dff6f889a9eaeb69d19767dfc71afddd (patch)
treed3d638be1ddeb179937aca805c2be95a30ebe445 /src/unittests/resources
parent2134c91e8f9793d07206febf22d5310132f3bc7e (diff)
downloadplus-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.gz
plus-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.bz2
plus-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.xz
plus-28e53f73dff6f889a9eaeb69d19767dfc71afddd.zip
Fix unit tests compilation.
Diffstat (limited to 'src/unittests/resources')
-rw-r--r--src/unittests/resources/map/speciallayer.cc2
-rw-r--r--src/unittests/resources/resourcemanager/resourcemanager.cc6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/unittests/resources/map/speciallayer.cc b/src/unittests/resources/map/speciallayer.cc
index 2e72d6e19..ce8714458 100644
--- a/src/unittests/resources/map/speciallayer.cc
+++ b/src/unittests/resources/map/speciallayer.cc
@@ -279,7 +279,7 @@ TEST_CASE("SpecialLayer updateCache", "")
}
delete layer;
- ResourceManager::cleanOrphans();
+ ResourceManager::cleanOrphans(false);
delete2(userPalette);
delete2(theme);
delete2(client);
diff --git a/src/unittests/resources/resourcemanager/resourcemanager.cc b/src/unittests/resources/resourcemanager/resourcemanager.cc
index 4b67af82e..5e240e65d 100644
--- a/src/unittests/resources/resourcemanager/resourcemanager.cc
+++ b/src/unittests/resources/resourcemanager/resourcemanager.cc
@@ -265,7 +265,7 @@ TEST_CASE("resourcemanager", "resourcemanager")
REQUIRE(ResourceManager::getDeletedResources().empty() == true);
sleep(33);
- ResourceManager::cleanOrphans();
+ ResourceManager::cleanOrphans(false);
REQUIRE(ResourceManager::isInCache("test1") == false);
REQUIRE(testResouceCounter == 0);
REQUIRE(ResourceManager::getResources().size() == 0 + resSize);
@@ -647,7 +647,7 @@ TEST_CASE("resourcemanager", "resourcemanager")
REQUIRE(ResourceManager::getOrphanedResources().empty() == true);
REQUIRE(ResourceManager::getDeletedResources().size() == 1);
- ResourceManager::clearDeleted();
+ ResourceManager::clearDeleted(true);
REQUIRE(testResouceCounter == 1);
REQUIRE(res->mRefCount == 1);
REQUIRE(ResourceManager::getResources().size() == 0 + resSize);
@@ -678,7 +678,7 @@ TEST_CASE("resourcemanager", "resourcemanager")
REQUIRE(ResourceManager::getDeletedResources().size() == 1);
res->decRef();
- ResourceManager::clearDeleted();
+ ResourceManager::clearDeleted(true);
REQUIRE(testResouceCounter == 0);
REQUIRE(ResourceManager::getResources().size() == 0 + resSize);
REQUIRE(ResourceManager::getOrphanedResources().empty() == true);