chromium/chrome/services/file_util/single_file_tar_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_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"

namespace chrome {

StrictMock;

class SingleFileTarFileExtractorTest : public testing::Test {};

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

TEST_F(SingleFileTarFileExtractorTest, Extract) {}

TEST_F(SingleFileTarFileExtractorTest, ExtractTarLargerThanChunk) {}

TEST_F(SingleFileTarFileExtractorTest, ExtractNonExistentTar) {}

TEST_F(SingleFileTarFileExtractorTest, ZeroByteFile) {}

TEST_F(SingleFileTarFileExtractorTest, CorruptedFile) {}

}  // namespace chrome