summaryrefslogtreecommitdiff
path: root/indra/newview/tests
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-04-02 17:26:38 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-04-02 17:26:38 -0400
commit7c14e354aedf5de21a3255a467750a09f18e33eb (patch)
tree5b52f70e6a668ddd0bc650779fffc611834ed113 /indra/newview/tests
parent02328a13d7a5b6fde9f4a7afa7816e3acc7eee83 (diff)
SH-3064 WIP - centralized logic for mapping rez status S32 values to strings
Diffstat (limited to 'indra/newview/tests')
-rwxr-xr-xindra/newview/tests/llviewerassetstats_test.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/tests/llviewerassetstats_test.cpp b/indra/newview/tests/llviewerassetstats_test.cpp
index 5e18f91b23..ba760c0695 100755
--- a/indra/newview/tests/llviewerassetstats_test.cpp
+++ b/indra/newview/tests/llviewerassetstats_test.cpp
@@ -45,6 +45,15 @@ void LLVOAvatar::getNearbyRezzedStats(std::vector<S32>& counts)
counts[2] = 1;
}
+// static
+std::string LLVOAvatar::rezStatusToString(S32 rez_status)
+{
+ if (rez_status==0) return "cloud";
+ if (rez_status=1) return "gray";
+ if (rez_status=2) return "textured";
+ return "unknown";
+}
+
static const char * all_keys[] =
{
"duration",