To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / TestInputExtremes.h @ 42:f1e8e14e9c96
History | View | Annotate | Download (3.22 KB)
| 1 | 1:d7ef749300ed | cannam | /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
|---|---|---|---|
| 2 | |||
| 3 | /*
|
||
| 4 | Vamp Plugin Tester
|
||
| 5 | Chris Cannam, cannam@all-day-breakfast.com
|
||
| 6 | Centre for Digital Music, Queen Mary, University of London.
|
||
| 7 | 42:f1e8e14e9c96 | Chris | Copyright 2009-2014 QMUL.
|
| 8 | 1:d7ef749300ed | cannam | |
| 9 | This program loads a Vamp plugin and tests its susceptibility to a
|
||
| 10 | number of common pitfalls, including handling of extremes of input
|
||
| 11 | data. If you can think of any additional useful tests that are
|
||
| 12 | easily added, please send them to me.
|
||
| 13 | |||
| 14 | Permission is hereby granted, free of charge, to any person
|
||
| 15 | obtaining a copy of this software and associated documentation
|
||
| 16 | files (the "Software"), to deal in the Software without
|
||
| 17 | restriction, including without limitation the rights to use, copy,
|
||
| 18 | modify, merge, publish, distribute, sublicense, and/or sell copies
|
||
| 19 | of the Software, and to permit persons to whom the Software is
|
||
| 20 | furnished to do so, subject to the following conditions:
|
||
| 21 | |||
| 22 | The above copyright notice and this permission notice shall be
|
||
| 23 | included in all copies or substantial portions of the Software.
|
||
| 24 | |||
| 25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
| 26 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
| 27 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
| 28 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
|
||
| 29 | ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
||
| 30 | CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
| 31 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
| 32 | |||
| 33 | Except as contained in this notice, the names of the Centre for
|
||
| 34 | Digital Music; Queen Mary, University of London; and Chris Cannam
|
||
| 35 | shall not be used in advertising or otherwise to promote the sale,
|
||
| 36 | use or other dealings in this Software without prior written
|
||
| 37 | authorization.
|
||
| 38 | */
|
||
| 39 | |||
| 40 | #ifndef _TEST_INPUT_EXTREMES_H_
|
||
| 41 | #define _TEST_INPUT_EXTREMES_H_
|
||
| 42 | |||
| 43 | #include "Test.h" |
||
| 44 | #include "Tester.h" |
||
| 45 | |||
| 46 | #include <string> |
||
| 47 | |||
| 48 | #include <vamp-hostsdk/Plugin.h> |
||
| 49 | |||
| 50 | class TestNormalInput : public Test |
||
| 51 | {
|
||
| 52 | public:
|
||
| 53 | TestNormalInput() : Test() { }
|
||
| 54 | 8:3019cb6b538d | cannam | Results test(std::string key, Options options); |
| 55 | 1:d7ef749300ed | cannam | |
| 56 | protected:
|
||
| 57 | static Tester::TestRegistrar<TestNormalInput> m_registrar;
|
||
| 58 | }; |
||
| 59 | |||
| 60 | class TestNoInput : public Test |
||
| 61 | {
|
||
| 62 | public:
|
||
| 63 | TestNoInput() : Test() { }
|
||
| 64 | 8:3019cb6b538d | cannam | Results test(std::string key, Options options); |
| 65 | 1:d7ef749300ed | cannam | |
| 66 | protected:
|
||
| 67 | static Tester::TestRegistrar<TestNoInput> m_registrar;
|
||
| 68 | }; |
||
| 69 | |||
| 70 | class TestShortInput : public Test |
||
| 71 | {
|
||
| 72 | public:
|
||
| 73 | TestShortInput() : Test() { }
|
||
| 74 | 8:3019cb6b538d | cannam | Results test(std::string key, Options options); |
| 75 | 1:d7ef749300ed | cannam | |
| 76 | protected:
|
||
| 77 | static Tester::TestRegistrar<TestShortInput> m_registrar;
|
||
| 78 | }; |
||
| 79 | |||
| 80 | class TestSilentInput : public Test |
||
| 81 | {
|
||
| 82 | public:
|
||
| 83 | TestSilentInput() : Test() { }
|
||
| 84 | 8:3019cb6b538d | cannam | Results test(std::string key, Options options); |
| 85 | 1:d7ef749300ed | cannam | |
| 86 | protected:
|
||
| 87 | static Tester::TestRegistrar<TestSilentInput> m_registrar;
|
||
| 88 | }; |
||
| 89 | |||
| 90 | class TestTooLoudInput : public Test |
||
| 91 | {
|
||
| 92 | public:
|
||
| 93 | TestTooLoudInput() : Test() { }
|
||
| 94 | 8:3019cb6b538d | cannam | Results test(std::string key, Options options); |
| 95 | 1:d7ef749300ed | cannam | |
| 96 | protected:
|
||
| 97 | static Tester::TestRegistrar<TestTooLoudInput> m_registrar;
|
||
| 98 | }; |
||
| 99 | |||
| 100 | class TestRandomInput : public Test |
||
| 101 | {
|
||
| 102 | public:
|
||
| 103 | TestRandomInput() : Test() { }
|
||
| 104 | 8:3019cb6b538d | cannam | Results test(std::string key, Options options); |
| 105 | 1:d7ef749300ed | cannam | |
| 106 | protected:
|
||
| 107 | static Tester::TestRegistrar<TestRandomInput> m_registrar;
|
||
| 108 | }; |
||
| 109 | |||
| 110 | |||
| 111 | #endif
|