Commit Graph

142 Commits (b3a549b8b5e01809b2dd2006d6bf92a7a4d6baf7)

Author SHA1 Message Date
Rider Linden efbbbca9b0 Get unit tests (Integration and project) compiling and linking again. 2015-08-17 10:25:11 -07:00
rider e3b429cd85 These tests are just causing a cascade of errors.. 2015-08-14 21:39:07 -07:00
Rider Linden aa3042ea33 MAINT-5506: Converted llmessage untrusted sim message responder to coroutine.
Removed HTTPSender, HTTPNullSender, HTTPCapSender.
Moved UntrustedMessageCap storage into LLHost
Added boost libraries to PROJECT_x_TEST linkage.
2015-08-14 16:45:26 -07:00
Nat Goodspeed 391d9a367b Merge restore of more selfless changes 2015-07-10 19:34:20 -04:00
Nat Goodspeed efa9a0f99c Backed out changeset bab1000e1b2d: restore 'selfless' changes 2015-07-10 19:30:10 -04:00
Rider Linden b34163be5e Merge 2015-07-07 11:44:15 -07:00
Rider Linden 247eb0c9c3 Backout selfles merge 738255dbbfd679d9e615baab3398e5e345bbb3c5 2015-07-07 19:41:27 +01:00
Rider Linden 6ccd8bb612 Temp disable llavatarnamecache integration test for linux 2015-07-02 16:54:19 -07:00
Nat Goodspeed 2a29dbc482 MAINT-5351: Reorder llmessage test libraries to make Linux happy.
Both BOOST_CONTEXT_LIBRARY and BOOST_COROUTINE_LIBRARY were mentioned. But as
BOOST_COROUTINE_LIBRARY depends on BOOST_CONTEXT_LIBRARY, they must be
mentioned in that order for Linux to successfully link the test programs.
2015-07-01 19:23:08 -04:00
Rider Linden 9f2302bdff Merge 2015-07-01 08:47:50 -07:00
Ansariel 4ce6691cf8 Merge viewer-xp_tools 2015-06-25 11:57:17 +02:00
Rider Linden 4a4470af32 Coding policy fixes 2015-06-17 13:53:28 -07:00
Rider Linden be1fa962df Removed dead code, llsdmessage, llcapabilitylistener and the associated tests. 2015-06-09 15:36:10 -07:00
Rider Linden ff121254b2 Removed dead HTTP client adapter code
Partial conversion of group manager
clean up some debug code in web profiles.
2015-05-22 09:27:33 -07:00
Rider Linden c437a9c4ec Webprofile converted to coroutine.
Added JSON->LLSD converter
Added corohandler for JSON data
2015-05-20 17:37:27 -07:00
Rider Linden bd69aa7be2 Linux linker order. 2015-04-02 15:58:24 -07:00
Rider Linden ca6087ea20 Move RT aronud 2015-04-02 15:26:24 -07:00
Rider Linden a3be08057c Explicitly include LIBRT 2015-04-02 14:48:20 -07:00
Rider Linden e981588845 Move CURL libs up... 2015-04-02 14:31:28 -07:00
Rider Linden 90db0e9943 More link order 2015-04-02 13:56:44 -07:00
Rider Linden 9d8df53717 Adjusting link order 2015-04-02 13:20:49 -07:00
Rider Linden 02b90efa94 Adding boost libs and LLCoreHttp to the unit test linkage. 2015-04-02 09:13:15 -07:00
Rider Linden 6b8c814df3 Adding new HTTP handling for material manager. 2015-03-19 17:01:21 -07:00
dolphin fb9e603e34 Merge with 3.7.19-release 2014-11-06 16:27:14 -08:00
Tank_Master 4a6ff8c50d Merge LL 3.6.19 2015-01-14 20:20:35 -08:00
Ansariel f4bfb1aadf Merge LL V3.7.9 (AIS3 + SSA) 2014-10-22 02:02:08 +02:00
Monty Brandenberg bbf9de9c67 Bring better error handling to inventory item and folder fetching.
First, introduced some LLSD-based interfaces to the llcorehttp code
using utils classes (in llcorehttputil).  I've kept LLSD out of
the llcorehttp library up to now and will continue to do that.
Functions provide a requestPost based on LLSD body and conversion
utils for HttpResponse-to-LLSD and HttpResponse-to-string
conversions.  Inventory fetch operations now do more thorough
error checking including 200-with-error status checking.  Still
do retry forever on folders though I don't like that.
2014-08-26 18:33:14 -04:00
dolphin 299921de32 Merge with 3.7.9-release 2014-06-17 13:09:15 -07:00
Brad Payne (Vir Linden) 7b9708a2e3 sunshine-external merge WIP 2014-05-13 10:02:26 -04:00
dolphin 48fece4473 Merge with 3.7.7-release 2014-05-07 11:14:26 -07:00
Tank_Master 6babf8abd2 Merge LL 3.7.7 2014-06-09 11:29:57 -07:00
dolphin 1319a6258a Fixing coding policy errors 2013-11-11 13:58:46 -08:00
Nyx Linden 5ae117aff6 merge with viewer-release 2013-08-16 19:31:16 -04:00
Richard Linden a2e22732f1 Summer cleaning - removed a lot of llcommon dependencies to speed up build times
consolidated most indra-specific constants in llcommon under indra_constants.h
fixed issues with operations on mixed unit types (implicit and explicit)
made LL_INFOS() style macros variadic in order to subsume other logging methods
such as ll_infos
added optional tag output to error recorders
2013-07-30 19:13:45 -07:00
dolphin ea40b3a37b Merge with viewer 3.6.0 2013-06-19 09:58:43 -07:00
dolphin 716a963d55 Merge with viewer-release 2013-05-20 10:08:27 -07:00
Graham Madarasz 025c890958 Merge vwr-dev-mat 2013-05-01 08:11:15 -07:00
Graham Madarasz 806d09b114 Merge 3.5.1 into Materials 2013-04-30 19:50:05 -07:00
Oz Linden ddd5659f81 merge changes for DRTVWR-294 2013-04-19 10:11:29 -04:00
Brad Payne (Vir Linden) a8cdcfc9a8 SH-4061 WIP - moved retry policy to newview so it can work with either llmessage or CoreHttp libraries. Updated tests. 2013-04-12 09:16:25 -04:00
Brad Payne (Vir Linden) 14ca6a1247 SH-4061 WIP - moved retry policy to llmessage, added integration test 2013-04-11 11:18:16 -04:00
dolphin 56badfe349 Merge with viewer-development 2013-04-04 17:10:28 -07:00
Don Kjer beeefb4526 Renaming HTTP_HEADER_* into HTTP_IN_HEADER_* and HTTP_OUT_HEADER_* to make it more clear which header strings should be used for incoming vs outgoing situations.
Using constants for commonly used llhttpnode context strings.
2013-04-04 21:50:45 +00:00
Graham Madarasz bf6182daa8 Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
Don Kjer f945415210 Large changes to the LLCurl::Responder API, as well as pulling in some changes to common libraries from the server codebase:
* Additional error checking in http handlers.
* Uniform log spam for http errors.
* Switch to using constants for http heads and status codes.
* Fixed bugs in incorrectly checking if parsing LLSD xml resulted in an error.
* Reduced spam regarding LLSD parsing errors in the default completedRaw http handler.  It should not longer be necessary to short-circuit completedRaw to avoid spam.
* Ported over a few bug fixes from the server code.
* Switch mode http status codes to use S32 instead of U32.
* Ported LLSD::asStringRef from server code; avoids copying strings all over the place.
* Ported server change to LLSD::asBinary; this always returns a reference now instead of copying the entire binary blob.
* Ported server pretty notation format (and pretty binary format) to llsd serialization.

