summaryrefslogtreecommitdiff
path: root/src/mongo/util/startup_test.h
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2015-06-20 00:22:50 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2015-06-20 10:56:02 -0400
commit9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch)
tree3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/util/startup_test.h
parent01965cf52bce6976637ecb8f4a622aeb05ab256a (diff)
downloadmongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/util/startup_test.h')
-rw-r--r--src/mongo/util/startup_test.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/src/mongo/util/startup_test.h b/src/mongo/util/startup_test.h
index 6585ac5eee3..fd1b220e1d9 100644
--- a/src/mongo/util/startup_test.h
+++ b/src/mongo/util/startup_test.h
@@ -33,36 +33,37 @@
namespace mongo {
- /* The idea here is to let all initialization of global variables (classes inheriting from StartupTest)
- complete before we run the tests -- otherwise order of initilization being arbitrary may mess
- us up. The app's main() function should call runTests().
+/* The idea here is to let all initialization of global variables (classes inheriting from StartupTest)
+ complete before we run the tests -- otherwise order of initilization being arbitrary may mess
+ us up. The app's main() function should call runTests().
- To define a unit test, inherit from this and implement run. instantiate one object for the new class
- as a global.
+ To define a unit test, inherit from this and implement run. instantiate one object for the new class
+ as a global.
- These tests are ran on *every* startup of mongod, so they have to be very lightweight. But it is a
- good quick check for a bad build.
- */
- class StartupTest {
- public:
- static void runTests();
+ These tests are ran on *every* startup of mongod, so they have to be very lightweight. But it is a
+ good quick check for a bad build.
+*/
+class StartupTest {
+public:
+ static void runTests();
- static bool testsInProgress() { return running; }
+ static bool testsInProgress() {
+ return running;
+ }
- protected:
- StartupTest();
- virtual ~StartupTest();
+protected:
+ StartupTest();
+ virtual ~StartupTest();
- private:
- static std::vector<StartupTest*> *tests;
- static bool running;
+private:
+ static std::vector<StartupTest*>* tests;
+ static bool running;
- static void registerTest(StartupTest *t);
+ static void registerTest(StartupTest* t);
- // assert if fails
- virtual void run() = 0;
+ // assert if fails
+ virtual void run() = 0;
+};
- };
-
-} // namespace mongo
+} // namespace mongo