Support in-memory databases in leveldb_proto
commit3617707ed710a4e88bcb4a11965d6c0296bf0309
authorpeter <peter@chromium.org>
Thu, 23 Jul 2015 14:36:09 +0000 (23 07:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Jul 2015 14:36:48 +0000 (23 14:36 +0000)
treec508890b69aa501210870b6c4bda560834c68566
parent69a642f6b7eeeab3ef980b0d29965c25d4d3c46d
Support in-memory databases in leveldb_proto

There is no requirement for LevelDB databases to live on disk - by
creating a memory environment they can live in memory (but are, of
course, ephemeral and entirely scoped to the instance).

This is useful for databases which might have to be created for
browser tests where mocking the database is undesirable.

R=cjhopman
BUG=

Review URL: https://codereview.chromium.org/1245703003

Cr-Commit-Position: refs/heads/master@{#340090}
components/leveldb_proto/leveldb_database.cc
components/leveldb_proto/leveldb_database.h
components/leveldb_proto/proto_database_impl_unittest.cc