summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/wm_client.cpp2
-rw-r--r--src/wm_client.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wm_client.cpp b/src/wm_client.cpp
index a9ed547..09e2e00 100644
--- a/src/wm_client.cpp
+++ b/src/wm_client.cpp
@@ -174,7 +174,7 @@ bool WMClient::removeRole(const string &role)
return ret;
}
-#ifndef GTEST_ENABLED
+#if GTEST_ENABLED
bool WMClient::subscribe(afb_req req, const string &evname)
{
if(evname != kKeyError){
diff --git a/src/wm_client.hpp b/src/wm_client.hpp
index 0d6faeb..259d504 100644
--- a/src/wm_client.hpp
+++ b/src/wm_client.hpp
@@ -53,7 +53,7 @@ class WMClient
bool removeSurfaceIfExist(unsigned surface);
bool removeRole(const std::string& role);
-#ifndef GTEST_ENABLED
+#if GTEST_ENABLED
bool subscribe(afb_req req, const std::string &event_name);
void emitError(WM_CLIENT_ERROR_EVENT ev);
#endif