Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / onlinehelp / tests / mock_helptopic.h
index 5151087245773a3514028fa216eb1143ee28e911..e8a3f1301377f737205f065084597d81a10e8ffb 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2012,2014,2015,2018, by the GROMACS development team, led by
+ * Copyright (c) 2012,2014,2015,2018,2019, 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.
@@ -55,40 +55,40 @@ namespace test
 
 class MockHelpTopic : public AbstractCompositeHelpTopic
 {
-    public:
-        static MockHelpTopic &addSubTopic(
-            gmx::AbstractCompositeHelpTopic *parent,
-            const char *name, const char *title, const char *text);
+public:
+    static MockHelpTopic& addSubTopic(gmx::AbstractCompositeHelpTopic* parent,
+                                      const char*                      name,
+                                      const char*                      title,
+                                      const char*                      text);
 
-        MockHelpTopic(const char *name, const char *title, const char *text);
-        ~MockHelpTopic() override;
+    MockHelpTopic(const char* name, const char* title, const char* text);
+    ~MockHelpTopic() override;
 
-        const char *name() const override;
-        const char *title() const override;
+    const char* name() const override;
+    const char* title() const override;
 
-        MOCK_CONST_METHOD1(writeHelp, void(const HelpWriterContext &context));
+    MOCK_CONST_METHOD1(writeHelp, void(const HelpWriterContext& context));
 
-        MockHelpTopic &addSubTopic(const char *name, const char *title,
-                                   const char *text);
-        using AbstractCompositeHelpTopic::addSubTopic;
+    MockHelpTopic& addSubTopic(const char* name, const char* title, const char* text);
+    using AbstractCompositeHelpTopic::addSubTopic;
 
-        /*! \brief
-         * Calls base class writeHelp() method.
-         *
-         * This provides the possibility for the mock to do the actual help
-         * writing.
-         */
-        void writeHelpBase(const HelpWriterContext &context)
-        {
-            AbstractCompositeHelpTopic::writeHelp(context);
-        }
+    /*! \brief
+     * Calls base class writeHelp() method.
+     *
+     * This provides the possibility for the mock to do the actual help
+     * writing.
+     */
+    void writeHelpBase(const HelpWriterContext& context)
+    {
+        AbstractCompositeHelpTopic::writeHelp(context);
+    }
 
-    private:
-        std::string helpText() const override;
+private:
+    std::string helpText() const override;
 
-        const char             *name_;
-        const char             *title_;
-        const char             *text_;
+    const char* name_;
+    const char* title_;
+    const char* text_;
 };
 
 } // namespace test