~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/test/accounttest.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include "logger.h"
36
36
#include "validator.h"
37
37
 
38
 
void AccountTest::TestAddRemove(void) {
39
 
        _debug ("-------------------- AccountTest::TestAddRemove --------------------\n");
40
 
 
41
 
        std::map<std::string, std::string> details;
42
 
        details[CONFIG_ACCOUNT_TYPE] = "SIP";
43
 
        details[CONFIG_ACCOUNT_ENABLE] = "false";
44
 
 
45
 
        std::string accountId = Manager::instance().addAccount(details);
46
 
        CPPUNIT_ASSERT(Validator::isNotNull(accountId));
47
 
        CPPUNIT_ASSERT(Manager::instance().accountExists(accountId));
48
 
 
49
 
        Manager::instance().removeAccount(accountId);
50
 
 
51
 
        CPPUNIT_ASSERT(!Manager::instance().accountExists(accountId));
 
38
void AccountTest::TestAddRemove (void)
 
39
{
 
40
    _debug ("-------------------- AccountTest::TestAddRemove --------------------\n");
 
41
 
 
42
    std::map<std::string, std::string> details;
 
43
    details[CONFIG_ACCOUNT_TYPE] = "SIP";
 
44
    details[CONFIG_ACCOUNT_ENABLE] = "false";
 
45
 
 
46
    std::string accountId = Manager::instance().addAccount (details);
 
47
    CPPUNIT_ASSERT (Validator::isNotNull (accountId));
 
48
    CPPUNIT_ASSERT (Manager::instance().accountExists (accountId));
 
49
 
 
50
    Manager::instance().removeAccount (accountId);
 
51
 
 
52
    CPPUNIT_ASSERT (!Manager::instance().accountExists (accountId));
52
53
}