summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-07-10Delete an obsolete comment that snuck into my earlier roll-up patch.Daniel Burrows1-11/+0
2010-07-10Add a complete() routine to the download progress view that's invoked when ↵Daniel Burrows3-1/+32
the whole download process is complete. Necessary to fully expose the events generated by download_signal_log.
2010-07-10Flesh out the implementation of the download progress display and its tests.Daniel_Burrows@alumni.brown.edu12-75/+1772
2010-07-10Split the teletype mock's constructors into default/nice/strict variants too.Daniel Burrows4-11/+52
2010-07-10Make transient_message a Mock and use its strict variant.Daniel Burrows3-3/+11
2010-07-10Make combining_terminal_output implement the same interface as Mock.Daniel Burrows5-8/+42
I can't use Mock directly because this class already inherits from Mock, so there would be confusion about which static members to expose (well, I could resolve it, but that's about as much trouble as implementing the interface directly).
2010-07-10Use Mock to implement terminal_with_combined_output.Daniel Burrows3-9/+4
2010-07-10Make the terminal_metrics mock a Mock instance and use its strict variant ↵Daniel Burrows5-11/+7
everywhere.
2010-07-10Make the terminal_locale mock a Mock instance and use its strict variant in ↵Daniel Burrows5-11/+7
the tests.
2010-07-10Make the terminal input class a Mock instance.Daniel Burrows2-8/+4
2010-07-10Make the terminal_output mock a Mock instance.Daniel Burrows2-8/+6
2010-07-10Add a utility class that makes it easy to use strict/nice mocks.Daniel Burrows3-2/+95
The idea is to formalize the friending/named constructor patterns used in the existing mocks, and extend them to support creating nice and strict mocks in addition to the default ones. I have deliberately changed the default mock constructor from create() to create_default(); I want it to be explicit which variant is being used, and I also want existing code to fail so I can update it. Strict mocks should really be the default in most cases.
2010-07-10Have the teletype mark calls to the terminal's output() routine as expected.Daniel_Burrows@alumni.brown.edu1-2/+2
This eliminates the "uninteresting call" noise in the output.
2010-07-10Give mocks::terminal_input::prompt_for_input a default return value.Daniel Burrows1-1/+4
Otherwise tests will abort if it's invoked unexpectedly, instead of registering a failure and continuing.
2010-07-10Split the "terminal" interface into several interfaces that each export one ↵Daniel_Burrows@alumni.brown.edu47-617/+651
piece of its functionality. This will make some of the tests easier to write, since often some of the code requires just the ability to read the screen width, or just the ability to read input from the terminal. Splitting the terminal interface means no need to mock out the parts that aren't used.
2010-07-09Updated German translationJens Seidel1-24/+15
2010-07-09A translator message has to be directly infront of the gettext callJens Seidel1-2/+2
2010-07-09Moved a wrongly placed translator commentJens Seidel2-3/+3
There was probably a minor merge error related to the commits 8919406ce19f57ebf3f553542d2302cc6f2f7f30 5363ccdc30dc97b1112e3b1b76c9efb07ecc5173
2010-07-09Added a missing "\n" in a message for consistencyJens Seidel1-1/+1
2010-07-03Move the search input controller and view classes over to generic/.Daniel_Burrows@alumni.brown.edu26-111/+103
As a side effect, this creates a "controllers" directory in the generic tree, and removes the now-empty GTK+-specific controller and view directories. The README files are moved over to the generic locations and tweaked to be correct for their new home.
2010-07-03Move the throttle object to src/generic/util.Daniel_Burrows@alumni.brown.edu16-68/+91
2010-07-03Move the core command-line progress view interface to generic/views.Daniel_Burrows@alumni.brown.edu17-94/+177
2010-07-03Fix up the SConscript files.Daniel_Burrows@alumni.brown.edu3-0/+10
2010-07-02Remove the now-obsolete preserve_and_advance() routine.Daniel Burrows4-32/+0
Its only real purpose was to do what display_and_advance() does better -- i.e., display a durable progress notification and move to the next line.
2010-07-02Use display_and_advance() for the standard progress meters.Daniel Burrows2-53/+23
2010-07-02Add a routine on transient_message to display a non-wrapped message and move ↵Daniel Burrows5-0/+74
to the next line. This should be useful for things like printing a status message alongside some sort of progress indicator -- set_text() followed by advance() is not really ideal since it truncates the line.
2010-06-30Add a view interface for displaying the download progress and an ↵Daniel_Burrows@alumni.brown.edu17-2/+673
implementation for showing the download progress at the command line and a stub implementation. This is mostly just a streamlining of the apt interface, but putting the code behind a clean view will also make it much more testable.
2010-06-27Adapt patch from Ubuntu to fix a formatting problem in the progress code on ↵Daniel Burrows2-5/+10
large terminals. (Closes: #586470) This module needs a broader overhaul, but the patch is quick and easy to apply and will fix the immediate problem.
2010-06-20Uniformly use $(srcdir) when grabbing files for install using $(wildcard), ↵Daniel Burrows6-6/+6
so wildcarded files get picked up even if the build directory isn't the source directory. Most importantly, this means that translated defaults are available again. (Closes: #586508, #586511)
2010-06-19Don't try to link GTK+-related code into the tests if the GTK+ frontend ↵Daniel Burrows1-2/+5
isn't being built.
2010-06-19Don't try to test the search input controller if the GTK+ frontend wasn't built.Daniel Burrows1-0/+4
If the GTK+ frontend isn't built, neither is the controller, so the test won't build.
2010-06-18More pofile updates, which for some reason didn't happen previously despite ↵Daniel Burrows5-3442/+3321
my trying to update them multiple times.
2010-06-18Explicitly include gmock/gtest -- they should be picked up by another ↵Daniel Burrows1-0/+3
include file, but I prefer listing all the dependencies anyway.
2010-06-18Add a Makefile for src/gtk/views/mocks, so that I can distribute the .h file ↵Daniel Burrows3-0/+3
it contains. Without this I can't build the unit tests.
2010-06-18Distribute enumerator_transform.Daniel Burrows2-0/+2
2010-06-18Update translations in po/.Daniel Burrows40-27042/+30270
2010-06-18Include make_shared.hpp (why did this compile before?)Daniel Burrows1-0/+1
2010-06-18Add dynamic_list_impl.h to the list of distributed files.Daniel Burrows1-0/+1
2010-06-18Add more generated files and the distribution tarfiles to .gitignore.Daniel Burrows1-0/+5
2010-06-18Bump the version number to 0.6.3.Daniel Burrows3-2/+83
2010-06-18Extract the declarations of the global pointers to apt structures into a ↵Daniel Burrows5-32/+61
separate file to reduce test dependencies. No reason for tests to pull in half of src/generic/apt just because a module linked into the test happens to reference a global pointer.
2010-06-18Re-enable all the unit tests.Daniel Burrows1-2/+2
It looks like I disabled two of them to speed up testing, then accidentally committed that change.
2010-06-18Use the new configure checks to support both the old and the new versions of ↵Daniel Burrows6-49/+291
libept.
2010-06-18Write configure checks to empirically verify various libept functionality.Daniel Burrows5-100/+534
This is necessary to support the upcoming version of ept (currently in experimental). I even did it "right" and tested each feature individually. Aren't I cool.
2010-06-15Invoke the new done() routine when finished with searches and when finished ↵Daniel Burrows3-3/+3
with operations that use the OpProgress implementation.
2010-06-15Add support to the command-line progress display object for showing that the ↵Daniel Burrows8-71/+596
current task is done, and for displaying progress the way classic apt tools do. The new code supports both "[ 40%] Task" and "Task... 40%" display styles, and when a task is complete the code will either erase it (default) or advance to the next terminal line (like apt-get does). These behaviors are controlled by apt options.
2010-06-15Make the testing of search progress throttling hopefully more robust.Daniel Burrows1-15/+16
Instead of relying on knowing how many times each routine checks for throttling, I just fully disable and fully enable throttling depending on whether the next call should be throttled or not.
2010-06-10Put some mock expectations that should be in sequence in the scope of ↵Daniel Burrows1-22/+67
InSequence(). Note that calls to get_screen_width() are left off, since we don't care when it happens and it can happen any number of times.
2010-06-10Add support in the transient message for making a message permanent and ↵Daniel Burrows5-2/+33
advancing to the next line. i.e., for explicitly outputting a newline. The main advantage of this is that it lets me give the progress display a mode that emulates the old apt progress display (specifically, the behavior that completed steps remain visible).
2010-06-10Fix the teletype mock to only output set_last_line() when the last line has ↵Daniel Burrows2-31/+50
actually changed. In particular, this means that outputting "\n" after a flush won't redundantly update the last line.