chromium/chrome/services/file_util/single_file_tar_xz_file_extractor_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 "chrome/services/file_util/single_file_tar_xz_file_extractor.h"

#include <stdint.h>

#include <string>
#include <utility>

#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/path_service.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/services/file_util/public/mojom/constants.mojom.h"
#include "chrome/services/file_util/public/mojom/single_file_extractor.mojom.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "testing/gtest/include/gtest/gtest.h"

// TODO(b/254591810): Add tests for SingleFileTarXzFileExtractor::ExtractChunk
// function.

namespace chrome {

StrictMock;

class SingleFileTarXzFileExtractorTest : public testing::Test {};

// TODO(b/254591810): Make MockSingleFileExtractorListener a mock.
class MockSingleFileExtractorListener
    : public chrome::mojom::SingleFileExtractorListener {};

TEST_F(SingleFileTarXzFileExtractorTest, Extract) {}

TEST_F(SingleFileTarXzFileExtractorTest, ExtractNonExistentTarXz) {}

TEST_F(SingleFileTarXzFileExtractorTest, ZeroByteFile) {}

TEST_F(SingleFileTarXzFileExtractorTest, ExtractBigFile) {}

TEST_F(SingleFileTarXzFileExtractorTest, CorruptedFile) {}

}  // namespace chrome