summaryrefslogtreecommitdiff
path: root/indra/integration_tests/llui_libtest/llui_libtest.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-01-25 11:34:22 -0500
committerOz Linden <oz@lindenlab.com>2012-01-25 11:34:22 -0500
commit8758c7b8415a1cb67c504f142f96b5a7fec296d2 (patch)
tree0cb7666b1f3ef694381bab8b815342d9a4af5742 /indra/integration_tests/llui_libtest/llui_libtest.cpp
parenteee7b77ed80b7f966f68a0a5536c88d59cc3f6b2 (diff)
storm-1738: mock autocorrect to allow building the llui_libtest integration test
Diffstat (limited to 'indra/integration_tests/llui_libtest/llui_libtest.cpp')
-rw-r--r--indra/integration_tests/llui_libtest/llui_libtest.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/integration_tests/llui_libtest/llui_libtest.cpp b/indra/integration_tests/llui_libtest/llui_libtest.cpp
index 217e26c3ca..af0cb7c301 100644
--- a/indra/integration_tests/llui_libtest/llui_libtest.cpp
+++ b/indra/integration_tests/llui_libtest/llui_libtest.cpp
@@ -31,6 +31,7 @@
#include "llwidgetreg.h"
// linden library includes
+#include "llautocorrect.h"
#include "llcontrol.h" // LLControlGroup
#include "lldir.h"
#include "lldiriterator.h"
@@ -107,6 +108,16 @@ public:
};
TestImageProvider gTestImageProvider;
+// Mock Autocorrect
+AutoCorrect* AutoCorrect::getInstance()
+{
+ return NULL;
+}
+std::string AutoCorrect::replaceWord(std::string currentWord)
+{
+ return currentWord;
+}
+
static std::string get_xui_dir()
{
std::string delim = gDirUtilp->getDirDelimiter();