* The new LLCurl::Responder API no longer has two error handlers to choose from.  Overriding the following methods have been deprecated:
** error - use httpFailure
** errorWithContent - use httpFailure
** result - use httpSuccess
** completed - use httpCompleted
** completedHeader - no longer necessary; call getResponseHeaders() from a completion method to obtain these headers.

* In order to 'catch' a completed http request, override one of these methods:
** httpSuccess - Called for any 2xx status code.
** httpFailure - Called for any non-2xx status code.
** httpComplete - Called for all status codes.  Default implementation is to call either httpSuccess or httpFailure.
* It is recommended to keep these methods protected/private in order to avoid triggering of these methods without using a 'push' method (see below).

* Uniform error handling should followed whenever possible by calling a variant of this during httpFailure:
** llwarns << dumpResponse() << llendl;
* Be sure to include LOG_CLASS(your_class_name) in your class in order for the log entry to give more context.

* In order to 'push' a result into the responder, you should no longer call error, errorWithContent, result, or completed.
* Nor should you directly call httpSuccess/Failure/Completed (unless passing a message up to a parent class).
* Instead, you can set the internal content of a responder and trigger a corresponding method using the following methods:
** successResult - Sets results and calls httpSuccess
** failureResult - Sets results and calls httpFailure
** completedResult - Sets results and calls httpCompleted

