Commit b70a49c1 authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[2955] Added missing definition of static member in D2 unit test.

parent 419690bf
...@@ -51,7 +51,7 @@ public: ...@@ -51,7 +51,7 @@ public:
/// @brief Callback that will invoke shutdown method. /// @brief Callback that will invoke shutdown method.
static void genShutdownCallback() { static void genShutdownCallback() {
D2ProcessTest::process_->shutdown(); process_->shutdown();
} }
/// @brief Callback that throws an exception. /// @brief Callback that throws an exception.
...@@ -64,6 +64,9 @@ public: ...@@ -64,6 +64,9 @@ public:
IOServicePtr io_service_; IOServicePtr io_service_;
}; };
// Define the static process instance
DProcessPtr D2ProcessTest::process_;
/// @brief Verifies D2Process constructor behavior. /// @brief Verifies D2Process constructor behavior.
/// 1. Verifies that constructor fails with an invalid IOService /// 1. Verifies that constructor fails with an invalid IOService
...@@ -103,7 +106,7 @@ TEST_F(D2ProcessTest, command) { ...@@ -103,7 +106,7 @@ TEST_F(D2ProcessTest, command) {
string args = "{ \"arg1\": 77 } "; string args = "{ \"arg1\": 77 } ";
isc::data::ElementPtr json = isc::data::Element::fromJSON(args); isc::data::ElementPtr json = isc::data::Element::fromJSON(args);
isc::data::ConstElementPtr answer = isc::data::ConstElementPtr answer =
process_->command("bogus_command", json); process_->command("bogus_command", json);
parseAnswer(rcode, answer); parseAnswer(rcode, answer);
EXPECT_EQ(1, rcode); EXPECT_EQ(1, rcode);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment