| OLD | NEW |
| 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 Loading... |
| 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 const scoped_refptr<syncer::AttachmentStore>& attachment_store, | 54 scoped_ptr<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 Loading... |
| 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 |
| OLD | NEW |