#include "chrome/browser/sync_file_system/drive_backend/sync_worker.h"
#include <memory>
#include <utility>
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/task/single_thread_task_runner.h"
#include "base/values.h"
#include "chrome/browser/extensions/test_extension_service.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.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_uploader.h"
#include "components/drive/service/fake_drive_service.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/extension_set.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/leveldatabase/leveldb_chrome.h"
namespace sync_file_system {
namespace drive_backend {
namespace {
const char kAppID[] = …;
void EmptyTask(SyncStatusCode status, SyncStatusCallback callback) { … }
}
class MockSyncTask : public ExclusiveTask { … };
class MockExtensionService : public TestExtensionService { … };
class SyncWorkerTest : public testing::Test { … };
TEST_F(SyncWorkerTest, EnableOrigin) { … }
TEST_F(SyncWorkerTest, UpdateRegisteredApps) { … }
TEST_F(SyncWorkerTest, GetOriginStatusMap) { … }
TEST_F(SyncWorkerTest, UpdateServiceState) { … }
}
}