Update unit tests to verify behavior of dynamic mode functions in non-dynamic builds

git-svn-id: https://cld2.googlecode.com/svn/trunk@163 b252ecd4-b096-bf77-eb8e-91563289f87e
This commit is contained in:
andrewhayden@google.com
2014-07-25 10:27:06 +00:00
parent b661afafc7
commit 00d28e343d
3 changed files with 33 additions and 13 deletions

View File

@@ -150,15 +150,15 @@ extern const short kAvgDeltaOctaScore[];
void loadDataFromFile(const char* fileName) {
// This is a bug in the calling code.
fprintf(stderr, "WARNING: Dynamic mode not active, loadDataFromFile has no effect!");
fprintf(stderr, "WARNING: Dynamic mode not active, loadDataFromFile has no effect!\n");
}
void loadDataFromRawAddress(const void* rawAddress, const uint32_t length) {
// This is a bug in the calling code.
fprintf(stderr, "WARNING: Dynamic mode not active, loadDataFromRawAddress has no effect!");
fprintf(stderr, "WARNING: Dynamic mode not active, loadDataFromRawAddress has no effect!\n");
}
void unloadData() {
// This is a bug in the calling code.
fprintf(stderr, "WARNING: Dynamic mode not active, unloadData has no effect!");
fprintf(stderr, "WARNING: Dynamic mode not active, unloadData has no effect!\n");
}
#endif // #ifdef CLD2_DYNAMIC_MODE