diff options
author | Daniel Burrows <dburrows@debian.org> | 2010-07-10 15:12:23 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2010-07-10 15:12:23 -0700 |
commit | 819c9845ec2651f8797b0d13f5ffd0d5d1df685e (patch) | |
tree | d0ebade43dad741bc9111c85ee25ae6e5cd5ee70 /tests | |
parent | 885057a516509a1d740042102f0839bdfa08e112 (diff) | |
download | aptitude-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.cc | 5 |
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)); |