chromium/components/crx_file/crx_verifier_unittest.cc

// Copyright 2017 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/crx_file/crx_verifier.h"
#include "base/base_paths.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

base::FilePath TestFile(const std::string& file) {}

constexpr char kOjjHash[] =;
constexpr char kOjjKey[] =;

constexpr char kJlnHash[] =;
constexpr char kJlnKey[] =;

}  // namespace

namespace crx_file {

CrxVerifierTest;

TEST_F(CrxVerifierTest, ValidFullCrx3) {}

TEST_F(CrxVerifierTest, Crx3RejectsCrx2) {}

TEST_F(CrxVerifierTest, VerifiesFileHash) {}

TEST_F(CrxVerifierTest, ChecksRequiredKeyHashes) {}

TEST_F(CrxVerifierTest, ChecksPinnedKey) {}

TEST_F(CrxVerifierTest, ChecksPinnedKeyAcceptsTest) {}

TEST_F(CrxVerifierTest, NullptrSafe) {}

TEST_F(CrxVerifierTest, RequiresDeveloperKey) {}

// Verifies that `compressed_verified_contents` is not set when verified
// contents are not present in the header of the CRX.
TEST_F(CrxVerifierTest, ChecksCompressedVerifiedContentsEmpty) {}

}  // namespace crx_file