#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 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) { … }
TEST_F(CrxVerifierTest, ChecksCompressedVerifiedContentsEmpty) { … }
}