annotate src/Modules/Profile/ModuleSlice_unittest.cc @ 25:e361baf69120

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