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

Issue 145693005: [FileAPI] Replace default leveldb::Env with leveldb::MemEnv in tests. (Closed)

Created:
6 years, 10 months ago by tzik
Modified:
6 years, 10 months ago
Reviewers:
kinuko, sky, nhiroki
CC:
chromium-reviews, jam, nhiroki, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch
Visibility:
Public.

Description

[FileAPI] Replace default leveldb::Env with leveldb::MemEnv in tests. Use in-memory LevelDB in tests that don't test LevelDB behavior itself. BUG=331988 R=kinuko@chromium.org, nhiroki@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247631

Patch Set 1 #

Patch Set 2 : use real file when required #

Patch Set 3 : +LocalFileSyncService::Create{,ForTesting} #

Total comments: 2

Patch Set 4 : Use on-disk LevelDB in SandboxOriginDatabaseTest #

Patch Set 5 : fix comment #

Total comments: 2

Patch Set 6 : drop extra ; #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -89 lines) Patch
M chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_sync_unittest.cc View 1 2 4 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/local/canned_syncable_file_system.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/local/canned_syncable_file_system.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/local/local_file_change_tracker.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_change_tracker.cc View 1 6 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc View 1 2 3 4 5 6 4 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_context.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_context.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc View 1 2 3 4 5 6 12 chunks +34 lines, -10 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_service.h View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_service.cc View 1 2 2 chunks +23 lines, -10 lines 0 comments Download
M chrome/browser/sync_file_system/local/local_file_sync_service_unittest.cc View 1 2 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/sync_file_system/local/syncable_file_operation_runner_unittest.cc View 1 2 3 4 5 6 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/local/syncable_file_system_unittest.cc View 1 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/sync_file_system_service_factory.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync_file_system/sync_file_system_service_unittest.cc View 1 2 4 chunks +9 lines, -4 lines 0 comments Download
M content/browser/fileapi/browser_file_system_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/fileapi/obfuscated_file_util_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/test_file_system_options.cc View 1 2 3 4 5 3 chunks +9 lines, -6 lines 0 comments Download
M webkit/browser/fileapi/file_system_options.h View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download
M webkit/browser/fileapi/file_system_options.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M webkit/browser/fileapi/obfuscated_file_util.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M webkit/browser/fileapi/obfuscated_file_util.cc View 1 6 chunks +11 lines, -5 lines 0 comments Download
M webkit/browser/fileapi/plugin_private_file_system_backend.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/browser/fileapi/quota/quota_backend_impl_unittest.cc View 1 3 chunks +5 lines, -1 line 0 comments Download
M webkit/browser/fileapi/sandbox_directory_database.h View 1 4 chunks +7 lines, -3 lines 0 comments Download
M webkit/browser/fileapi/sandbox_directory_database.cc View 1 4 chunks +14 lines, -4 lines 0 comments Download
M webkit/browser/fileapi/sandbox_directory_database_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/browser/fileapi/sandbox_file_system_backend_delegate.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/browser/fileapi/sandbox_origin_database.h View 3 chunks +4 lines, -1 line 0 comments Download
M webkit/browser/fileapi/sandbox_origin_database.cc View 3 chunks +8 lines, -2 lines 0 comments Download
M webkit/browser/fileapi/sandbox_origin_database_unittest.cc View 1 2 3 9 chunks +9 lines, -9 lines 0 comments Download
M webkit/browser/fileapi/sandbox_prioritized_origin_database.h View 3 chunks +7 lines, -2 lines 0 comments Download
M webkit/browser/fileapi/sandbox_prioritized_origin_database.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M webkit/browser/fileapi/sandbox_prioritized_origin_database_unittest.cc View 1 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
tzik
Hi, all. I'd replace on-disk LevelDB with on-memory one for faster test cycle. Could you ...
6 years, 10 months ago (2014-01-28 05:23:12 UTC) #1
kinuko
On 2014/01/28 05:23:12, tzik wrote: > Hi, all. > I'd replace on-disk LevelDB with on-memory ...
6 years, 10 months ago (2014-01-28 06:14:47 UTC) #2
tzik
On 2014/01/28 06:14:47, kinuko wrote: > On 2014/01/28 05:23:12, tzik wrote: > > Hi, all. ...
6 years, 10 months ago (2014-01-28 06:34:11 UTC) #3
nhiroki
LGTM for chrome/browser/sync_file_system
6 years, 10 months ago (2014-01-28 07:06:59 UTC) #4
kinuko
lgtm
6 years, 10 months ago (2014-01-28 07:22:26 UTC) #5
kinuko
https://codereview.chromium.org/145693005/diff/100001/webkit/browser/fileapi/file_system_options.h File webkit/browser/fileapi/file_system_options.h (right): https://codereview.chromium.org/145693005/diff/100001/webkit/browser/fileapi/file_system_options.h#newcode33 webkit/browser/fileapi/file_system_options.h:33: // |env_override| overrides internal LevelDB environment. nit: Non-null |env_override| ...
6 years, 10 months ago (2014-01-28 07:22:37 UTC) #6
tzik
https://codereview.chromium.org/145693005/diff/100001/webkit/browser/fileapi/file_system_options.h File webkit/browser/fileapi/file_system_options.h (right): https://codereview.chromium.org/145693005/diff/100001/webkit/browser/fileapi/file_system_options.h#newcode33 webkit/browser/fileapi/file_system_options.h:33: // |env_override| overrides internal LevelDB environment. On 2014/01/28 07:22:38, ...
6 years, 10 months ago (2014-01-28 07:37:16 UTC) #7
sky
LGTM https://codereview.chromium.org/145693005/diff/140001/content/public/test/test_file_system_options.cc File content/public/test/test_file_system_options.cc (right): https://codereview.chromium.org/145693005/diff/140001/content/public/test/test_file_system_options.cc#newcode22 content/public/test/test_file_system_options.cc:22: }; nit: no ; here, 33 and 43.
6 years, 10 months ago (2014-01-28 15:07:02 UTC) #8
tzik
https://codereview.chromium.org/145693005/diff/140001/content/public/test/test_file_system_options.cc File content/public/test/test_file_system_options.cc (right): https://codereview.chromium.org/145693005/diff/140001/content/public/test/test_file_system_options.cc#newcode22 content/public/test/test_file_system_options.cc:22: }; On 2014/01/28 15:07:03, sky wrote: > nit: no ...
6 years, 10 months ago (2014-01-28 16:42:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tzik@chromium.org/145693005/160001
6 years, 10 months ago (2014-01-28 18:25:33 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests, remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=219696
6 years, 10 months ago (2014-01-28 20:12:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tzik@chromium.org/145693005/160001
6 years, 10 months ago (2014-01-29 01:18:11 UTC) #12
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=217706
6 years, 10 months ago (2014-01-29 03:31:23 UTC) #13
tzik
6 years, 10 months ago (2014-01-29 05:35:43 UTC) #14
Message was sent while issue was closed.
Committed patchset #7 manually as r247631 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698