Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: components/sync_driver/shared_change_processor_unittest.cc

Issue 996473005: Revert of [Sync] Refactor AttachmentStore classes. Introduce concept of referrer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync_driver/shared_change_processor.h" 5 #include "components/sync_driver/shared_change_processor.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual ~SyncSharedChangeProcessorTest() { 44 virtual ~SyncSharedChangeProcessorTest() {
45 EXPECT_FALSE(db_syncable_service_.get()); 45 EXPECT_FALSE(db_syncable_service_.get());
46 } 46 }
47 47
48 virtual base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType( 48 virtual base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType(
49 syncer::ModelType type) override { 49 syncer::ModelType type) override {
50 return db_syncable_service_->AsWeakPtr(); 50 return db_syncable_service_->AsWeakPtr();
51 } 51 }
52 52
53 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService( 53 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService(
54 scoped_ptr<syncer::AttachmentStore> attachment_store, 54 const scoped_refptr<syncer::AttachmentStore>& attachment_store,
55 const syncer::UserShare& user_share, 55 const syncer::UserShare& user_share,
56 const std::string& store_birthday, 56 const std::string& store_birthday,
57 syncer::ModelType model_type, 57 syncer::ModelType model_type,
58 syncer::AttachmentService::Delegate* delegate) override { 58 syncer::AttachmentService::Delegate* delegate) override {
59 return syncer::AttachmentServiceImpl::CreateForTest(); 59 return syncer::AttachmentServiceImpl::CreateForTest();
60 } 60 }
61 61
62 protected: 62 protected:
63 virtual void SetUp() override { 63 virtual void SetUp() override {
64 test_user_share_.SetUp(); 64 test_user_share_.SetUp();
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // creates AttachmentService and passes it back to the syncable service. 187 // creates AttachmentService and passes it back to the syncable service.
188 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) { 188 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) {
189 SetAttachmentStore(); 189 SetAttachmentStore();
190 Connect(); 190 Connect();
191 EXPECT_TRUE(HasAttachmentService()); 191 EXPECT_TRUE(HasAttachmentService());
192 } 192 }
193 193
194 } // namespace 194 } // namespace
195 195
196 } // namespace sync_driver 196 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/generic_change_processor_unittest.cc ('k') | components/sync_driver/sync_api_component_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698