diff options
author | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-08 19:36:41 +0000 |
---|---|---|
committer | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-08 19:36:41 +0000 |
commit | 4f1aa29d992b9734d1d793bbd490505b36752021 (patch) | |
tree | df939c4ccb25bf8f6ed70d683f29de5a165df618 /sync/test | |
parent | 4bbcae51f6b736b1735a36d39d9cd3c7a2cc81d3 (diff) | |
download | chromium_src-4f1aa29d992b9734d1d793bbd490505b36752021.zip chromium_src-4f1aa29d992b9734d1d793bbd490505b36752021.tar.gz chromium_src-4f1aa29d992b9734d1d793bbd490505b36752021.tar.bz2 |
[Sync] Add support for proxy types
Proxy types are those that have no sync representation, and are used as
placeholder to implicitly enable other types. They are never communicated to
the server, and have no presence in the local sync directory.
BUG=170162,139726
TBR=jam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11958029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181534 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/test')
-rw-r--r-- | sync/test/engine/mock_connection_manager.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sync/test/engine/mock_connection_manager.cc b/sync/test/engine/mock_connection_manager.cc index afdd62d..cc0c1cb 100644 --- a/sync/test/engine/mock_connection_manager.cc +++ b/sync/test/engine/mock_connection_manager.cc @@ -405,8 +405,10 @@ void MockConnectionManager::ProcessGetUpdates( // Verify that the GetUpdates filter sent by the Syncer matches the test // expectation. - for (int i = FIRST_REAL_MODEL_TYPE; i < MODEL_TYPE_COUNT; ++i) { - ModelType model_type = ModelTypeFromInt(i); + ModelTypeSet protocol_types = ProtocolTypes(); + for (ModelTypeSet::Iterator iter = protocol_types.First(); iter.Good(); + iter.Inc()) { + ModelType model_type = iter.Get(); sync_pb::DataTypeProgressMarker const* progress_marker = GetProgressMarkerForType(gu.from_progress_marker(), model_type); EXPECT_EQ(expected_filter_.Has(model_type), (progress_marker != NULL)) |