Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-07-10 | Delete an obsolete comment that snuck into my earlier roll-up patch. | Daniel Burrows | 1 | -11/+0 | |
2010-07-10 | Add a complete() routine to the download progress view that's invoked when ↵ | Daniel Burrows | 3 | -1/+32 | |
the whole download process is complete. Necessary to fully expose the events generated by download_signal_log. | |||||
2010-07-10 | Flesh out the implementation of the download progress display and its tests. | Daniel_Burrows@alumni.brown.edu | 12 | -75/+1772 | |
2010-07-10 | Split the teletype mock's constructors into default/nice/strict variants too. | Daniel Burrows | 4 | -11/+52 | |
2010-07-10 | Make transient_message a Mock and use its strict variant. | Daniel Burrows | 3 | -3/+11 | |
2010-07-10 | Make combining_terminal_output implement the same interface as Mock. | Daniel Burrows | 5 | -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-10 | Use Mock to implement terminal_with_combined_output. | Daniel Burrows | 3 | -9/+4 | |
2010-07-10 | Make the terminal_metrics mock a Mock instance and use its strict variant ↵ | Daniel Burrows | 5 | -11/+7 | |
everywhere. | |||||
2010-07-10 | Make the terminal_locale mock a Mock instance and use its strict variant in ↵ | Daniel Burrows | 5 | -11/+7 | |
the tests. | |||||
2010-07-10 | Make the terminal input class a Mock instance. | Daniel Burrows | 2 | -8/+4 | |
2010-07-10 | Make the terminal_output mock a Mock instance. | Daniel Burrows | 2 | -8/+6 | |
2010-07-10 | Add a utility class that makes it easy to use strict/nice mocks. | Daniel Burrows | 3 | -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-10 | Have the teletype mark calls to the terminal's output() routine as expected. | Daniel_Burrows@alumni.brown.edu | 1 | -2/+2 | |
This eliminates the "uninteresting call" noise in the output. | |||||
2010-07-10 | Give mocks::terminal_input::prompt_for_input a default return value. | Daniel Burrows | 1 | -1/+4 | |
Otherwise tests will abort if it's invoked unexpectedly, instead of registering a failure and continuing. | |||||
2010-07-10 | Split the "terminal" interface into several interfaces that each export one ↵ | Daniel_Burrows@alumni.brown.edu | 47 | -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-09 | Updated German translation | Jens Seidel | 1 | -24/+15 | |
2010-07-09 | A translator message has to be directly infront of the gettext call | Jens Seidel | 1 | -2/+2 | |
2010-07-09 | Moved a wrongly placed translator comment | Jens Seidel | 2 | -3/+3 | |
There was probably a minor merge error related to the commits 8919406ce19f57ebf3f553542d2302cc6f2f7f30 5363ccdc30dc97b1112e3b1b76c9efb07ecc5173 | |||||
2010-07-09 | Added a missing "\n" in a message for consistency | Jens Seidel | 1 | -1/+1 | |
2010-07-03 | Move the search input controller and view classes over to generic/. | Daniel_Burrows@alumni.brown.edu | 26 | -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-03 | Move the throttle object to src/generic/util. | Daniel_Burrows@alumni.brown.edu | 16 | -68/+91 | |
2010-07-03 | Move the core command-line progress view interface to generic/views. | Daniel_Burrows@alumni.brown.edu | 17 | -94/+177 | |
2010-07-03 | Fix up the SConscript files. | Daniel_Burrows@alumni.brown.edu | 3 | -0/+10 | |
2010-07-02 | Remove the now-obsolete preserve_and_advance() routine. | Daniel Burrows | 4 | -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-02 | Use display_and_advance() for the standard progress meters. | Daniel Burrows | 2 | -53/+23 | |
2010-07-02 | Add a routine on transient_message to display a non-wrapped message and move ↵ | Daniel Burrows | 5 | -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-30 | Add a view interface for displaying the download progress and an ↵ | Daniel_Burrows@alumni.brown.edu | 17 | -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-27 | Adapt patch from Ubuntu to fix a formatting problem in the progress code on ↵ | Daniel Burrows | 2 | -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-20 | Uniformly use $(srcdir) when grabbing files for install using $(wildcard), ↵ | Daniel Burrows | 6 | -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-19 | Don't try to link GTK+-related code into the tests if the GTK+ frontend ↵ | Daniel Burrows | 1 | -2/+5 | |
isn't being built. | |||||
2010-06-19 | Don't try to test the search input controller if the GTK+ frontend wasn't built. | Daniel Burrows | 1 | -0/+4 | |
If the GTK+ frontend isn't built, neither is the controller, so the test won't build. | |||||
2010-06-18 | More pofile updates, which for some reason didn't happen previously despite ↵ | Daniel Burrows | 5 | -3442/+3321 | |
my trying to update them multiple times. | |||||
2010-06-18 | Explicitly include gmock/gtest -- they should be picked up by another ↵ | Daniel Burrows | 1 | -0/+3 | |
include file, but I prefer listing all the dependencies anyway. | |||||
2010-06-18 | Add a Makefile for src/gtk/views/mocks, so that I can distribute the .h file ↵ | Daniel Burrows | 3 | -0/+3 | |
it contains. Without this I can't build the unit tests. | |||||
2010-06-18 | Distribute enumerator_transform. | Daniel Burrows | 2 | -0/+2 | |
2010-06-18 | Update translations in po/. | Daniel Burrows | 40 | -27042/+30270 | |
2010-06-18 | Include make_shared.hpp (why did this compile before?) | Daniel Burrows | 1 | -0/+1 | |
2010-06-18 | Add dynamic_list_impl.h to the list of distributed files. | Daniel Burrows | 1 | -0/+1 | |
2010-06-18 | Add more generated files and the distribution tarfiles to .gitignore. | Daniel Burrows | 1 | -0/+5 | |
2010-06-18 | Bump the version number to 0.6.3. | Daniel Burrows | 3 | -2/+83 | |
2010-06-18 | Extract the declarations of the global pointers to apt structures into a ↵ | Daniel Burrows | 5 | -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-18 | Re-enable all the unit tests. | Daniel Burrows | 1 | -2/+2 | |
It looks like I disabled two of them to speed up testing, then accidentally committed that change. | |||||
2010-06-18 | Use the new configure checks to support both the old and the new versions of ↵ | Daniel Burrows | 6 | -49/+291 | |
libept. | |||||
2010-06-18 | Write configure checks to empirically verify various libept functionality. | Daniel Burrows | 5 | -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-15 | Invoke the new done() routine when finished with searches and when finished ↵ | Daniel Burrows | 3 | -3/+3 | |
with operations that use the OpProgress implementation. | |||||
2010-06-15 | Add support to the command-line progress display object for showing that the ↵ | Daniel Burrows | 8 | -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-15 | Make the testing of search progress throttling hopefully more robust. | Daniel Burrows | 1 | -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-10 | Put some mock expectations that should be in sequence in the scope of ↵ | Daniel Burrows | 1 | -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-10 | Add support in the transient message for making a message permanent and ↵ | Daniel Burrows | 5 | -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-10 | Fix the teletype mock to only output set_last_line() when the last line has ↵ | Daniel Burrows | 2 | -31/+50 | |
actually changed. In particular, this means that outputting "\n" after a flush won't redundantly update the last line. |