#include "chrome/browser/sync_file_system/drive_backend/conflict_resolver.h"
#include <memory>
#include <utility>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/functional/callback.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/fake_drive_service_helper.h"
#include "chrome/browser/sync_file_system/drive_backend/fake_drive_uploader.h"
#include "chrome/browser/sync_file_system/drive_backend/list_changes_task.h"
#include "chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.h"
#include "chrome/browser/sync_file_system/drive_backend/metadata_database.h"
#include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_engine_initializer.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h"
#include "chrome/browser/sync_file_system/fake_remote_change_processor.h"
#include "chrome/browser/sync_file_system/sync_file_system_test_util.h"
#include "chrome/browser/sync_file_system/syncable_file_system_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/common/api_error_codes.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 {
storage::FileSystemURL URL(const GURL& origin, const std::string& path) { … }
}
class ConflictResolverTest : public testing::Test { … };
TEST_F(ConflictResolverTest, NoFileToBeResolved) { … }
TEST_F(ConflictResolverTest, ResolveConflict_Files) { … }
TEST_F(ConflictResolverTest, ResolveConflict_Folders) { … }
TEST_F(ConflictResolverTest, ResolveConflict_FilesAndFolders) { … }
TEST_F(ConflictResolverTest, ResolveConflict_RemoteFolderOnLocalFile) { … }
TEST_F(ConflictResolverTest, ResolveConflict_RemoteNestedFolderOnLocalFile) { … }
TEST_F(ConflictResolverTest, ResolveMultiParents_File) { … }
TEST_F(ConflictResolverTest, ResolveMultiParents_Folder) { … }
}
}