• rlarocque@chromium.org's avatar
    sync: Add interfaces for per-type sync · 5a435fc9
    rlarocque@chromium.org authored
    Puts the DirectoryCommitContributor and DirectoryUpdateHandler
    classes behind interfaces.  These classes were always intended
    to form the basis of an abstract interface.  Now we can start
    to introduce alternate implementations of them.
    
    This CL includes one such alternate implementation.  It adds
    the MockUpdateHandler and uses it to remove some unnecessary
    boilerplate from the download unit tests.
    
    This CL also resolves an old TODO.  It renames the SyncDirectory*
    classes to Directory*, since the 'Sync' part of the name is redundant.
    
    This should have no effect on program behavior.
    
    BUG=278484
    
    Review URL: https://codereview.chromium.org/161253002
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251969 0039d316-1c4b-4281-b951-d872f2087c98
    5a435fc9
directory_commit_contribution.cc 5.67 KB