#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <string>
#include <utility>
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "storage/browser/blob/shareable_file_reference.h"
#include "storage/browser/file_system/copy_or_move_file_validator.h"
#include "storage/browser/file_system/external_mount_points.h"
#include "storage/browser/file_system/file_system_backend.h"
#include "storage/browser/file_system/file_system_context.h"
#include "storage/browser/file_system/file_system_url.h"
#include "storage/browser/file_system/isolated_context.h"
#include "storage/browser/test/async_file_test_helper.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/test_file_system_backend.h"
#include "storage/browser/test/test_file_system_context.h"
#include "storage/common/file_system/file_system_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace storage {
namespace {
const FileSystemType kNoValidatorType = …;
const FileSystemType kWithValidatorType = …;
void ExpectOk(const GURL& origin_url,
const std::string& name,
base::File::Error error) { … }
class CopyOrMoveFileValidatorTestHelper { … };
enum Validity { … };
class TestCopyOrMoveFileValidatorFactory
: public CopyOrMoveFileValidatorFactory { … };
}
TEST(CopyOrMoveFileValidatorTest, NoValidatorWithinSameFSType) { … }
TEST(CopyOrMoveFileValidatorTest, MissingValidator) { … }
TEST(CopyOrMoveFileValidatorTest, AcceptAll) { … }
TEST(CopyOrMoveFileValidatorTest, AcceptNone) { … }
TEST(CopyOrMoveFileValidatorTest, OverrideValidator) { … }
TEST(CopyOrMoveFileValidatorTest, RejectPostWrite) { … }
}