#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) { … }
void CallCancelLater(RecursiveOperationDelegate* operation, int counter) { … }
}
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) { … }
}