~mandel/ubuntu-download-manager/wily-add-appid-metadata

« back to all changes in this revision

Viewing changes to tests/downloads/daemon/test_download_factory.cpp

  • Committer: CI bot
  • Author(s): Manuel de la Pena, Manuel de la Peña
  • Date: 2014-11-26 12:56:56 UTC
  • mfrom: (330.1.17 adapt-network-changes)
  • Revision ID: ps-jenkins@lists.canonical.com-20141126125656-ixnxtea9a4h5eo6p
Ensure that the download manager does track network changes correctly. Fixes: #1235138, #1390205
Approved by: Barry Warsaw, PS Jenkins bot, Manuel de la Peña

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <ubuntu/transfers/system/hash_algorithm.h>
23
23
#include <ubuntu/transfers/system/file_manager.h>
24
24
#include <ubuntu/transfers/system/uuid_utils.h>
 
25
#include <network_session.h>
25
26
#include "test_download_factory.h"
26
27
 
27
28
using ::testing::_;
39
40
TestDownloadFactory::cleanup() {
40
41
    BaseTestCase::cleanup();
41
42
 
42
 
    SystemNetworkInfo::deleteInstance();
 
43
    NetworkSession::deleteInstance();
43
44
    delete _downFactory;
44
45
    FileManager::deleteInstance();
45
46
    RequestFactory::deleteInstance();