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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
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 Viewer
Alchemy Viewer
Commits
09b29a7f
Commit
09b29a7f
authored
6 years ago
by
Brad Kittenbrink
Committed by
Nat Goodspeed
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Began work for adding a test covering LLCoprocedureManager
parent
b0977094
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/llmessage/CMakeLists.txt
+1
-0
1 addition, 0 deletions
indra/llmessage/CMakeLists.txt
indra/llmessage/tests/llcoproceduremanager_test.cpp
+90
-0
90 additions, 0 deletions
indra/llmessage/tests/llcoproceduremanager_test.cpp
with
91 additions
and
0 deletions
indra/llmessage/CMakeLists.txt
+
1
−
0
View file @
09b29a7f
...
...
@@ -244,6 +244,7 @@ endif(LINUX)
# tests
if
(
LL_TESTS
)
SET
(
llmessage_TEST_SOURCE_FILES
llcoproceduremanager.cpp
llnamevalue.cpp
lltrustedmessageservice.cpp
lltemplatemessagedispatcher.cpp
...
...
This diff is collapsed.
Click to expand it.
indra/llmessage/tests/llcoproceduremanager_test.cpp
0 → 100644
+
90
−
0
View file @
09b29a7f
/**
* @file llcoproceduremanager_test.cpp
* @author Brad
* @date 2019-02
* @brief LLCoprocedureManager unit test
*
* $LicenseInfo:firstyear=2007&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
#include
"linden_common.h"
#include
"llsdserialize.h"
#include
"../llcoproceduremanager.h"
#include
"../test/lltut.h"
#if LL_WINDOWS
// disable unreachable code warnings
#pragma warning(disable: 4702)
#endif
LLCoreHttpUtil
::
HttpCoroutineAdapter
::
HttpCoroutineAdapter
(
std
::
string
const
&
,
unsigned
int
,
unsigned
int
)
{
}
void
LLCoreHttpUtil
::
HttpCoroutineAdapter
::
cancelSuspendedOperation
()
{
}
LLCoreHttpUtil
::
HttpCoroutineAdapter
::~
HttpCoroutineAdapter
()
{
}
LLCore
::
HttpRequest
::
HttpRequest
()
{
}
LLCore
::
HttpRequest
::~
HttpRequest
()
{
}
namespace
tut
{
struct
coproceduremanager_test
{
coproceduremanager_test
()
{
}
};
typedef
test_group
<
coproceduremanager_test
>
coproceduremanager_t
;
typedef
coproceduremanager_t
::
object
coproceduremanager_object_t
;
tut
::
coproceduremanager_t
tut_coproceduremanager
(
"LLCoprocedureManager"
);
template
<
>
template
<
>
void
coproceduremanager_object_t
::
test
<
1
>
()
{
int
foo
=
0
;
LLUUID
queueId
=
LLCoprocedureManager
::
instance
().
enqueueCoprocedure
(
"PoolName"
,
"ProcName"
,
[
&
foo
]
(
LLCoreHttpUtil
::
HttpCoroutineAdapter
::
ptr_t
&
ptr
,
const
LLUUID
&
id
)
{
foo
=
1
;
});
ensure_equals
(
"coprocedure failed to update foo"
,
foo
,
1
);
}
}
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