* To obtain information about a the response from a reponder method, use the following getters:
** getStatus - HTTP status code
** getReason - Reason string
** getContent - Content (Parsed body LLSD)
** getResponseHeaders - Response Headers (LLSD map)
** getHTTPMethod - HTTP method of the request
** getURL - URL of the request

* It is still possible to override completeRaw if you want to manipulate data directly out of LLPumpIO.

* See indra/llmessage/llcurl.h for more information.
2013-03-13 06:26:25 +00:00
Tank_Master 718f6fa0ff merge LL 3.6.1 2013-07-10 00:23:23 -07:00
Tank_Master d4640277d0 Merge LL 3.5.3 release. 2013-07-09 16:24:58 -07:00
dolphin@dolphin-THINK.lindenlab.com 723ab8b108 Merge 2012-11-14 14:12:25 -08:00
Don Kjer 8ba2b38876 Fleshed out target_link_libraries dependencies between libraries. Appearance utility now reads avatar_lad.xml during stubbed out params processing. 2012-09-13 10:25:48 +00:00
Nicky a4a025a24d Remove downloading/installing of Google Mock/Test for tests. For Windows include and InitGoogleMock was removed with changelist 991 from 2009-09-10. As it causes problems with GCC 4.7.x remove all it on all platforms. 2013-03-13 18:10:39 +01:00
Nat Goodspeed cd05a244da MAINT-1144: Break out llhttpclient_tut as standalone integration test.
indra/test/llhttpclient_tut.cpp ==> indra/llmessage/tests/llhttpclient_test.cpp,
with corresponding CMakeLists.txt changes in their respective directories.
This first commit merely moves the test source file without changing it --
separating out moves from edits simplifies code review.
2012-06-06 19:57:58 -04:00
Logan Dethrow 7717b6f647 STORM-1112 More cleanup of SOCKS 5 proxy code.
Renamed llsocks5.cpp to llproxy.cpp.
2011-06-28 19:54:53 -04:00
Logan Dethrow 7cb18f5318 Merged STORM-1112 with viewer-development. Fixed license in socks5.cpp and socks5.h. 2011-06-08 15:17:19 -04:00
Robin Cornelius 74d9bf0d55 VWR-20801 Implement SOCKS 5 Proxy for the viewer 2011-03-28 11:20:06 +01:00
Oz Linden 7309fda08c sync up to latest viewer-development 2011-03-11 19:42:26 -05:00
Merov Linden 5048942dbc Autobuild : Fix llsdmessage integration test failure on Mac 2011-03-03 23:11:38 -08:00
Alain Linden a08deb9131 fix for INTEGRATION_TEST_llcapabilitylistener (include Python to run with correct python executable). 2011-02-16 13:13:13 -08:00
James Cook c0257c7fff DEV-49633 fixed, use Cache-Control max-age for display name expiration
We have no C++ libraries for parsing RFC 1123 dates, so parsing "Expires"
headers is risky.  max-age delta-seconds is easier to parse and equivalent
for this use.  Also added unit tests for max-age parsing.  Pair-programmed
with Huseby.
2010-05-06 16:29:51 -07:00
James Cook c2373fb5a6 Created stub LLAvatarNameCache for display name lookup, as
well as LLAvatarName base data object.
Reviewed with Kelly.
2010-02-11 16:39:15 -08:00
James Cook 8ff96a3515 Migrated LLUUIDs and some float constants out of headers into .cpp files
Moved some functions with llinfos into .cpp files
Linker optimizations, all
2009-11-28 20:08:09 -08:00
James Cook 3858992603 Add CMake var LL_TESTS to optionally disable tests for build timing 2009-11-27 22:24:57 -08:00
James Cook 7cfb01526f Move sound id declarations to cpp file to reduce redundant linker symbols.
Cuts size of object files dramatically, often 100KB apiece.
2009-11-27 22:13:01 -08:00
Steve Bennetts 65bf35cfed merge 2009-10-19 10:49:48 -07:00
Mark Palange (Mani) 3e10fa4d51 merge from latest svn/viewer-2-0 to hg/viewer-2-0 2009-10-16 16:42:45 -07:00
Adam Moss 90a8ec369f DEV-41406 resurrect dead llpartdata test, turn it into a llmessage integration test. 2009-10-16 13:09:10 +00:00
Adam Moss 6c32554591 DEV-41405 convert llxfer test to a llmessage integration test. 2009-10-16 12:57:58 +00:00
Adam Moss 7c55efa4bc DEV-41363 convert legacy llhost tut test into a llmessage integration test. 2009-10-15 18:41:04 +00:00
Adam Moss 11501bb4b4 DEV-41355 convert llmime monolithic tut test to a llmessage unit test. 2009-10-15 18:16:51 +00:00
Adam Moss b73e71ebdf DEV-41174 more automated testing love
* turn llnamevalue_tut into a llmessage unit test
* turn llsdserialize_tut into a llcommon integration test
* re-enable the (quite slow) llsdserialize test on win32 now that it doesn't have to run on every recompile
* re-enable all llmessage unit tests on linux viewer builds
2009-10-12 14:13:57 +00:00
brad kittenbrink bb1d4592bd Merged latest viewer/viewer-20 into login-api. 2009-09-18 15:22:25 -04:00
Bryan O'Sullivan be7ac8bbfe Fix a link error with an integration test on OS X. 2009-09-10 10:31:58 -07:00
Bryan O'Sullivan 7ad3af45a6 Merge 2009-09-08 13:27:05 -07:00
brad kittenbrink 04d2c459b9 Fixup for closing paren dropped in the merge. 2009-09-01 13:11:10 -04:00
brad kittenbrink bae94e4340 Merged login-api with viewer-2.0.0-3 up through r132290. 2009-09-01 12:21:51 -04:00
Nat Goodspeed 3069355a6f DEV-34522: [COMMENTS ONLY] clean up comments about (formerly) disabled tests 2009-09-01 14:41:04 +00:00
Bryan O'Sullivan 30ff6cabd6 Merge with trunk 2009-08-31 13:47:47 -07:00
Nat Goodspeed 76aa6cc293 DEV-38596: Introduce Mani's LL_ADD_INTEGRATION_TEST macro.
LL_ADD_INTEGRATION_TEST supports tests that may require linking against one or
more Linden libraries, or that should be executed with a wrapper script.
Use this to test lllazy.cpp, llsdmessage.cpp and llcapabilitylistener.cpp.
2009-08-28 19:13:13 +00:00
palmer@945battery-guestB-224.lindenlab.com 82eb18fce5 Expanded tabs in cmake files 2009-07-10 11:09:54 -07:00
Christian Goetze e588d1f284 svn merge -r125825:125901 svn+ssh://svn.lindenlab.com/svn/user/cg/qar-1654
QAR-1654 merge completed.
2009-07-01 00:22:05 +00:00
Mark Palange (Mani) 9b86d4c12f Removed conflict markers (ie. <<<<<<<) in llmessage/CMakeLists.txt
Copied snprintf declaration in llstring from login-api-3
2009-06-23 17:58:51 -07:00
Nat Goodspeed 85e326e7c7 Resolve merge 2009-06-23 18:24:41 -04:00
Nat Goodspeed 07a05e2c0a Incomplete attempt to clean up Mercurial branch build 2009-06-23 18:16:57 -04:00
palange@becane.lindenlab.com fae273975b Fixed an "ADD_BUILD_TEST" leftover from the initial merge. 2009-06-23 11:29:55 -07:00
Bryan O'Sullivan baa73fddd9 Merge with viewer-2.0.0-3 branch 2009-06-22 15:02:19 -07:00
Paul Oppenheim 351ebe9fcb result of "svn merge -r123757:124890 svn+ssh://svn.lindenlab.com/svn/linden/branches/improve-unit-testing/iface-04" for QAR-1496 2009-06-19 23:24:11 +00:00
Brad Kittenbrink 087bd26553 Merge of QAR-1383 event-system-7 into trunk.
svn merge -r 121797:121853 svn+ssh://svn.lindenlab.com/svn/linden/branches/merge-event-system-7
2009-06-04 16:24:21 +00:00
Nat Goodspeed dc93462991 svn merge -r113003:119136 svn+ssh://svn.lindenlab.com/svn/linden/branches/login-api/login-api-2 svn+ssh://svn.lindenlab.com/svn/linden/branches/login-api/login-api-3 2009-05-11 20:05:46 +00:00
Nat Goodspeed 3800c0df91 svn merge -r114679:114681 svn+ssh://svn.lindenlab.com/svn/linden/branches/event-system/event-system-7 svn+ssh://svn.lindenlab.com/svn/linden/branches/event-system/event-system-8 2009-05-08 21:08:08 +00:00
Bryan O'Sullivan b5ef0bb6c2 Clean up use of tut 2009-03-02 22:28:49 +00:00
Robert Knop c88b470a8a svn merge -r108815:112761 svn+ssh://svn.lindenlab.com/svn/linden/branches/server/server-1.26
The biggest things in this are Scalable Space Servers and Maint-Server-6

