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