summaryrefslogtreecommitdiffstats
path: root/components/sync_driver/generic_change_processor_unittest.cc
diff options
context:
space:
mode:
authormaniscalco <maniscalco@chromium.org>2014-12-11 09:45:32 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-11 17:45:51 +0000
commit9c0ced9ccfcbcaed3d9691042aee1e79112a06be (patch)
treed856754cab92b0abe913ec7a3645f28044081e64 /components/sync_driver/generic_change_processor_unittest.cc
parentdbcac359b488e849202add0ecda41d0a1e927b4d (diff)
downloadchromium_src-9c0ced9ccfcbcaed3d9691042aee1e79112a06be.zip
chromium_src-9c0ced9ccfcbcaed3d9691042aee1e79112a06be.tar.gz
chromium_src-9c0ced9ccfcbcaed3d9691042aee1e79112a06be.tar.bz2
Include model type in attachment uploads and downloads
Pass model type using EntitySpecifics field number in HTTP header on attachment uploads and downloads. We use the field number because that's a sync-standard way of communicating model type to the server. Update comment for GetSpecificsFieldNumberFromModelType to reflect the fact that this method is use outside of test code. BUG=440928 Review URL: https://codereview.chromium.org/785063005 Cr-Commit-Position: refs/heads/master@{#307923}
Diffstat (limited to 'components/sync_driver/generic_change_processor_unittest.cc')
-rw-r--r--components/sync_driver/generic_change_processor_unittest.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/sync_driver/generic_change_processor_unittest.cc b/components/sync_driver/generic_change_processor_unittest.cc
index 922031b..cb0a4fc 100644
--- a/components/sync_driver/generic_change_processor_unittest.cc
+++ b/components/sync_driver/generic_change_processor_unittest.cc
@@ -93,6 +93,7 @@ class MockSyncApiComponentFactory : public SyncApiComponentFactory {
const scoped_refptr<syncer::AttachmentStore>& attachment_store,
const syncer::UserShare& user_share,
const std::string& store_birthday,
+ syncer::ModelType model_type,
syncer::AttachmentService::Delegate* delegate) override {
EXPECT_TRUE(attachment_service_ != NULL);
return attachment_service_.Pass();