diff options
author | Chase Douglas <chase.douglas@ubuntu.com> | 2011-12-14 11:01:39 -0800 |
---|---|---|
committer | Chase Douglas <chase.douglas@ubuntu.com> | 2011-12-14 11:01:39 -0800 |
commit | 8b2947df181dba16e07bd399d33ef0ae60aebdeb (patch) | |
tree | e8fbc2ef04e67d957cbcb9dbf9068d89fedfdb1a | |
parent | 7b18bcffa98443e736dbfde2848698f5e6d6efa9 (diff) |
Move SetUp and TearDown methods to protected sections
-rw-r--r-- | include/xorg/gtest/environment.h | 10 | ||||
-rw-r--r-- | include/xorg/gtest/test.h | 11 |
2 files changed, 11 insertions, 10 deletions
diff --git a/include/xorg/gtest/environment.h b/include/xorg/gtest/environment.h index 8d3901b..fd550e7 100644 --- a/include/xorg/gtest/environment.h +++ b/include/xorg/gtest/environment.h @@ -71,11 +71,13 @@ class Environment : public ::testing::Environment { const std::string& path_to_server = "Xorg", int display = 133); virtual ~Environment(); + + protected: /** * Starts the dummy X server. * - * Reimplemented from ::testing::Environment. Should only be called by subclasses. - * See Google %Test documentation for details. + * Reimplemented from ::testing::Environment. See Google %Test documentation + * for details. * * @throws std::runtime_error if a dummy X server cannot be started. * @@ -88,8 +90,8 @@ class Environment : public ::testing::Environment { /** * Stops the dummy X server. * - * Reimplemented from ::testing::Environment. Should only be called by subclasses. - * See Google %Test documentation for details. + * Reimplemented from ::testing::Environment. See Google %Test documentation + * for details. * * @post Dummy X server stopped. */ diff --git a/include/xorg/gtest/test.h b/include/xorg/gtest/test.h index 64e1dda..1d6d1ea 100644 --- a/include/xorg/gtest/test.h +++ b/include/xorg/gtest/test.h @@ -49,12 +49,13 @@ class Test : public ::testing::Test { virtual ~Test(); + protected: /** * Tries to connect to an X server instance. * * Fails if no X server is running. Updates the display object. - * Reimplemented from ::testing::Test, should only be called by subclasses. - * See Google %Test documentation for details. + * Reimplemented from ::testing::Test. See Google %Test documentation for + * details. * * @post Subsequent calls to Display() return a valid pointer or NULL if an error occured. * @@ -65,15 +66,13 @@ class Test : public ::testing::Test { /** * Closes the display. * - * Reimplemented from ::testing::Test, should only be called by subclasses. - * See Google %Test documentation for details. + * Reimplemented from ::testing::Test. See Google %Test documentation for + * details. * * @post Subsequent calls to Display() return NULL. */ virtual void TearDown(); - protected: - /** * Accesses the display representing an Xlib connection. * |