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