QAR-1209 : SSS
QAR-1295 : maint-server-6

Conflicts resolved by prospero:

C    scripts/farm_distribute

C    scripts/automated_build_scripts/build-linux.sh : resolved by
                     prospero, mostly kept the merge-right version in
                     the conflict, but there was one block of repeated
                     code from earlier that I removed.

C    scripts/automated_build_scripts/build-mac.sh : kept merge-right

C    indra/llcommon/llversionserver.h : svn revert

C    indra/newsim/llsimparcel.h : kept *both*... working had "setArea",
                    merge-right had exportStream and importStream

C    indra/newsim/llsimparcel.cpp : see llsimparcel.h

C    indra/newsim/lltask.h : working had LLTask derived also from
                   LLScriptResourceConsumer, merge-right had LLTask
                   dervied also from LLAgentPosition.  To resolve
                   conflict, derive from both.

C    indra/newsim/lllslmanager.h : kept merge-right (had an added comment)

C    indra/llmessage/llhttpnode.h : kept working (added the definition
                   of method LLHTTPNode::extendedResult)

C    indra/lscript/lscript_execute_mono/llscriptexecutemono.cpp
C    indra/lscript/lscript_execute_mono/llscriptexecutemono.h
                  : These two were resolved by si, in consultation with daveh


