cannam@3
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
cannam@3
|
2
|
cannam@3
|
3 /*
|
cannam@3
|
4 Vamp Plugin Tester
|
cannam@3
|
5 Chris Cannam, cannam@all-day-breakfast.com
|
cannam@3
|
6 Centre for Digital Music, Queen Mary, University of London.
|
Chris@42
|
7 Copyright 2009-2014 QMUL.
|
cannam@3
|
8
|
cannam@3
|
9 This program loads a Vamp plugin and tests its susceptibility to a
|
cannam@3
|
10 number of common pitfalls, including handling of extremes of input
|
cannam@3
|
11 data. If you can think of any additional useful tests that are
|
cannam@3
|
12 easily added, please send them to me.
|
cannam@3
|
13
|
cannam@3
|
14 Permission is hereby granted, free of charge, to any person
|
cannam@3
|
15 obtaining a copy of this software and associated documentation
|
cannam@3
|
16 files (the "Software"), to deal in the Software without
|
cannam@3
|
17 restriction, including without limitation the rights to use, copy,
|
cannam@3
|
18 modify, merge, publish, distribute, sublicense, and/or sell copies
|
cannam@3
|
19 of the Software, and to permit persons to whom the Software is
|
cannam@3
|
20 furnished to do so, subject to the following conditions:
|
cannam@3
|
21
|
cannam@3
|
22 The above copyright notice and this permission notice shall be
|
cannam@3
|
23 included in all copies or substantial portions of the Software.
|
cannam@3
|
24
|
cannam@3
|
25 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
cannam@3
|
26 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
cannam@3
|
27 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
cannam@3
|
28 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
|
cannam@3
|
29 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
cannam@3
|
30 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
cannam@3
|
31 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
cannam@3
|
32
|
cannam@3
|
33 Except as contained in this notice, the names of the Centre for
|
cannam@3
|
34 Digital Music; Queen Mary, University of London; and Chris Cannam
|
cannam@3
|
35 shall not be used in advertising or otherwise to promote the sale,
|
cannam@3
|
36 use or other dealings in this Software without prior written
|
cannam@3
|
37 authorization.
|
cannam@3
|
38 */
|
cannam@3
|
39
|
cannam@3
|
40 #ifndef _TEST_OUTPUTS_H_
|
cannam@3
|
41 #define _TEST_OUTPUTS_H_
|
cannam@3
|
42
|
cannam@3
|
43 #include "Test.h"
|
cannam@3
|
44 #include "Tester.h"
|
cannam@3
|
45
|
cannam@3
|
46 class TestOutputNumbers : public Test
|
cannam@3
|
47 {
|
cannam@3
|
48 public:
|
cannam@3
|
49 TestOutputNumbers() : Test() { }
|
cannam@8
|
50 Results test(std::string key, Options options);
|
cannam@3
|
51
|
cannam@3
|
52 protected:
|
cannam@3
|
53 static Tester::TestRegistrar<TestOutputNumbers> m_registrar;
|
cannam@3
|
54 };
|
cannam@3
|
55
|
cannam@3
|
56 class TestTimestamps : public Test
|
cannam@3
|
57 {
|
cannam@3
|
58 public:
|
cannam@3
|
59 TestTimestamps() : Test() { }
|
cannam@8
|
60 Results test(std::string key, Options options);
|
cannam@3
|
61
|
cannam@3
|
62 protected:
|
cannam@3
|
63 static Tester::TestRegistrar<TestTimestamps> m_registrar;
|
cannam@3
|
64 };
|
cannam@3
|
65
|
cannam@3
|
66
|
cannam@3
|
67 #endif
|