)
load_parameters(cxx-flags)
-set_source_files_properties(${Compile.sources} ${Optional.sources} ${Test.sources} PROPERTIES COMPILE_FLAGS "-std=c++11")
-set_source_files_properties(${Compile.sources} ${Optional.sources} ${Test.sources} PROPERTIES COMPILE_FLAGS "-std=c++11")
+set_source_files_properties(${Compile.sources} ${Optional.sources} ${Test.sources} PROPERTIES COMPILE_FLAGS ${Param.cxx-flags})
add_executable(freedv-server ${Compile.sources} source/big_main.cpp)
# excluded from the INPUT source files. This way you can easily exclude a
# subdirectory from a directory tree whose root is specified with the INPUT tag.
-EXCLUDE = "_darcs" "googletest"
+EXCLUDE = "_darcs" "googletest" "source/test"
# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
# directories that are symbolic links (a Unix filesystem feature) are excluded
PTTInput * PTTConstant(const char * parameter);
TextInput * TextConstant(const char * parameter);
UserInterface * BlankPanel(const char * parameter, Interfaces *);
- };
+ }
}
#ifndef NO_INITIALIZERS
// Tests for the Base class.
#include <drivers.h>
#include <gtest/gtest.h>
+#include <sstream>
using namespace FreeDV;
};
TEST_F(BaseTest, CaptiveIsFalse) {
+ // The base class version of captive() and the one inherited by AudioSink,
+ // must always return false. Only an interface that is owned by the
+ // UserInterface class can return true.
ASSERT_FALSE(b->captive());
}
+
+TEST_F(BaseTest, PrintsItself) {
+ std::stringstream stream;
+ stream << *b;
+ ASSERT_STREQ("sink:", stream.str().c_str());
+}