summaryrefslogtreecommitdiffstats
path: root/chromium/content/browser/fileapi/sandbox_database_test_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/fileapi/sandbox_database_test_helper.h')
-rw-r--r--chromium/content/browser/fileapi/sandbox_database_test_helper.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/content/browser/fileapi/sandbox_database_test_helper.h b/chromium/content/browser/fileapi/sandbox_database_test_helper.h
new file mode 100644
index 00000000000..881bdff2ce3
--- /dev/null
+++ b/chromium/content/browser/fileapi/sandbox_database_test_helper.h
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_FILEAPI_SANDBOX_DATABASE_TEST_HELPER_H_
+#define CONTENT_BROWSER_FILEAPI_SANDBOX_DATABASE_TEST_HELPER_H_
+
+#include <cstddef>
+
+#include "third_party/leveldatabase/src/db/filename.h"
+
+namespace base {
+class FilePath;
+}
+
+namespace content {
+
+void CorruptDatabase(const base::FilePath& db_path,
+ leveldb::FileType type,
+ ptrdiff_t offset,
+ size_t size);
+
+void DeleteDatabaseFile(const base::FilePath& db_path,
+ leveldb::FileType type);
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_FILEAPI_SANDBOX_DATABASE_TEST_HELPER_H_