annotate trunk/src/Modules/Profile/ModuleSlice_unittest.cc @ 307:a9e7737cad19

-Added CVs as well as VCs to the gen features script
author tomwalters
date Fri, 26 Feb 2010 07:12:14 +0000
parents 6cf55200a199
children 30dde71d0230
rev   line source
tomwalters@289 1 // Copyright 2010, Thomas Walters
tomwalters@289 2 //
tomwalters@289 3 // AIM-C: A C++ implementation of the Auditory Image Model
tomwalters@289 4 // http://www.acousticscale.org/AIMC
tomwalters@289 5 //
tomwalters@289 6 // This program is free software: you can redistribute it and/or modify
tomwalters@289 7 // it under the terms of the GNU General Public License as published by
tomwalters@289 8 // the Free Software Foundation, either version 3 of the License, or
tomwalters@289 9 // (at your option) any later version.
tomwalters@289 10 //
tomwalters@289 11 // This program is distributed in the hope that it will be useful,
tomwalters@289 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
tomwalters@289 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
tomwalters@289 14 // GNU General Public License for more details.
tomwalters@289 15 //
tomwalters@289 16 // You should have received a copy of the GNU General Public License
tomwalters@289 17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
tomwalters@289 18
tomwalters@289 19 /*!
tomwalters@289 20 * \author Thomas Walters <tom@acousticscale.org>
tomwalters@289 21 * \date created 2010/02/20
tomwalters@289 22 * \version \$Id$
tomwalters@289 23 */
tomwalters@289 24
tomwalters@289 25 #include <boost/scoped_ptr.hpp>
tomwalters@289 26 #include <gtest/gtest.h>
tomwalters@289 27
tomwalters@289 28 #include "Support/Parameters.h"
tomwalters@289 29 #include "Modules/Profile/ModuleSlice.h"
tomwalters@289 30
tomwalters@289 31 namespace aimc {
tomwalters@289 32 using boost::scoped_ptr;
tomwalters@289 33 class ModuleSliceTest : public ::testing::Test {
tomwalters@289 34 protected:
tomwalters@289 35 virtual void SetUp() {
tomwalters@289 36 slice_.reset(new ModuleSlice(&parameters_));
tomwalters@289 37 }
tomwalters@289 38
tomwalters@289 39 // virtual void TearDown() {}
tomwalters@289 40
tomwalters@289 41 scoped_ptr<ModuleSlice> slice_;
tomwalters@289 42 Parameters parameters_;
tomwalters@289 43 };
tomwalters@289 44
tomwalters@289 45 TEST_F(ModuleSliceTest, SetsDefaultParameters) {
tomwalters@289 46 EXPECT_EQ(false, parameters_.GetBool("slice.temporal"));
tomwalters@289 47 EXPECT_EQ(true, parameters_.GetBool("slice.all"));
tomwalters@289 48 EXPECT_EQ(0, parameters_.GetInt("slice.lower_index"));
tomwalters@289 49 EXPECT_EQ(1000, parameters_.GetInt("slice.upper_index"));
tomwalters@289 50 EXPECT_EQ(false, parameters_.GetBool("slice.normalize"));
tomwalters@289 51 }
tomwalters@289 52
tomwalters@289 53 TEST_F(ModuleSliceTest, DoesSomethingElse) {
tomwalters@289 54 }
tomwalters@289 55 } // namespace aimc