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

Issue 2583253002: Start adding tests for LevelDBWrapper, and fix a bunch of bugs. (Closed)

Created:
4 years ago by Marijn Kruisselbrink
Modified:
4 years ago
Reviewers:
michaeln, jam
CC:
chromium-reviews, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Start adding tests for LevelDBWrapper, and fix a bunch of bugs. In particular this fixes: - loading data from leveldb should strip the prefix from the keys - writing data to leveldb should preprend the prefix to the keys - CommitChanges should actually commit changes BUG=586194 Committed: https://crrev.com/d51c84ce0fd84ac7c813b49981897d0e1ca8a6f7 Cr-Commit-Position: refs/heads/master@{#439849}

Patch Set 1 : nicer #

Total comments: 2

Patch Set 2 : fix destruction order of LevelDBWrapperImpl vs LevelDBDatabasePtr #

Patch Set 3 : fix StringPiece conversion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -12 lines) Patch
M content/browser/dom_storage/dom_storage_context_wrapper.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/leveldb_wrapper_impl.h View 3 chunks +4 lines, -2 lines 0 comments Download
M content/browser/leveldb_wrapper_impl.cc View 5 chunks +12 lines, -7 lines 0 comments Download
A content/browser/leveldb_wrapper_impl_unittest.cc View 1 2 1 chunk +317 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (29 generated)
Marijn Kruisselbrink
Not exhaustive tests yet (and I'm pretty sure I already found a few other bugs ...
4 years ago (2016-12-19 17:57:15 UTC) #7
Marijn Kruisselbrink
On 2016/12/19 at 17:57:15, Marijn Kruisselbrink wrote: > Not exhaustive tests yet (and I'm pretty ...
4 years ago (2016-12-19 18:45:47 UTC) #10
jam
lgtm https://codereview.chromium.org/2583253002/diff/20001/content/browser/leveldb_wrapper_impl_unittest.cc File content/browser/leveldb_wrapper_impl_unittest.cc (right): https://codereview.chromium.org/2583253002/diff/20001/content/browser/leveldb_wrapper_impl_unittest.cc#newcode45 content/browser/leveldb_wrapper_impl_unittest.cc:45: explicit MockLevelDBDatabase( nit: no need for explicit
4 years ago (2016-12-19 19:19:09 UTC) #13
jam
On 2016/12/19 18:45:47, Marijn Kruisselbrink wrote: > On 2016/12/19 at 17:57:15, Marijn Kruisselbrink wrote: > ...
4 years ago (2016-12-19 19:19:52 UTC) #14
Marijn Kruisselbrink
okay, it's not quite as bad as I thought. In patch 2 I fixed bug ...
4 years ago (2016-12-20 01:19:46 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2583253002/170001
4 years ago (2016-12-20 18:22:16 UTC) #32
commit-bot: I haz the power
Committed patchset #3 (id:170001)
4 years ago (2016-12-20 18:27:55 UTC) #35
commit-bot: I haz the power
4 years ago (2016-12-20 18:29:49 UTC) #37
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d51c84ce0fd84ac7c813b49981897d0e1ca8a6f7
Cr-Commit-Position: refs/heads/master@{#439849}

Powered by Google App Engine
This is Rietveld 408576698