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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc

Issue 145693005: [FileAPI] Replace default leveldb::Env with leveldb::MemEnv in tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: +LocalFileSyncService::Create{,ForTesting} Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc b/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc
index 412f28e6e1b4cd96937e80a1e72da310e38f35d8..3b3514556fa7fa99d9cc3f950870a89242c02104 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc
@@ -51,7 +51,8 @@ class DriveBackendSyncTest : public testing::Test {
content::BrowserThread::FILE);
RegisterSyncableFileSystem();
- local_sync_service_.reset(new LocalFileSyncService(&profile_));
+ local_sync_service_ = LocalFileSyncService::CreateForTesting(
+ &profile_, in_memory_env_.get());
scoped_ptr<drive::FakeDriveService> drive_service(
new drive::FakeDriveService());
@@ -135,7 +136,8 @@ class DriveBackendSyncTest : public testing::Test {
GURL origin = extensions::Extension::GetBaseURLFromExtensionId(app_id);
if (!ContainsKey(file_systems_, app_id)) {
CannedSyncableFileSystem* file_system = new CannedSyncableFileSystem(
- origin, io_task_runner_.get(), file_task_runner_.get());
+ origin, in_memory_env_.get(),
+ io_task_runner_.get(), file_task_runner_.get());
file_system->SetUp();
SyncStatusCode status = SYNC_STATUS_UNKNOWN;

Powered by Google App Engine
This is Rietveld 408576698