tomwalters@17: // Copyright 2010, Thomas Walters tomwalters@17: // tomwalters@17: // AIM-C: A C++ implementation of the Auditory Image Model tomwalters@17: // http://www.acousticscale.org/AIMC tomwalters@17: // tomwalters@17: // This program is free software: you can redistribute it and/or modify tomwalters@17: // it under the terms of the GNU General Public License as published by tomwalters@17: // the Free Software Foundation, either version 3 of the License, or tomwalters@17: // (at your option) any later version. tomwalters@17: // tomwalters@17: // This program is distributed in the hope that it will be useful, tomwalters@17: // but WITHOUT ANY WARRANTY; without even the implied warranty of tomwalters@17: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the tomwalters@17: // GNU General Public License for more details. tomwalters@17: // tomwalters@17: // You should have received a copy of the GNU General Public License tomwalters@17: // along with this program. If not, see . tomwalters@17: tomwalters@17: /*! tomwalters@17: * \author Thomas Walters tomwalters@17: * \date created 2010/02/20 tomwalters@17: * \version \$Id$ tomwalters@17: */ tomwalters@17: tomwalters@17: #include tomwalters@17: #include tomwalters@17: tomwalters@17: #include "Support/Parameters.h" tomwalters@17: #include "Modules/Profile/ModuleSlice.h" tomwalters@17: tomwalters@17: namespace aimc { tomwalters@17: using boost::scoped_ptr; tomwalters@17: class ModuleSliceTest : public ::testing::Test { tomwalters@17: protected: tomwalters@17: virtual void SetUp() { tomwalters@17: slice_.reset(new ModuleSlice(¶meters_)); tomwalters@17: } tomwalters@17: tomwalters@17: // virtual void TearDown() {} tomwalters@17: tomwalters@17: scoped_ptr slice_; tomwalters@17: Parameters parameters_; tomwalters@17: }; tomwalters@17: tomwalters@17: TEST_F(ModuleSliceTest, SetsDefaultParameters) { tomwalters@17: EXPECT_EQ(false, parameters_.GetBool("slice.temporal")); tomwalters@17: EXPECT_EQ(true, parameters_.GetBool("slice.all")); tomwalters@17: EXPECT_EQ(0, parameters_.GetInt("slice.lower_index")); tomwalters@17: EXPECT_EQ(1000, parameters_.GetInt("slice.upper_index")); tomwalters@17: EXPECT_EQ(false, parameters_.GetBool("slice.normalize")); tomwalters@17: } tomwalters@17: tomwalters@17: TEST_F(ModuleSliceTest, DoesSomethingElse) { tomwalters@17: } tomwalters@17: } // namespace aimc