chromium/components/file_access/scoped_file_access_delegate_unittest.cc

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

#include "components/file_access/scoped_file_access_delegate.h"

#include <memory>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback_forward.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "components/file_access/test/mock_scoped_file_access_delegate.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace file_access {
class ScopedFileAccessDelegateTestInstance : public ScopedFileAccessDelegate {};
int ScopedFileAccessDelegateTestInstance::instance_counter =;

class ScopedFileAccessDelegateTest : public ::testing::Test {};

TEST_F(ScopedFileAccessDelegateTest, GetEmptySingleton) {}

TEST_F(ScopedFileAccessDelegateTest, HasEmptySingleton) {}

TEST_F(ScopedFileAccessDelegateTest, InstanceGetInstance) {}

TEST_F(ScopedFileAccessDelegateTest, InstanceHasInstance) {}

TEST_F(ScopedFileAccessDelegateTest, DeleteInstanceGetInstance) {}

TEST_F(ScopedFileAccessDelegateTest, DeleteInstanceHasInstance) {}

TEST_F(ScopedFileAccessDelegateTest, DeleteEmptyInstance) {}

TEST_F(ScopedFileAccessDelegateTest, DeleteInstanceDestruct) {}

TEST_F(ScopedFileAccessDelegateTest, MultiSetInstance) {}

class ScopedFileAccessDelegateTaskTest : public ::testing::Test {};

TEST_F(ScopedFileAccessDelegateTaskTest, AccessScopedExecution) {}

TEST_F(ScopedFileAccessDelegateTaskTest, RequestFilesAccessHelper_HasInstance) {}

TEST_F(ScopedFileAccessDelegateTaskTest, RequestFilesAccessHelper_NoInstance) {}

TEST_F(ScopedFileAccessDelegateTaskTest,
       RequestFilesAccessForSystemHelper_HasInstance) {}

TEST_F(ScopedFileAccessDelegateTaskTest,
       RequestFilesAccessForSystemHelper_NoInstance) {}

TEST_F(ScopedFileAccessDelegateTaskTest,
       CreateFileAccessCallbackHelper_HasInstance) {}

TEST_F(ScopedFileAccessDelegateTaskTest,
       CreateFileAccessCallbackHelper_NoInstance) {}

}  // namespace file_access