Skip to content
Snippets Groups Projects
Commit 1ac2cc42 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

[#5514] Restore test ni historytest suite

parent 240f9d81
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ void HistoryTest::setUp()
history = new HistoryManager();
}
/*
void HistoryTest::test_create_history_path()
{
_debug ("-------------------- HistoryTest::test_create_history_path --------------------\n");
......@@ -55,14 +55,13 @@ void HistoryTest::test_create_history_path()
std::string path;
cpath = getenv ("XDG_DATA_HOME");
(cpath != NULL) ? path = std::string (cpath) : path = std::string (HOMEDIR)
+ "/.local/share/sflphone/history";
(cpath != NULL) ? path = std::string (cpath) : path = std::string ("/") + HISTORY_SAMPLE;
result = history->create_history_path();
result = history->create_history_path(path);
CPPUNIT_ASSERT (result == 0);
CPPUNIT_ASSERT (!history->is_loaded ());
CPPUNIT_ASSERT (history->_history_path == path);
}*/
}
void HistoryTest::test_load_history_from_file()
{
......
......@@ -53,7 +53,7 @@ class HistoryTest : public CppUnit::TestCase {
* Use cppunit library macros to add unit test the factory
*/
CPPUNIT_TEST_SUITE (HistoryTest);
// CPPUNIT_TEST (test_create_history_path);
CPPUNIT_TEST (test_create_history_path);
CPPUNIT_TEST (test_save_history_items_map);
CPPUNIT_TEST (test_load_history_from_file);
CPPUNIT_TEST (test_load_history_items_map);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment