Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / webkit / fileapi / file_system_database_test_helper.h
blobdaf8be11425f6ee788511cc294345e9f597a3680
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_DATABASE_TEST_HELPER_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_DATABASE_TEST_HELPER_H_
8 #include <cstddef>
10 #include "third_party/leveldatabase/src/db/filename.h"
12 namespace base {
13 class FilePath;
16 namespace fileapi {
18 void CorruptDatabase(const base::FilePath& db_path,
19 leveldb::FileType type,
20 ptrdiff_t offset,
21 size_t size);
23 void DeleteDatabaseFile(const base::FilePath& db_path,
24 leveldb::FileType type);
26 } // namespace fileapi
28 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_DATABASE_TEST_HELPER_H_