#include "extensions/browser/extension_creator.h"
#include <memory>
#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/values.h"
#include "crypto/rsa_private_key.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension_paths.h"
#include "extensions/strings/grit/extensions_strings.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
namespace extensions {
namespace {
base::FilePath GetTestFile(const char* test_file) { … }
}
class ExtensionCreatorTest : public testing::Test { … };
TEST_F(ExtensionCreatorTest, ReadInputKeyPathNonExistent) { … }
TEST_F(ExtensionCreatorTest, ReadInputKeyDangerousPath) { … }
TEST_F(ExtensionCreatorTest, ReadInputKeyInvalidPEMFormat) { … }
TEST_F(ExtensionCreatorTest, ReadInputKeyNotPKCSFormat) { … }
TEST_F(ExtensionCreatorTest, ReadInputKeyPKCSFormat) { … }
TEST_F(ExtensionCreatorTest, ValidateExtension) { … }
}