I also had to add the following stubs to
indra/newsim/tests/llgodkickutils_test.cpp in order to get it to
compile:

  // LLScriptResourceConsumer interface methods in LLTask
  LLScriptResource::LLScriptResource() { }
  LLScriptResourcePool::LLScriptResourcePool() { }
  LLScriptResourcePool LLScriptResourcePool::null;

  LLScriptResourceConsumer::LLScriptResourceConsumer() { }
  LLScriptResourcePool& LLScriptResourceConsumer::getScriptResourcePool() { return LLScriptResourcePool::null; }
  const LLScriptResourcePool& LLScriptResourceConsumer::getScriptResourcePool() const { return LLScriptResourcePool::null; }
  bool LLScriptResourceConsumer::switchScriptResourcePools(LLScriptResourcePool& new_pool) { return false; }
  bool LLScriptResourceConsumer::canUseScriptResourcePool(const LLScriptResourcePool& resource_pool) { return false; }
  bool LLScriptResourceConsumer::isInPool(const LLScriptResourcePool& resource_pool) { return false; }
  void LLScriptResourceConsumer::setScriptResourcePool(LLScriptResourcePool& pool) { }

  S32 LLTask::getUsedPublicURLs() const { return 0; }
  void LLTask::setScriptResourcePool(LLScriptResourcePool& pool) { }
2009-02-25 21:02:17 +00:00
Bryan O'Sullivan 818535576c Switch more libraries over to target_link_libraries 2008-08-29 22:16:44 +00:00
Bryan O'Sullivan 9db949eec3 svn merge -r88066:88786 svn+ssh://svn.lindenlab.com/svn/linden/branches/cmake-9-merge
dataserver-is-deprecated
for-fucks-sake-whats-with-these-commit-markers
2008-06-02 21:14:31 +00:00