#include "SessionTests.h" namespace test { SessionTests::SessionTests() { } void SessionTests::copyConstructable() { hws::Session uno = createSession(); hws::Session duo(uno); verifyDefaultSession(duo); } void SessionTests::assignable() { hws::Session uno = createSession(); hws::Session duo = uno; verifyDefaultSession(duo); } // Helpers hws::Session SessionTests::createSession() { hws::Session uno; uno.setUrl(QUrl("http://example.com")); uno.setUser("jdoe"); uno.setP4Ticket("1234"); return uno; } void SessionTests::verifyDefaultSession(const hws::Session & s) { QVERIFY(s.url() == QUrl("http://example.com")); QVERIFY(s.user() == "jdoe"); QVERIFY(s.p4Ticket() == "1234"); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15741 | ptomiak | Branch HWS for my use. | ||
//guest/perforce_software/helix-web-services/main/build/helix_web_services_client_qt/test/SessionTests.cpp | |||||
#2 | 15448 | tjuricek |
Qt SDK revision: remove higher-level objects from the SDK. It's likely we could add higher-level objects that adapt the executeMethodDone and convert the variant maps to something, well, typed and easier to use. That's not in my current scope of work, however. |
||
#1 | 14050 | tjuricek | Prep versioned release directory for inclusion into Helix Sync app. |