1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /***************************************************************************
3  *            audiocacheeventhandlertest.cc
4  *
5  *  Thu Jan  7 15:44:14 CET 2016
6  *  Copyright 2016 Bent Bisballe Nyeng
7  *  deva@aasimon.org
8  ****************************************************************************/
9 
10 /*
11  *  This file is part of DrumGizmo.
12  *
13  *  DrumGizmo is free software; you can redistribute it and/or modify
14  *  it under the terms of the GNU Lesser General Public License as published by
15  *  the Free Software Foundation; either version 3 of the License, or
16  *  (at your option) any later version.
17  *
18  *  DrumGizmo is distributed in the hope that it will be useful,
19  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  *  GNU Lesser General Public License for more details.
22  *
23  *  You should have received a copy of the GNU Lesser General Public License
24  *  along with DrumGizmo; if not, write to the Free Software
25  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
26  */
27 #include <uunit.h>
28 
29 #include <audiocacheeventhandler.h>
30 
31 class AudioCacheEventHandlerTest
32 	: public uUnit
33 {
34 public:
AudioCacheEventHandlerTest()35 	AudioCacheEventHandlerTest()
36 	{
37 		uUNIT_TEST(AudioCacheEventHandlerTest::threadedTest);
38 	}
39 
40 public:
setup()41 	void setup() override {}
teardown()42 	void teardown() override {}
43 
threadedTest()44 	void threadedTest()
45 	{
46 		AudioCacheIDManager id_manager;
47 		id_manager.init(10);
48 
49 		AudioCacheEventHandler event_handler(id_manager);
50 	}
51 };
52 
53 // Registers the fixture into the 'registry'
54 static AudioCacheEventHandlerTest test;
55