#include "storage/browser/file_system/sandbox_directory_database.h"
#include <math.h>
#include <stddef.h>
#include <stdint.h>
#include <limits>
#include <memory>
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "storage/browser/test/sandbox_database_test_helper.h"
#include "storage/common/file_system/file_system_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/leveldatabase/src/include/leveldb/db.h"
#define FPL(x) …
namespace storage {
namespace {
const base::FilePath::CharType kDirectoryDatabaseName[] = …);
}
class SandboxDirectoryDatabaseTest : public testing::Test { … };
TEST_F(SandboxDirectoryDatabaseTest, TestMissingFileGetInfo) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestGetRootFileInfoBeforeCreate) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestMissingParentAddFileInfo) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestAddNameClash) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestRenameNoMoveNameClash) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestMoveSameNameNameClash) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestMoveRenameNameClash) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestRemoveWithChildren) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestGetChildWithName) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestGetFileWithPath) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestListChildren) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestUpdateModificationTime) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestSimpleFileOperations) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestOverwritingMoveFileSrcDirectory) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestOverwritingMoveFileDestDirectory) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestOverwritingMoveFileSuccess) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestGetNextInteger) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestConsistencyCheck_Empty) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestConsistencyCheck_Consistent) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestConsistencyCheck_BackingMultiEntry) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestConsistencyCheck_FileLost) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestConsistencyCheck_OrphanFile) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestConsistencyCheck_RootLoop) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestConsistencyCheck_DirectoryLoop) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestConsistencyCheck_NameMismatch) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestConsistencyCheck_WreckedEntries) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestRepairDatabase_Success) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestRepairDatabase_Failure) { … }
TEST_F(SandboxDirectoryDatabaseTest, TestRepairDatabase_MissingManifest) { … }
}