summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2010-07-10 15:12:23 -0700
committerDaniel Burrows <dburrows@debian.org>2010-07-10 15:12:23 -0700
commit819c9845ec2651f8797b0d13f5ffd0d5d1df685e (patch)
treed0ebade43dad741bc9111c85ee25ae6e5cd5ee70 /tests
parent885057a516509a1d740042102f0839bdfa08e112 (diff)
downloadaptitude-819c9845ec2651f8797b0d13f5ffd0d5d1df685e.tar.gz
Add a complete() routine to the download progress view that's invoked when the whole download process is complete.
Necessary to fully expose the events generated by download_signal_log.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmdline_download_progress_display.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_cmdline_download_progress_display.cc b/tests/test_cmdline_download_progress_display.cc
index 9c5841ad..57b23de3 100644
--- a/tests/test_cmdline_download_progress_display.cc
+++ b/tests/test_cmdline_download_progress_display.cc
@@ -630,6 +630,11 @@ TEST_P(CmdlineDownloadProgressDisplayTest, MediaChangeEOF)
sigc::mem_fun(callback, &MockMediaChangeCallback::media_change));
}
+TEST_P(CmdlineDownloadProgressDisplayTest, CompleteDoesNothing)
+{
+ progress->complete(4, 100, 3);
+}
+
INSTANTIATE_TEST_CASE_P(WithMessages,
CmdlineDownloadProgressDisplayTest,
Values(true));