root/webkit/browser/fileapi/sandbox_database_test_helper.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright (c) 2012 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 WEBKIT_BROWSER_FILEAPI_SANDBOX_DATABASE_TEST_HELPER_H_
#define WEBKIT_BROWSER_FILEAPI_SANDBOX_DATABASE_TEST_HELPER_H_

#include <cstddef>

#include "third_party/leveldatabase/src/db/filename.h"

namespace base {
class FilePath;
}

namespace fileapi {

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 fileapi

#endif  // WEBKIT_BROWSER_FILEAPI_SANDBOX_DATABASE_TEST_HELPER_H_

/* [<][>][^][v][top][bottom][index][help] */