summaryrefslogtreecommitdiff
path: root/test/audiocacheidmanagertest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-03-26 14:17:49 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2024-03-26 14:36:16 +0100
commitbf7cb30a61bbb59790dd7a3dfa81945f9f1b0e61 (patch)
treed482c452a4a92d872d0e2e902bef907f3767d2f2 /test/audiocacheidmanagertest.cc
parent6e461de50e73c0c957af73e5ee7a25f4d0293490 (diff)
Linter fixes for audiocacheeventhendler.cc and audiocacheidmanager.cc
Diffstat (limited to 'test/audiocacheidmanagertest.cc')
-rw-r--r--test/audiocacheidmanagertest.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/audiocacheidmanagertest.cc b/test/audiocacheidmanagertest.cc
index c84926b..9d8be25 100644
--- a/test/audiocacheidmanagertest.cc
+++ b/test/audiocacheidmanagertest.cc
@@ -52,39 +52,39 @@ public:
TestableAudioCacheIDManager manager;
manager.init(2);
- cache_t c1; c1.afile = (AudioCacheFile*)1;
+ CacheBuffer c1; c1.afile = (AudioCacheFile*)1;
auto id1 = manager.registerID(c1);
uUNIT_ASSERT(id1 != CACHE_DUMMYID);
uUNIT_ASSERT(id1 != CACHE_NOID);
uUNIT_ASSERT_EQUAL(1, manager.getAvailableIDs());
- cache_t c2; c2.afile = (AudioCacheFile*)2;
+ CacheBuffer c2; c2.afile = (AudioCacheFile*)2;
auto id2 = manager.registerID(c2);
uUNIT_ASSERT(id2 != CACHE_DUMMYID);
uUNIT_ASSERT(id2 != CACHE_NOID);
uUNIT_ASSERT_EQUAL(0, manager.getAvailableIDs());
- cache_t c3; c3.afile = (AudioCacheFile*)3;
+ CacheBuffer c3; c3.afile = (AudioCacheFile*)3;
auto id3 = manager.registerID(c3);
uUNIT_ASSERT(id3 == CACHE_DUMMYID);
uUNIT_ASSERT_EQUAL(0, manager.getAvailableIDs());
- cache_t& tc1 = manager.getCache(id1);
+ CacheBuffer& tc1 = manager.getCache(id1);
uUNIT_ASSERT_EQUAL(c1.afile, tc1.afile);
- cache_t& tc2 = manager.getCache(id2);
+ CacheBuffer& tc2 = manager.getCache(id2);
uUNIT_ASSERT_EQUAL(c2.afile, tc2.afile);
manager.releaseID(id1);
uUNIT_ASSERT_EQUAL(1, manager.getAvailableIDs());
- cache_t c4; c4.afile = (AudioCacheFile*)4;
+ CacheBuffer c4; c4.afile = (AudioCacheFile*)4;
auto id4 = manager.registerID(c4);
uUNIT_ASSERT(id4 != CACHE_DUMMYID);
uUNIT_ASSERT(id4 != CACHE_NOID);
uUNIT_ASSERT_EQUAL(0, manager.getAvailableIDs());
- cache_t& tc4 = manager.getCache(id4);
+ CacheBuffer& tc4 = manager.getCache(id4);
uUNIT_ASSERT_EQUAL(c4.afile, tc4.afile);
manager.releaseID(id2);