~mandel/ubuntu-download-manager/properties

« back to all changes in this revision

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

  • Committer: CI bot
  • Author(s): Manuel de la Peña
  • Date: 2014-07-21 09:39:39 UTC
  • mfrom: (304.2.8 write-upload-response)
  • Revision ID: ps-jenkins@lists.canonical.com-20140721093939-grgfcboq0ppb1dmz
On a succesful upload write the response to a secure local path for the client to read. 
Approved by: Sergio Schvezov, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <ubuntu/download_manager/metatypes.h>
23
23
#include <ubuntu/transfers/system/hash_algorithm.h>
24
24
#include <ubuntu/transfers/system/uuid_utils.h>
 
25
#include <network_reply.h>
25
26
#include "filename_mutex.h"
26
27
#include "matchers.h"
27
 
#include "network_reply.h"
28
28
#include "process.h"
29
29
#include "test_download.h"
30
30
 
1983
1983
    QByteArray data;  // empty data to ensure we do not send the range header
1984
1984
    auto file = new MockFile("test");
1985
1985
    QScopedPointer<MockNetworkReply> firstReply(new MockNetworkReply());
1986
 
    auto secondReply= new MockNetworkReply();
 
1986
    auto secondReply = new MockNetworkReply();
1987
1987
    qint64 size = 300;
1988
1988
 
1989
1989
    // write the expectations of the reply which is what we are