#include <stdint.h>
#include <string.h>
#include <string>
#include <vector>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "chrome/utility/image_writer/error_message_strings.h"
#include "chrome/utility/image_writer/image_writer.h"
#include "chrome/utility/image_writer/image_writer_handler.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace image_writer {
_;
AnyNumber;
AtLeast;
Lt;
namespace {
const int64_t kTestFileSize = …;
const uint8_t kTestPattern = …;
class ImageWriterUtilityTest : public testing::Test { … };
class MockHandler : public ImageWriterHandler { … };
class VerifyingHandler : public MockHandler { … };
}
TEST_F(ImageWriterUtilityTest, Getters) { … }
TEST_F(ImageWriterUtilityTest, WriteSuccessful) { … }
TEST_F(ImageWriterUtilityTest, WriteInvalidImageFile) { … }
TEST_F(ImageWriterUtilityTest, WriteInvalidDeviceFile) { … }
TEST_F(ImageWriterUtilityTest, VerifySuccessful) { … }
TEST_F(ImageWriterUtilityTest, VerifyInvalidImageFile) { … }
TEST_F(ImageWriterUtilityTest, VerifyInvalidDeviceFile) { … }
TEST_F(ImageWriterUtilityTest, VerifyEmptyDevice) { … }
TEST_F(ImageWriterUtilityTest, VerifyFailed) { … }
TEST_F(ImageWriterUtilityTest, WriteWithVerifySuccessful) { … }
}