diff options
Diffstat (limited to 'Userland/Libraries/LibTest/TestCase.h')
-rw-r--r-- | Userland/Libraries/LibTest/TestCase.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibTest/TestCase.h b/Userland/Libraries/LibTest/TestCase.h index 866bba5d2e..18efcccf90 100644 --- a/Userland/Libraries/LibTest/TestCase.h +++ b/Userland/Libraries/LibTest/TestCase.h @@ -20,7 +20,7 @@ using TestFunction = Function<void()>; class TestCase : public RefCounted<TestCase> { public: - TestCase(const String& name, TestFunction&& fn, bool is_benchmark) + TestCase(String const& name, TestFunction&& fn, bool is_benchmark) : m_name(name) , m_function(move(fn)) , m_is_benchmark(is_benchmark) @@ -28,8 +28,8 @@ public: } bool is_benchmark() const { return m_is_benchmark; } - const String& name() const { return m_name; } - const TestFunction& func() const { return m_function; } + String const& name() const { return m_name; } + TestFunction const& func() const { return m_function; } private: String m_name; @@ -38,7 +38,7 @@ private: }; // Helper to hide implementation of TestSuite from users -void add_test_case_to_suite(const NonnullRefPtr<TestCase>& test_case); +void add_test_case_to_suite(NonnullRefPtr<TestCase> const& test_case); void set_suite_setup_function(Function<void()> setup); } |