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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/register_app_task_unittest.cc

Issue 437943002: [SyncFS] Remove usage of file task runner under drive_backend/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/sync_file_system/drive_backend/register_app_task.h" 5 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/format_macros.h" 10 #include "base/format_macros.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 fake_drive_service_helper_.reset(new FakeDriveServiceHelper( 57 fake_drive_service_helper_.reset(new FakeDriveServiceHelper(
58 fake_drive_service.get(), drive_uploader.get(), 58 fake_drive_service.get(), drive_uploader.get(),
59 kSyncRootFolderTitle)); 59 kSyncRootFolderTitle));
60 60
61 context_.reset( 61 context_.reset(
62 new SyncEngineContext( 62 new SyncEngineContext(
63 fake_drive_service.PassAs<drive::DriveServiceInterface>(), 63 fake_drive_service.PassAs<drive::DriveServiceInterface>(),
64 drive_uploader.Pass(), 64 drive_uploader.Pass(),
65 NULL, 65 NULL,
66 base::ThreadTaskRunnerHandle::Get(), 66 base::ThreadTaskRunnerHandle::Get(),
67 base::ThreadTaskRunnerHandle::Get(),
68 base::ThreadTaskRunnerHandle::Get())); 67 base::ThreadTaskRunnerHandle::Get()));
69 68
70 ASSERT_EQ(google_apis::HTTP_CREATED, 69 ASSERT_EQ(google_apis::HTTP_CREATED,
71 fake_drive_service_helper_->AddOrphanedFolder( 70 fake_drive_service_helper_->AddOrphanedFolder(
72 kSyncRootFolderTitle, &sync_root_folder_id_)); 71 kSyncRootFolderTitle, &sync_root_folder_id_));
73 } 72 }
74 73
75 virtual void TearDown() OVERRIDE { 74 virtual void TearDown() OVERRIDE {
76 context_.reset(); 75 context_.reset();
77 base::RunLoop().RunUntilIdle(); 76 base::RunLoop().RunUntilIdle();
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 309
311 CreateMetadataDatabase(db.Pass()); 310 CreateMetadataDatabase(db.Pass());
312 RunRegisterAppTask(kAppID); 311 RunRegisterAppTask(kAppID);
313 312
314 EXPECT_EQ(1u, CountRegisteredAppRoot()); 313 EXPECT_EQ(1u, CountRegisteredAppRoot());
315 EXPECT_TRUE(IsAppRegistered(kAppID)); 314 EXPECT_TRUE(IsAppRegistered(kAppID));
316 } 315 }
317 316
318 } // namespace drive_backend 317 } // namespace drive_backend
319 } // namespace sync_file_system 318 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698