Merge lp:~dobey/ubuntuone-credentials/qdatetime-valid into lp:ubuntuone-credentials
Proposed by
dobey
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Alejandro J. Cura | ||||||||
Approved revision: | 145 | ||||||||
Merged at revision: | 146 | ||||||||
Proposed branch: | lp:~dobey/ubuntuone-credentials/qdatetime-valid | ||||||||
Merge into: | lp:ubuntuone-credentials | ||||||||
Diff against target: |
225 lines (+103/-13) 6 files modified
debian/libubuntuoneauth-2.0-0.symbols (+3/-2) libubuntuoneauth/ssoservice.cpp (+2/-1) libubuntuoneauth/tests/test_token.cpp (+56/-7) libubuntuoneauth/tests/test_token.h (+6/-0) libubuntuoneauth/token.cpp (+31/-3) libubuntuoneauth/token.h (+5/-0) |
||||||||
To merge this branch: | bzr merge lp:~dobey/ubuntuone-credentials/qdatetime-valid | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alejandro J. Cura (community) | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Review via email: mp+233827@code.launchpad.net |
Commit message
Add new ctor for Token to accept created/updated date strings.
Use the new ctor when creating the token from the REST response.
Turn the date string returned from the server into an ISO string for parsing.
Add more tests.
To post a comment you must log in.
Please refactor the parsing of the date to a function, and unit test the date parsing only on it.