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@318: // Licensed under the Apache License, Version 2.0 (the "License"); tomwalters@318: // you may not use this file except in compliance with the License. tomwalters@318: // You may obtain a copy of the License at tomwalters@289: // tomwalters@318: // http://www.apache.org/licenses/LICENSE-2.0 tomwalters@289: // tomwalters@318: // Unless required by applicable law or agreed to in writing, software tomwalters@318: // distributed under the License is distributed on an "AS IS" BASIS, tomwalters@318: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. tomwalters@318: // See the License for the specific language governing permissions and tomwalters@318: // limitations under the License. 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