| Index: chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer_unittest.cc
|
| diff --git a/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer_unittest.cc b/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer_unittest.cc
|
| index edfdd1f7e3aa229228d872c044143e2a8cedcda3..699badb163a567717a822269468d39c7434bf012 100644
|
| --- a/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer_unittest.cc
|
| +++ b/chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer_unittest.cc
|
| @@ -62,10 +62,10 @@ class LocalToRemoteSyncerTest : public testing::Test {
|
| ASSERT_TRUE(database_dir_.CreateUniqueTempDir());
|
| in_memory_env_.reset(leveldb::NewMemEnv(leveldb::Env::Default()));
|
|
|
| - scoped_ptr<FakeDriveServiceWrapper>
|
| - fake_drive_service(new FakeDriveServiceWrapper);
|
| - scoped_ptr<drive::DriveUploaderInterface>
|
| - drive_uploader(new FakeDriveUploader(fake_drive_service.get()));
|
| + std::unique_ptr<FakeDriveServiceWrapper> fake_drive_service(
|
| + new FakeDriveServiceWrapper);
|
| + std::unique_ptr<drive::DriveUploaderInterface> drive_uploader(
|
| + new FakeDriveUploader(fake_drive_service.get()));
|
| fake_drive_helper_.reset(new FakeDriveServiceHelper(
|
| fake_drive_service.get(),
|
| drive_uploader.get(),
|
| @@ -104,8 +104,7 @@ class LocalToRemoteSyncerTest : public testing::Test {
|
| SyncStatusCode status = SYNC_STATUS_UNKNOWN;
|
|
|
| sync_task_manager_->ScheduleSyncTask(
|
| - FROM_HERE,
|
| - scoped_ptr<SyncTask>(initializer),
|
| + FROM_HERE, std::unique_ptr<SyncTask>(initializer),
|
| SyncTaskManager::PRIORITY_MED,
|
| base::Bind(&LocalToRemoteSyncerTest::DidInitializeMetadataDatabase,
|
| base::Unretained(this), initializer, &status));
|
| @@ -169,10 +168,10 @@ class LocalToRemoteSyncerTest : public testing::Test {
|
| const storage::FileSystemURL& url) {
|
| SyncStatusCode status = SYNC_STATUS_UNKNOWN;
|
| base::FilePath local_path = base::FilePath::FromUTF8Unsafe("dummy");
|
| - scoped_ptr<LocalToRemoteSyncer> syncer(new LocalToRemoteSyncer(
|
| + std::unique_ptr<LocalToRemoteSyncer> syncer(new LocalToRemoteSyncer(
|
| context_.get(),
|
| - SyncFileMetadata(file_change.file_type(), 0, base::Time()),
|
| - file_change, local_path, url));
|
| + SyncFileMetadata(file_change.file_type(), 0, base::Time()), file_change,
|
| + local_path, url));
|
| syncer->RunPreflight(SyncTaskToken::CreateForTesting(
|
| CreateResultReceiver(&status)));
|
| base::RunLoop().RunUntilIdle();
|
| @@ -183,17 +182,16 @@ class LocalToRemoteSyncerTest : public testing::Test {
|
| SyncStatusCode status = SYNC_STATUS_UNKNOWN;
|
| sync_task_manager_->ScheduleSyncTask(
|
| FROM_HERE,
|
| - scoped_ptr<SyncTask>(new ListChangesTask(context_.get())),
|
| - SyncTaskManager::PRIORITY_MED,
|
| - CreateResultReceiver(&status));
|
| + std::unique_ptr<SyncTask>(new ListChangesTask(context_.get())),
|
| + SyncTaskManager::PRIORITY_MED, CreateResultReceiver(&status));
|
| base::RunLoop().RunUntilIdle();
|
| return status;
|
| }
|
|
|
| SyncStatusCode RunRemoteToLocalSyncer() {
|
| SyncStatusCode status = SYNC_STATUS_UNKNOWN;
|
| - scoped_ptr<RemoteToLocalSyncer>
|
| - syncer(new RemoteToLocalSyncer(context_.get()));
|
| + std::unique_ptr<RemoteToLocalSyncer> syncer(
|
| + new RemoteToLocalSyncer(context_.get()));
|
| syncer->RunPreflight(SyncTaskToken::CreateForTesting(
|
| CreateResultReceiver(&status)));
|
| base::RunLoop().RunUntilIdle();
|
| @@ -257,12 +255,12 @@ class LocalToRemoteSyncerTest : public testing::Test {
|
| private:
|
| content::TestBrowserThreadBundle thread_bundle_;
|
| base::ScopedTempDir database_dir_;
|
| - scoped_ptr<leveldb::Env> in_memory_env_;
|
| + std::unique_ptr<leveldb::Env> in_memory_env_;
|
|
|
| - scoped_ptr<SyncEngineContext> context_;
|
| - scoped_ptr<FakeDriveServiceHelper> fake_drive_helper_;
|
| - scoped_ptr<FakeRemoteChangeProcessor> remote_change_processor_;
|
| - scoped_ptr<SyncTaskManager> sync_task_manager_;
|
| + std::unique_ptr<SyncEngineContext> context_;
|
| + std::unique_ptr<FakeDriveServiceHelper> fake_drive_helper_;
|
| + std::unique_ptr<FakeRemoteChangeProcessor> remote_change_processor_;
|
| + std::unique_ptr<SyncTaskManager> sync_task_manager_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(LocalToRemoteSyncerTest);
|
| };
|
|
|