chromium/chrome/browser/sync_file_system/drive_backend/sync_task_manager_unittest.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h"

#include <stdint.h>

#include <memory>
#include <string>
#include <utility>

#include "base/containers/circular_deque.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_task.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h"
#include "chrome/browser/sync_file_system/sync_file_system_test_util.h"
#include "storage/common/file_system/file_system_util.h"
#include "testing/gtest/include/gtest/gtest.h"

#define MAKE_PATH(path)

namespace sync_file_system {
namespace drive_backend {

namespace {

void PostCallbackTask(SyncStatusCode status, SyncStatusCallback callback) {}

void IncrementAndAssign(int expected_before_counter,
                        int* counter,
                        SyncStatusCode* status_out,
                        SyncStatusCode status) {}

class TaskManagerClient : public SyncTaskManager::Client {};

class MultihopSyncTask : public ExclusiveTask {};

class BackgroundTask : public SyncTask {};

class BlockerUpdateTestHelper : public SyncTask {};

// Arbitrary non-default status values for testing.
const SyncStatusCode kStatus1 =;
const SyncStatusCode kStatus2 =;
const SyncStatusCode kStatus3 =;
const SyncStatusCode kStatus4 =;
const SyncStatusCode kStatus5 =;

}  // namespace

TEST(SyncTaskManagerTest, ScheduleTask) {}

TEST(SyncTaskManagerTest, ScheduleTwoTasks) {}

TEST(SyncTaskManagerTest, ScheduleIdleTask) {}

TEST(SyncTaskManagerTest, ScheduleIdleTaskWhileNotIdle) {}

TEST(SyncTaskManagerTest, ScheduleAndCancelSyncTask) {}

TEST(SyncTaskManagerTest, ScheduleTaskAtPriority) {}

TEST(SyncTaskManagerTest, BackgroundTask_Sequential) {}

TEST(SyncTaskManagerTest, BackgroundTask_Parallel) {}

TEST(SyncTaskManagerTest, BackgroundTask_Throttled) {}

TEST(SyncTaskManagerTest, UpdateTaskBlocker) {}

}  // namespace drive_backend
}  // namespace sync_file_system