annotate src/Modules/Profile/ModuleSlice_unittest.cc @ 113:9d12efd43513

- Bash scripting is rubbish.
author tomwalters
date Tue, 14 Sep 2010 01:41:19 +0000
parents c5f5e9569863
children
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@45 6 // Licensed under the Apache License, Version 2.0 (the "License");
tomwalters@45 7 // you may not use this file except in compliance with the License.
tomwalters@45 8 // You may obtain a copy of the License at
tomwalters@17 9 //
tomwalters@45 10 // http://www.apache.org/licenses/LICENSE-2.0
tomwalters@17 11 //
tomwalters@45 12 // Unless required by applicable law or agreed to in writing, software
tomwalters@45 13 // distributed under the License is distributed on an "AS IS" BASIS,
tomwalters@45 14 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
tomwalters@45 15 // See the License for the specific language governing permissions and
tomwalters@45 16 // limitations under the License.
tomwalters@17 17
tomwalters@17 18 /*!
tomwalters@17 19 * \author Thomas Walters <tom@acousticscale.org>
tomwalters@17 20 * \date created 2010/02/20
tomwalters@17 21 * \version \$Id$
tomwalters@17 22 */
tomwalters@17 23
tomwalters@17 24 #include <boost/scoped_ptr.hpp>
tomwalters@17 25 #include <gtest/gtest.h>
tomwalters@17 26
tomwalters@17 27 #include "Support/Parameters.h"
tomwalters@17 28 #include "Modules/Profile/ModuleSlice.h"
tomwalters@17 29
tomwalters@17 30 namespace aimc {
tomwalters@17 31 using boost::scoped_ptr;
tomwalters@17 32 class ModuleSliceTest : public ::testing::Test {
tomwalters@17 33 protected:
tomwalters@17 34 virtual void SetUp() {
tomwalters@17 35 slice_.reset(new ModuleSlice(&parameters_));
tomwalters@17 36 }
tomwalters@17 37
tomwalters@17 38 // virtual void TearDown() {}
tomwalters@17 39
tomwalters@17 40 scoped_ptr<ModuleSlice> slice_;
tomwalters@17 41 Parameters parameters_;
tomwalters@17 42 };
tomwalters@17 43
tomwalters@17 44 TEST_F(ModuleSliceTest, SetsDefaultParameters) {
tomwalters@17 45 EXPECT_EQ(false, parameters_.GetBool("slice.temporal"));
tomwalters@17 46 EXPECT_EQ(true, parameters_.GetBool("slice.all"));
tomwalters@17 47 EXPECT_EQ(0, parameters_.GetInt("slice.lower_index"));
tomwalters@17 48 EXPECT_EQ(1000, parameters_.GetInt("slice.upper_index"));
tomwalters@17 49 EXPECT_EQ(false, parameters_.GetBool("slice.normalize"));
tomwalters@17 50 }
tomwalters@17 51
tomwalters@17 52 TEST_F(ModuleSliceTest, DoesSomethingElse) {
tomwalters@17 53 }
tomwalters@17 54 } // namespace aimc