#ifndef CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_TEST_UTILS_H_
#define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_TEST_UTILS_H_
#include <stdint.h>
#include <memory>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/extensions/api/image_writer_private/image_writer_utility_client.h"
#include "chrome/browser/extensions/api/image_writer_private/operation_manager.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_utils.h"
#include "extensions/common/extension_id.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chromeos/ash/components/disks/disk_mount_manager.h"
#include "chromeos/ash/components/disks/mock_disk_mount_manager.h"
#endif
namespace extensions {
namespace image_writer {
#if BUILDFLAG(IS_CHROMEOS_ASH)
class ImageWriterFakeImageBurnerClient;
#endif
const char kDummyExtensionId[] = …;
const size_t kTestFileSize = …;
const uint8_t kImagePattern = …;
const uint8_t kDevicePattern = …;
const char kTestFileSystemType[] = …;
class MockOperationManager : public OperationManager { … };
#if BUILDFLAG(IS_CHROMEOS_ASH)
class FakeDiskMountManager : public ash::disks::MockDiskMountManager {
public:
FakeDiskMountManager();
~FakeDiskMountManager() override;
void UnmountDeviceRecursively(
const std::string& device_path,
UnmountDeviceRecursivelyCallbackType callback) override;
private:
Disks disks_;
};
#endif
struct SimulateProgressInfo { … };
class FakeImageWriterClient : public ImageWriterUtilityClient { … };
class ImageWriterTestUtils { … };
class ImageWriterUnitTestBase : public testing::Test { … };
bool GetTestDataDirectory(base::FilePath* path);
}
}
#endif