Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Archive
Alchemy Viewer
Commits
9158e458
Commit
9158e458
authored
9 years ago
by
¡Cinder! ㊝
Browse files
Options
Downloads
Patches
Plain Diff
Get tests passing again (shoot me)
parent
41bc5649
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/tests/llslurl_test.cpp
+6
-1
6 additions, 1 deletion
indra/newview/tests/llslurl_test.cpp
indra/newview/tests/llviewernetwork_test.cpp
+16
-12
16 additions, 12 deletions
indra/newview/tests/llviewernetwork_test.cpp
with
22 additions
and
13 deletions
indra/newview/tests/llslurl_test.cpp
+
6
−
1
View file @
9158e458
...
...
@@ -29,8 +29,10 @@
#include
"../llviewernetwork.h"
#include
"../test/lltut.h"
#include
"../llslurl.h"
#include
"llxmlnode.h"
#include
"../../llxml/llcontrol.h"
#include
"llsdserialize.h"
#include
"llnotificationsutil.h"
namespace
{
...
...
@@ -50,7 +52,10 @@ LLControlVariable* LLControlGroup::declareString(const std::string& name,
const
std
::
string
&
initial_val
,
const
std
::
string
&
comment
,
LLControlVariable
::
ePersist
persist
)
{
return
NULL
;}
void
LLControlGroup
::
setString
(
const
std
::
string
&
name
,
const
std
::
string
&
val
){}
void
LLControlGroup
::
setString
(
const
std
::
string
&
name
,
const
std
::
string
&
val
)
{}
LLNotificationPtr
LLNotificationsUtil
::
add
(
const
std
::
string
&
name
,
const
LLSD
&
substitutions
)
{
return
NULL
;
}
bool
LLXMLNode
::
parseStream
(
std
::
istream
&
str
,
LLXMLNodePtr
&
node
,
LLXMLNode
*
defaults
)
{
return
true
;
}
std
::
string
gCmdLineLoginURI
;
std
::
string
gCmdLineGridChoice
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/tests/llviewernetwork_test.cpp
+
16
−
12
View file @
9158e458
...
...
@@ -30,6 +30,8 @@
#include
"../test/lltut.h"
#include
"../../llxml/llcontrol.h"
#include
"llfile.h"
#include
"llxmlnode.h"
#include
"llnotificationsutil.h"
namespace
{
...
...
@@ -48,7 +50,9 @@ LLControlVariable* LLControlGroup::declareString(const std::string& name,
const
std
::
string
&
initial_val
,
const
std
::
string
&
comment
,
LLControlVariable
::
ePersist
persist
)
{
return
NULL
;}
void
LLControlGroup
::
setString
(
const
std
::
string
&
name
,
const
std
::
string
&
val
){}
void
LLControlGroup
::
setString
(
const
std
::
string
&
name
,
const
std
::
string
&
val
)
{}
LLNotificationPtr
LLNotificationsUtil
::
add
(
const
std
::
string
&
name
,
const
LLSD
&
substitutions
)
{
return
NULL
;
}
bool
LLXMLNode
::
parseStream
(
std
::
istream
&
str
,
LLXMLNodePtr
&
node
,
LLXMLNode
*
defaults
)
{
return
true
;
}
std
::
string
gCmdLineLoginURI
;
std
::
string
gCmdLineGridChoice
;
...
...
@@ -183,10 +187,10 @@ namespace tut
ensure_equals
(
"Known grids is a string-string map of size 2"
,
known_grids
.
size
(),
2
);
ensure_equals
(
"Agni has the right name and label"
,
known_grids
[
std
::
string
(
"util.agni.lindenlab.com"
)],
std
::
string
(
"Second Life
Main Grid (Agni)
"
));
std
::
string
(
"Second Life"
));
ensure_equals
(
"Aditi has the right name and label"
,
known_grids
[
std
::
string
(
"util.aditi.lindenlab.com"
)],
std
::
string
(
"Second Life Beta
Test Grid (Aditi)
"
));
std
::
string
(
"Second Life Beta"
));
ensure_equals
(
"name for agni"
,
LLGridManager
::
getInstance
()
->
getGrid
(
"util.agni.lindenlab.com"
),
std
::
string
(
"util.agni.lindenlab.com"
));
...
...
@@ -198,7 +202,7 @@ namespace tut
LLGridManager
::
getInstance
()
->
getUpdateServiceURL
());
ensure_equals
(
"label for agni"
,
LLGridManager
::
getInstance
()
->
getGridLabel
(
"util.agni.lindenlab.com"
),
std
::
string
(
"Second Life
Main Grid (Agni)
"
));
std
::
string
(
"Second Life"
));
std
::
vector
<
std
::
string
>
login_uris
;
LLGridManager
::
getInstance
()
->
getLoginURIs
(
std
::
string
(
"util.agni.lindenlab.com"
),
login_uris
);
...
...
@@ -223,7 +227,7 @@ namespace tut
std
::
string
(
"Aditi"
));
ensure_equals
(
"label for aditi"
,
LLGridManager
::
getInstance
()
->
getGridLabel
(
"util.aditi.lindenlab.com"
),
std
::
string
(
"Second Life Beta
Test Grid (Aditi)
"
));
std
::
string
(
"Second Life Beta"
));
LLGridManager
::
getInstance
()
->
getLoginURIs
(
std
::
string
(
"util.aditi.lindenlab.com"
),
login_uris
);
...
...
@@ -257,10 +261,10 @@ namespace tut
// Verify that Agni and Aditi were not overwritten
ensure_equals
(
"Agni has the right name and label"
,
known_grids
[
std
::
string
(
"util.agni.lindenlab.com"
)],
std
::
string
(
"Second Life
Main Grid (Agni)
"
));
std
::
string
(
"Second Life"
));
ensure_equals
(
"Aditi has the right name and label"
,
known_grids
[
std
::
string
(
"util.aditi.lindenlab.com"
)],
std
::
string
(
"Second Life Beta
Test Grid (Aditi)
"
));
std
::
string
(
"Second Life Beta"
));
ensure_equals
(
"name for agni"
,
LLGridManager
::
getInstance
()
->
getGrid
(
"util.agni.lindenlab.com"
),
std
::
string
(
"util.agni.lindenlab.com"
));
...
...
@@ -272,7 +276,7 @@ namespace tut
LLGridManager
::
getInstance
()
->
getUpdateServiceURL
());
ensure_equals
(
"label for agni"
,
LLGridManager
::
getInstance
()
->
getGridLabel
(
"util.agni.lindenlab.com"
),
std
::
string
(
"Second Life
Main Grid (Agni)
"
));
std
::
string
(
"Second Life"
));
std
::
vector
<
std
::
string
>
login_uris
;
LLGridManager
::
getInstance
()
->
getLoginURIs
(
std
::
string
(
"util.agni.lindenlab.com"
),
login_uris
);
ensure_equals
(
"Number of login uris for agni"
,
1
,
login_uris
.
size
());
...
...
@@ -296,7 +300,7 @@ namespace tut
std
::
string
(
"Aditi"
));
ensure_equals
(
"label for aditi"
,
LLGridManager
::
getInstance
()
->
getGridLabel
(
"util.aditi.lindenlab.com"
),
std
::
string
(
"Second Life Beta
Test Grid (Aditi)
"
));
std
::
string
(
"Second Life Beta"
));
LLGridManager
::
getInstance
()
->
getLoginURIs
(
std
::
string
(
"util.aditi.lindenlab.com"
),
login_uris
);
ensure_equals
(
"Number of login uris for aditi"
,
1
,
login_uris
.
size
());
...
...
@@ -385,7 +389,7 @@ namespace tut
LLGridManager
::
getInstance
()
->
setGridChoice
(
"util.agni.lindenlab.com"
);
ensure_equals
(
"getGridLabel"
,
LLGridManager
::
getInstance
()
->
getGridLabel
(),
std
::
string
(
"Second Life
Main Grid (Agni)
"
));
std
::
string
(
"Second Life"
));
ensure_equals
(
"getGridId"
,
LLGridManager
::
getInstance
()
->
getGridId
(),
std
::
string
(
"Agni"
));
...
...
@@ -402,7 +406,7 @@ namespace tut
std
::
string
(
"https://update.secondlife.com/update"
),
LLGridManager
::
getInstance
()
->
getUpdateServiceURL
());
ensure
(
"Is Agni Second Life"
,
LLGridManager
::
getInstance
()
->
isInSecondlife
());
ensure
(
"Agni is NOT OpenSim"
,
LLGridManager
::
getInstance
()
->
isInOpenSim
());
ensure
(
"Agni is NOT OpenSim"
,
!
LLGridManager
::
getInstance
()
->
isInOpenSim
());
std
::
vector
<
std
::
string
>
uris
;
LLGridManager
::
getInstance
()
->
getLoginURIs
(
uris
);
ensure_equals
(
"getLoginURIs size"
,
1
,
uris
.
size
());
...
...
@@ -422,7 +426,7 @@ namespace tut
ensure
(
"alternative grid is OpenSim"
,
LLGridManager
::
getInstance
()
->
isInOpenSim
());
ensure
(
"alternative grid is not Second Life"
,
LLGridManager
::
getInstance
()
->
isInSecondlife
());
!
LLGridManager
::
getInstance
()
->
isInSecondlife
());
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment