on xenial help sign in
Only make functions that need testing public when we're doing a test build of the binary
16a592dTed Gould
plugins/Unity/Launcher/backend/launcherbackend.h+2
@@ -184,7 +184,9 @@ private:
184
184
185 void emitPropChangedDbus(const QString& appId, const QString& property, QVariant &value) const;
185 void emitPropChangedDbus(const QString& appId, const QString& property, QVariant &value) const;
186
186
187+#ifdef LAUNCHER_TESTING
187public: /* Only public to make them easier to test independently */
188public: /* Only public to make them easier to test independently */
189+#endif
188 LauncherBackendItem* getItem(const QString& appId) const;
190 LauncherBackendItem* getItem(const QString& appId) const;
189
191
190 static QString decodeAppId(const QString& path);
192 static QString decodeAppId(const QString& path);