summaryrefslogtreecommitdiff
path: root/test/test.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-22 19:42:39 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-22 19:42:39 +0000
commit1c724e363a644abaee7efb39d6091e7b30de0fb6 (patch)
tree413e28533849835f8496c8c972bd26e1d27aefbe /test/test.h
parent1e9f115b7cda68ccba99f58d194a2c0eb83e7e23 (diff)
Various work.
Diffstat (limited to 'test/test.h')
-rw-r--r--test/test.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/test/test.h b/test/test.h
index dc704004..31b4bf0a 100644
--- a/test/test.h
+++ b/test/test.h
@@ -17,6 +17,23 @@
*/
-extern boost::filesystem::path j2c (int);
-extern boost::filesystem::path wav (dcp::Channel);
extern std::string test_corpus;
+
+class TestFile
+{
+public:
+ TestFile (boost::filesystem::path file);
+ ~TestFile ();
+
+ uint8_t* data () const {
+ return _data;
+ }
+
+ int64_t size () const {
+ return _size;
+ }
+
+private:
+ uint8_t* _data;
+ int64_t _size;
+};