ardour
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libs
ardour
test
playlist_layering_test.cc
Go to the documentation of this file.
1
/*
2
Copyright (C) 2012 Paul Davis
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
*/
18
19
#include "
ardour/playlist.h
"
20
#include "
ardour/region.h
"
21
#include "
playlist_layering_test.h
"
22
23
CPPUNIT_TEST_SUITE_REGISTRATION
(
PlaylistLayeringTest
);
24
25
using namespace
std
;
26
using namespace
ARDOUR
;
27
28
void
29
PlaylistLayeringTest::basicsTest
()
30
{
31
_playlist->add_region (_r[0], 0);
32
_playlist->add_region (_r[1], 10);
33
_playlist->add_region (_r[2], 20);
34
35
CPPUNIT_ASSERT_EQUAL (
layer_t
(0), _r[0]->
layer
());
36
CPPUNIT_ASSERT_EQUAL (
layer_t
(1), _r[1]->
layer
());
37
CPPUNIT_ASSERT_EQUAL (
layer_t
(2), _r[2]->
layer
());
38
39
_r[0]->set_position (5);
40
41
/* region move should have no effect */
42
CPPUNIT_ASSERT_EQUAL (
layer_t
(0), _r[0]->
layer
());
43
CPPUNIT_ASSERT_EQUAL (
layer_t
(1), _r[1]->
layer
());
44
CPPUNIT_ASSERT_EQUAL (
layer_t
(2), _r[2]->
layer
());
45
}
CPPUNIT_TEST_SUITE_REGISTRATION
CPPUNIT_TEST_SUITE_REGISTRATION(PlaylistLayeringTest)
PlaylistLayeringTest::basicsTest
void basicsTest()
Definition:
playlist_layering_test.cc:29
ARDOUR::Properties::layer
LIBARDOUR_API PBD::PropertyDescriptor< layer_t > layer
Definition:
region.cc:67
std
Definition:
Beats.hpp:239
ARDOUR
Definition:
amp.h:29
playlist.h
ARDOUR::layer_t
uint32_t layer_t
Definition:
types.h:59
region.h
playlist_layering_test.h
PlaylistLayeringTest
Definition:
playlist_layering_test.h:21
Generated on Sun May 24 2015 12:15:07 for ardour by
1.8.8