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

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: rebase 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_sync_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8f2d3a8a605a73600fd82a9f3a6f63868ae70e6b..82d7d781a7873747b757a953cec25f94c3c4e0aa 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
@@ -53,7 +53,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());
@@ -143,7 +144,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;
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_sync_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698