]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3156] Declared static consts for unit tests so older versions of gtest would be...
authorThomas Markwalder <tmark@isc.org>
Tue, 10 Sep 2013 11:32:20 +0000 (07:32 -0400)
committerThomas Markwalder <tmark@isc.org>
Tue, 10 Sep 2013 11:32:20 +0000 (07:32 -0400)
src/bin/d2/tests/state_model_unittests.cc

index c5dfea6af9e4ddd043d31704716238530017fa26..c744748c2c5c9d3d68482350df8322fdb84c47ca 100644 (file)
@@ -235,6 +235,15 @@ public:
     bool work_completed_;
 };
 
+// Declare them so gtest can see them.
+const int StateModelTest::DUMMY_ST;
+const int StateModelTest::READY_ST;
+const int StateModelTest::DO_WORK_ST;
+const int StateModelTest::DONE_ST;
+const int StateModelTest::WORK_START_EVT;
+const int StateModelTest::WORK_DONE_EVT;
+const int StateModelTest::ALL_DONE_EVT;
+
 /// @brief Tests the fundamental methods used for state handler mapping.
 /// Verifies the ability to search for and add entries in the state handler map.
 TEST_F(StateModelTest, basicStateMapping) {