#include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <utility>
#include <vector>
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.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/metadata_database.h"
#include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h"
#include "chrome/browser/sync_file_system/sync_file_system_test_util.h"
#include "components/drive/drive_api_util.h"
#include "components/drive/drive_uploader.h"
#include "components/drive/service/fake_drive_service.h"
#include "content/public/test/browser_task_environment.h"
#include "google_apis/drive/drive_api_parser.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/leveldatabase/leveldb_chrome.h"
namespace sync_file_system {
namespace drive_backend {
namespace {
const int64_t kInitialLargestChangeID = …;
}
class SyncEngineInitializerTest : public testing::Test { … };
TEST_F(SyncEngineInitializerTest, EmptyDatabase_NoRemoteSyncRoot) { … }
TEST_F(SyncEngineInitializerTest, EmptyDatabase_RemoteSyncRootExists) { … }
TEST_F(SyncEngineInitializerTest, DatabaseAlreadyInitialized) { … }
TEST_F(SyncEngineInitializerTest, EmptyDatabase_MultiCandidate) { … }
TEST_F(SyncEngineInitializerTest, EmptyDatabase_UndetachedRemoteSyncRoot) { … }
TEST_F(SyncEngineInitializerTest, EmptyDatabase_MultiparentSyncRoot) { … }
TEST_F(SyncEngineInitializerTest, EmptyDatabase_FakeRemoteSyncRoot) { … }
}
}