summaryrefslogtreecommitdiff
path: root/apt-private/acqprogress.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-03-15 22:34:54 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-04-10 22:29:08 +0200
commitdfad5beea77d75983f6ff8a1b8296b74dd48203e (patch)
tree405a6e037cd162ec45b9757b826619a9d5f9f597 /apt-private/acqprogress.h
parentb8eba208daebe3e3f235983e44da9c398d6f7a57 (diff)
add a simple unit test for acquire progress
This isn't testing much of the 'complex' parts, but its better than nothing for now. Git-Dch: Ignore
Diffstat (limited to 'apt-private/acqprogress.h')
-rw-r--r--apt-private/acqprogress.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-private/acqprogress.h b/apt-private/acqprogress.h
index ab8170126..7cf990c65 100644
--- a/apt-private/acqprogress.h
+++ b/apt-private/acqprogress.h
@@ -13,9 +13,11 @@
#include <apt-pkg/macros.h>
#include <string>
+#include <iostream>
class APT_PUBLIC AcqTextStatus : public pkgAcquireStatus
{
+ std::ostream &out;
unsigned int &ScreenWidth;
size_t LastLineLength;
unsigned long ID;
@@ -35,7 +37,7 @@ class APT_PUBLIC AcqTextStatus : public pkgAcquireStatus
bool Pulse(pkgAcquire *Owner);
- AcqTextStatus(unsigned int &ScreenWidth,unsigned int const Quiet);
+ AcqTextStatus(std::ostream &out, unsigned int &ScreenWidth,unsigned int const Quiet);
};
#endif