chromium/storage/browser/file_system/recursive_operation_delegate_unittest.cc

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

#include "storage/browser/file_system/recursive_operation_delegate.h"

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

#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "storage/browser/file_system/file_system_file_util.h"
#include "storage/browser/file_system/file_system_operation.h"
#include "storage/browser/file_system/file_system_operation_runner.h"
#include "storage/browser/test/mock_quota_manager.h"
#include "storage/browser/test/mock_quota_manager_proxy.h"
#include "storage/browser/test/mock_special_storage_policy.h"
#include "storage/browser/test/sandbox_file_system_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace storage {

namespace {

class LoggingRecursiveOperation final : public RecursiveOperationDelegate {};

void ReportStatus(base::File::Error* out_error, base::File::Error error) {}

// To test the Cancel() during operation, calls Cancel() of |operation|
// after |counter| times message posting.
void CallCancelLater(RecursiveOperationDelegate* operation, int counter) {}

}  // namespace

class RecursiveOperationDelegateTest : public testing::Test {};

TEST_F(RecursiveOperationDelegateTest, RootIsFile) {}

TEST_F(RecursiveOperationDelegateTest, RootIsDirectory) {}

TEST_F(RecursiveOperationDelegateTest, Cancel) {}

TEST_F(RecursiveOperationDelegateTest, AbortWithError) {}

TEST_F(RecursiveOperationDelegateTest, ContinueWithError) {}

}  // namespace storage