diff options
author | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-22 23:04:30 +0000 |
---|---|---|
committer | dumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-22 23:04:30 +0000 |
commit | 373a46081a94ad850299876328b279e25f12e59f (patch) | |
tree | 103b2519dc9c376e555a483cb4a70f105792f0ea /webkit/tools/test_shell/simple_database_system.h | |
parent | 1c1619682ce5dd4fbfc3caa8c76bdce0b13d09ca (diff) | |
download | chromium_src-373a46081a94ad850299876328b279e25f12e59f.zip chromium_src-373a46081a94ad850299876328b279e25f12e59f.tar.gz chromium_src-373a46081a94ad850299876328b279e25f12e59f.tar.bz2 |
Adds support for SetDatabaseQuota(). Also, should remove a lot of
flakiness from the database layout tests: when a DB test calls
ClearAllDatabases(), we force test_shell to wait for all DBs opened in
previous tests to close before running the test.
TEST=none
BUG=32016,32396,32206,32157,30081
Review URL: http://codereview.chromium.org/549095
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36919 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/simple_database_system.h')
-rw-r--r-- | webkit/tools/test_shell/simple_database_system.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/simple_database_system.h b/webkit/tools/test_shell/simple_database_system.h index ff92b3f..766940e 100644 --- a/webkit/tools/test_shell/simple_database_system.h +++ b/webkit/tools/test_shell/simple_database_system.h @@ -53,6 +53,7 @@ class SimpleDatabaseSystem : public webkit_database::DatabaseTracker::Observer, virtual void databaseClosed(const WebKit::WebDatabase& database); void ClearAllDatabases(); + void SetDatabaseQuota(int64 quota); private: // The calls that come from the database tracker run on the main thread. @@ -68,6 +69,8 @@ class SimpleDatabaseSystem : public webkit_database::DatabaseTracker::Observer, static SimpleDatabaseSystem* instance_; + bool waiting_for_dbs_to_close_; + ScopedTempDir temp_dir_; scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; |