DataDictionary::DataDictionary( const std::string& url ) throw( ConfigError ) : m_hasVersion( false ), m_checkFieldsOutOfOrder( true ), m_checkFieldsHaveValues( true ), m_checkUserDefinedFields( true ), m_orderedFieldsArray(0) { readFromURL( url ); }
bool result; BLOCKING_INVOKE_METHOD(this, "loadTestScene", Q_RETURN_ARG(bool, result), Q_ARG(QString, scene)); return result; } static const QString TEST_ROOT = "https://raw.githubusercontent.com/highfidelity/hifi_tests/master/"; static const QString TEST_BINARY_ROOT = "https://hifi-public.s3.amazonaws.com/test_scene_data/"; static const QString TEST_SCRIPTS_ROOT = TEST_ROOT + "scripts/"; static const QString TEST_SCENES_ROOT = TEST_ROOT + "scenes/"; DependencyManager::get<ResourceManager>()->setUrlPrefixOverride("atp:/", TEST_BINARY_ROOT + scene + ".atp/"); auto tree = qApp->getEntities()->getTree(); auto treeIsClient = tree->getIsClient(); // Force the tree to accept the load regardless of permissions tree->setIsClient(false); auto result = tree->readFromURL(TEST_SCENES_ROOT + scene + ".json"); tree->setIsClient(treeIsClient); return result; } bool TestScriptingInterface::startTracing(QString logrules) { if (!logrules.isEmpty()) { QLoggingCategory::setFilterRules(logrules); } if (!DependencyManager::isSet<tracing::Tracer>()) { return false; } DependencyManager::get<tracing::Tracer>()->startTracing(); return true;