#include "chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.h"
#include <stdint.h>
#include <algorithm>
#include <memory>
#include <utility>
#include "base/files/scoped_temp_dir.h"
#include "base/strings/string_number_conversions.h"
#include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.h"
#include "chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.h"
#include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h"
#include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h"
#include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/leveldatabase/env_chromium.h"
#include "third_party/leveldatabase/leveldb_chrome.h"
#include "third_party/leveldatabase/src/include/leveldb/db.h"
#include "third_party/leveldatabase/src/include/leveldb/status.h"
namespace sync_file_system {
namespace drive_backend {
namespace {
const int64_t kSyncRootTrackerID = …;
const int64_t kAppRootTrackerID = …;
const int64_t kFileTrackerID = …;
const int64_t kPlaceholderTrackerID = …;
}
class MetadataDatabaseIndexOnDiskTest : public testing::Test { … };
TEST_F(MetadataDatabaseIndexOnDiskTest, GetEntryTest) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest, SetEntryTest) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest, RemoveUnreachableItemsTest) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest, SyncRootInvalidation) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest, BuildIndexTest) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest, BuildAndDeleteIndexTest) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest, AllEntriesTest) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest, IndexAppRootIDByAppIDTest) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest, TrackerIDSetByFileIDTest) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest, TrackerIDSetByParentIDAndTitleTest) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest,
TrackerIDSetByParentIDAndTitleTest_EmptyTitle) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest, TrackerIDSetDetailsTest) { … }
TEST_F(MetadataDatabaseIndexOnDiskTest, DirtyTrackersTest) { … }
}
}