chromium/chrome/utility/image_writer/image_writer_unittest.cc

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

#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 =;  // 32 kB
const uint8_t kTestPattern =;

class ImageWriterUtilityTest : public testing::Test {};

class MockHandler : public ImageWriterHandler {};

// This Mock has the additional feature that it will start verification when
// the write completes.
class VerifyingHandler : public MockHandler {};

}  // namespace

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) {}

}  // namespace image_writer