diff data/model/test/MockWaveModel.h @ 1088:5fab8e4f5f19

Start making the FFT model tests into proper tests
author Chris Cannam
date Fri, 12 Jun 2015 12:41:19 +0100
parents 9f4505ac9072
children 4d9816ba0ebe
line wrap: on
line diff
--- a/data/model/test/MockWaveModel.h	Thu Jun 11 09:09:11 2015 +0100
+++ b/data/model/test/MockWaveModel.h	Fri Jun 12 12:41:19 2015 +0100
@@ -33,8 +33,9 @@
     Q_OBJECT
 
 public:
-    /** One Sort per channel! Length is in samples */
-    MockWaveModel(std::vector<Sort> sorts, int length);
+    /** One Sort per channel! Length is in samples, and is in addition
+     * to "pad" number of zero samples at the start and end */
+    MockWaveModel(std::vector<Sort> sorts, int length, int pad);
 
     virtual float getValueMinimum() const { return -1.f; }
     virtual float getValueMaximum() const { return  1.f; }
@@ -58,7 +59,7 @@
 
 private:
     std::vector<std::vector<float> > m_data;
-    std::vector<float> generate(Sort sort, int length) const;
+    std::vector<float> generate(Sort sort, int length, int pad) const;
 };
 
 #endif