chromium/components/enterprise/obfuscation/core/utils_unittest.cc

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

#include "components/enterprise/obfuscation/core/utils.h"

#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/rand_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace enterprise_obfuscation {
namespace {

constexpr size_t kKeySize =;
constexpr size_t kAuthTagSize =;
constexpr size_t kMaxDataChunkSize =;  // default download buffer size
constexpr size_t kNoncePrefixSize =;
constexpr size_t kHeaderSize =;
constexpr size_t kChunkSizePrefixSize =;

// Helper function to divide data in chunks of random sizes.
void ObfuscateTestDataInChunks(const std::vector<uint8_t>& test_data,
                               std::vector<uint8_t>& obfuscated_content) {}

}  // namespace

class ObfuscationUtilsTest
    : public ::testing::TestWithParam<std::tuple<bool, size_t>> {};

TEST_P(ObfuscationUtilsTest, ObfuscateAndDeobfuscateSingleDataChunk) {}

TEST_P(ObfuscationUtilsTest, DeobfuscateFileInPlace) {}

TEST_P(ObfuscationUtilsTest, ObfuscateAndDeobfuscateVariableChunks) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace enterprise_obfuscation