diff options
author | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-08 23:38:21 +0000 |
---|---|---|
committer | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-08 23:38:21 +0000 |
commit | 51e6efd247934b09cd531428411f6ed377e5665d (patch) | |
tree | 24286f252a2815997dadbb43972cee09f47ed64b /sync/sync_tests.gypi | |
parent | a39feb9e9cc9ac5c63e8a481aee6e8f8ef39c872 (diff) | |
download | chromium_src-51e6efd247934b09cd531428411f6ed377e5665d.zip chromium_src-51e6efd247934b09cd531428411f6ed377e5665d.tar.gz chromium_src-51e6efd247934b09cd531428411f6ed377e5665d.tar.bz2 |
sync: Inject sync/'s dependency on invalidations
Defines an InvalidationInterface class and uses it to break any direct
dependencies from sync code on syncer::Invalidation. Despite its name,
syncer::Invalidation should belong solely to the invalidations
component, which code in the sync/ directory should not depend on.
Changes the interface in the sync engine from copying
syncer::Invalidation to managing scoped_ptr<InvalidationInterface>.
This change in memory management was required to support the use of an
abstract interface.
Removes the DroppedInvaldiationTracker. This class was previously only
used by sync. The small benefit provided by this class is outweighed by
the amount of glue code it would take to maintain it.
Changes tests to conform to the new interface. Adds some test-only
implementations of InvalidationInterface and some associated classes.
BUG=259559
Review URL: https://codereview.chromium.org/322333004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281884 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/sync_tests.gypi')
-rw-r--r-- | sync/sync_tests.gypi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sync/sync_tests.gypi b/sync/sync_tests.gypi index 416cd8a..1b48fe4 100644 --- a/sync/sync_tests.gypi +++ b/sync/sync_tests.gypi @@ -59,6 +59,12 @@ 'test/fake_encryptor.h', 'test/fake_sync_encryption_handler.cc', 'test/fake_sync_encryption_handler.h', + 'test/mock_invalidation.cc', + 'test/mock_invalidation.h', + 'test/mock_invalidation_tracker.cc', + 'test/mock_invalidation_tracker.h', + 'test/trackable_mock_invalidation.cc', + 'test/trackable_mock_invalidation.h', 'test/null_directory_change_delegate.cc', 'test/null_directory_change_delegate.h', 'test/null_transaction_observer.cc', |