Skip to content
Snippets Groups Projects
Commit 41bc5649 authored by Drake Arconis's avatar Drake Arconis
Browse files

Merge

parents 4d261c0c f33e52d0
No related branches found
No related tags found
No related merge requests found
...@@ -46,13 +46,13 @@ ...@@ -46,13 +46,13 @@
#include "llstl.h" // for DeletePointer() #include "llstl.h" // for DeletePointer()
#include "llstring.h" #include "llstring.h"
#include "lleventtimer.h" #include "lleventtimer.h"
#if LL_WINDOWS #if LL_WINDOWS
#pragma warning (push) #pragma warning (push)
#pragma warning (disable : 4091) // compiler thinks might use uninitialized var, but no #pragma warning (disable : 4091) // compiler thinks might use uninitialized var, but no
#endif #endif
#include "google_breakpad/exception_handler.h" #include "google_breakpad/exception_handler.h"
#if LL_WINDOWS #if LL_WINDOWS
#pragma warning (pop) #pragma warning (pop)
#endif #endif
#include "stringize.h" #include "stringize.h"
......
...@@ -121,7 +121,7 @@ bool LLGridManager::addGrid(LLSD& grid_data) ...@@ -121,7 +121,7 @@ bool LLGridManager::addGrid(LLSD& grid_data)
} }
LLGridManager::LLGridManager() LLGridManager::LLGridManager()
: :
mIsInProductionGrid(false) mPlatform(NOPLATFORM)
{ {
} }
...@@ -130,11 +130,13 @@ void LLGridManager::getLoginURIs(std::vector<std::string>& uris) ...@@ -130,11 +130,13 @@ void LLGridManager::getLoginURIs(std::vector<std::string>& uris)
uris.push_back(VIEWERLOGIN_URI); uris.push_back(VIEWERLOGIN_URI);
} }
void LLGridManager::addSystemGrid(const std::string& label, void LLGridManager::addSystemGrid(const std::string& label,
const std::string& name, const std::string& name,
const std::string& login, const std::string& login,
const std::string& helper, const std::string& helper,
const std::string& login_page, const std::string& login_page,
const std::string& password_url,
const std::string& register_url,
const std::string& update_url_base, const std::string& update_url_base,
const std::string& login_id) const std::string& login_id)
{ {
...@@ -149,7 +151,12 @@ void LLGridManager::setGridChoice(const std::string& grid_name) ...@@ -149,7 +151,12 @@ void LLGridManager::setGridChoice(const std::string& grid_name)
{ {
} }
bool LLGridManager::isInProductionGrid() bool LLGridManager::isInSecondlife()
{
return false;
}
bool LLGridManager::isInOpenSim()
{ {
return false; return false;
} }
......
...@@ -401,7 +401,8 @@ namespace tut ...@@ -401,7 +401,8 @@ namespace tut
ensure_equals("update url base for Agni", // relies on agni being the default ensure_equals("update url base for Agni", // relies on agni being the default
std::string("https://update.secondlife.com/update"), std::string("https://update.secondlife.com/update"),
LLGridManager::getInstance()->getUpdateServiceURL()); LLGridManager::getInstance()->getUpdateServiceURL());
ensure("Is Agni a production grid", LLGridManager::getInstance()->isInProductionGrid()); ensure("Is Agni Second Life", LLGridManager::getInstance()->isInSecondlife());
ensure("Agni is NOT OpenSim", LLGridManager::getInstance()->isInOpenSim());
std::vector<std::string> uris; std::vector<std::string> uris;
LLGridManager::getInstance()->getLoginURIs(uris); LLGridManager::getInstance()->getLoginURIs(uris);
ensure_equals("getLoginURIs size", 1, uris.size()); ensure_equals("getLoginURIs size", 1, uris.size());
...@@ -418,8 +419,10 @@ namespace tut ...@@ -418,8 +419,10 @@ namespace tut
std::string("AltGrid")); std::string("AltGrid"));
ensure("alternative grid is not a system grid", ensure("alternative grid is not a system grid",
!LLGridManager::getInstance()->isSystemGrid()); !LLGridManager::getInstance()->isSystemGrid());
ensure("alternative grid is not a production grid", ensure("alternative grid is OpenSim",
!LLGridManager::getInstance()->isInProductionGrid()); LLGridManager::getInstance()->isInOpenSim());
ensure("alternative grid is not Second Life",
LLGridManager::getInstance()->isInSecondlife());
} }
} }
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#include "llsingleton.h" #include "llsingleton.h"
#include "lltrans.h" #include "lltrans.h"
#include "lluistring.h" #include "lluistring.h"
#include "../llagent.h"
#include "../llagentaccess.h"
#include "../llviewertexture.h" #include "../llviewertexture.h"
#include "../llworldmapmessage.h" #include "../llworldmapmessage.h"
// Class to test // Class to test
...@@ -46,6 +48,11 @@ ...@@ -46,6 +48,11 @@
// * Do not make any assumption as to how those classes or methods work (i.e. don't copy/paste code) // * Do not make any assumption as to how those classes or methods work (i.e. don't copy/paste code)
// * A simulator for a class can be implemented here. Please comment and document thoroughly. // * A simulator for a class can be implemented here. Please comment and document thoroughly.
// Stub LLAgent calls
LLAgent::LLAgent() : mAgentAccess(NULL) { }
LLAgent::~LLAgent() { }
LLAgent gAgent;
// Stub image calls // Stub image calls
void LLGLTexture::setBoostLevel(S32 ) { } void LLGLTexture::setBoostLevel(S32 ) { }
void LLGLTexture::setAddressMode(LLTexUnit::eTextureAddressMode ) { } void LLGLTexture::setAddressMode(LLTexUnit::eTextureAddressMode ) { }
...@@ -63,7 +70,6 @@ LLWorldMipmap::~LLWorldMipmap() { } ...@@ -63,7 +70,6 @@ LLWorldMipmap::~LLWorldMipmap() { }
void LLWorldMipmap::reset() { } void LLWorldMipmap::reset() { }
void LLWorldMipmap::dropBoostLevels() { } void LLWorldMipmap::dropBoostLevels() { }
void LLWorldMipmap::equalizeBoostLevels() { } void LLWorldMipmap::equalizeBoostLevels() { }
LLPointer<LLViewerFetchedTexture> LLWorldMipmap::getObjectsTile(U32 grid_x, U32 grid_y, S32 level, bool load) { return NULL; }
// Stub other stuff // Stub other stuff
std::string LLTrans::getString(const std::string &, const LLStringUtil::format_map_t& ) { return std::string("test_trans"); } std::string LLTrans::getString(const std::string &, const LLStringUtil::format_map_t& ) { return std::string("test_trans"); }
...@@ -366,13 +372,6 @@ namespace tut ...@@ -366,13 +372,6 @@ namespace tut
} catch (...) { } catch (...) {
fail("LLWorldMap::equalizeBoostLevels() test failed"); fail("LLWorldMap::equalizeBoostLevels() test failed");
} }
// Test 7 : getObjectsTile()
try {
LLPointer<LLViewerFetchedTexture> image = mWorld->getObjectsTile((U32)(X_WORLD_TEST/REGION_WIDTH_METERS), (U32)(Y_WORLD_TEST/REGION_WIDTH_METERS), 1);
ensure("LLWorldMap::getObjectsTile() failed", image.isNull());
} catch (...) {
fail("LLWorldMap::getObjectsTile() test failed with exception");
}
} }
// Test management of LLSimInfo lists // Test management of LLSimInfo lists
template<> template<> template<> template<>
...@@ -394,12 +393,12 @@ namespace tut ...@@ -394,12 +393,12 @@ namespace tut
bool success; bool success;
LLUUID id; LLUUID id;
std::string name_sim = SIM_NAME_TEST; std::string name_sim = SIM_NAME_TEST;
success = mWorld->insertRegion( U32(X_WORLD_TEST), success = mWorld->insertRegion(U32(X_WORLD_TEST), U32(Y_WORLD_TEST),
U32(Y_WORLD_TEST), REGION_WIDTH_UNITS, REGION_WIDTH_UNITS,
name_sim, name_sim,
id, id,
SIM_ACCESS_PG, SIM_ACCESS_PG,
REGION_FLAGS_SANDBOX); REGION_FLAGS_SANDBOX);
list = mWorld->getRegionMap(); list = mWorld->getRegionMap();
ensure("LLWorldMap::insertRegion() failed", success && (list.size() == 1)); ensure("LLWorldMap::insertRegion() failed", success && (list.size() == 1));
......
...@@ -81,8 +81,8 @@ S32 LLDir::deleteFilesInDir(const std::string &dirname, ...@@ -81,8 +81,8 @@ S32 LLDir::deleteFilesInDir(const std::string &dirname,
{ return 0; } { return 0; }
void LLDir::setChatLogsDir(const std::string &path){} void LLDir::setChatLogsDir(const std::string &path){}
void LLDir::setPerAccountChatLogsDir(const std::string &username){} void LLDir::setPerAccountChatLogsDir(const std::string &username, const std::string &gridname){}
void LLDir::setLindenUserDir(const std::string &username){} void LLDir::setLindenUserDir(const std::string &username, const std::string &gridname){}
void LLDir::setSkinFolder(const std::string &skin_folder, const std::string& language){} void LLDir::setSkinFolder(const std::string &skin_folder, const std::string& language){}
std::string LLDir::getSkinFolder() const { return "default"; } std::string LLDir::getSkinFolder() const { return "default"; }
std::string LLDir::getLanguage() const { return "en"; } std::string LLDir::getLanguage() const { return "en"; }
...@@ -93,7 +93,7 @@ void LLDir::updatePerAccountChatLogsDir() {} ...@@ -93,7 +93,7 @@ void LLDir::updatePerAccountChatLogsDir() {}
#include "llviewernetwork.h" #include "llviewernetwork.h"
LLGridManager::LLGridManager() : LLGridManager::LLGridManager() :
mGrid("test.grid.lindenlab.com"), mGrid("test.grid.lindenlab.com"),
mIsInProductionGrid(false) mPlatform(NOPLATFORM)
{ {
} }
std::string LLGridManager::getUpdateServiceURL() std::string LLGridManager::getUpdateServiceURL()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment