#include "chrome/browser/sync_file_system/drive_backend/metadata_database_index.h"
#include <stdint.h>
#include <memory>
#include <utility>
#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/leveldb_wrapper.h"
#include "chrome/browser/sync_file_system/drive_backend/metadata_database.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"
namespace sync_file_system {
namespace drive_backend {
namespace {
const int64_t kSyncRootTrackerID = …;
const int64_t kAppRootTrackerID = …;
const int64_t kFileTrackerID = …;
const int64_t kPlaceholderTrackerID = …;
std::unique_ptr<DatabaseContents> CreateTestDatabaseContents() { … }
}
class MetadataDatabaseIndexTest : public testing::Test { … };
TEST_F(MetadataDatabaseIndexTest, GetEntryTest) { … }
TEST_F(MetadataDatabaseIndexTest, IndexLookUpTest) { … }
TEST_F(MetadataDatabaseIndexTest, UpdateTest) { … }
}
}