Base to get all 'gmx help' contents to user guide
[alexxy/gromacs.git] / src / gromacs / onlinehelp / tests / helpmanager.cpp
index 09b22225f1c9a6b2beb304427c4bb704254bc0c9..f28b0f8e12cdca9a5bc176cd78eeaf1968c0522c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2012,2013,2014, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014,2015, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -102,10 +102,10 @@ TEST_F(HelpManagerTest, HandlesRootTopic)
 TEST_F(HelpManagerTest, HandlesSubTopics)
 {
     MockHelpTopic &first =
-        rootTopic_.addSubTopic("first", "First topic", "First topic text");
+        rootTopic_.addSubTopic("first", "First topic", NULL);
     MockHelpTopic &firstSub =
-        first.addSubTopic("firstsub", "First subtopic", "First subtopic text");
-    rootTopic_.addSubTopic("second", "Second topic", "Second topic text");
+        first.addSubTopic("firstsub", "First subtopic", NULL);
+    rootTopic_.addSubTopic("second", "Second topic", NULL);
 
     using ::testing::_;
     EXPECT_CALL(firstSub, writeHelp(_));
@@ -117,9 +117,9 @@ TEST_F(HelpManagerTest, HandlesSubTopics)
 TEST_F(HelpManagerTest, HandlesInvalidTopics)
 {
     MockHelpTopic &first =
-        rootTopic_.addSubTopic("first", "First topic", "First topic text");
-    first.addSubTopic("firstsub", "First subtopic", "First subtopic text");
-    rootTopic_.addSubTopic("second", "Second topic", "Second topic text");
+        rootTopic_.addSubTopic("first", "First topic", NULL);
+    first.addSubTopic("firstsub", "First subtopic", NULL);
+    rootTopic_.addSubTopic("second", "Second topic", NULL);
 
     ASSERT_THROW_GMX(manager_.enterTopic("unknown"), gmx::InvalidInputError);
     ASSERT_NO_THROW_GMX(manager_.enterTopic("first"));