This source file includes following definitions.
- TEST_F
#include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
#include "extensions/common/manifest_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace errors = extensions::manifest_errors;
class ContentSecurityPolicyManifestTest : public ExtensionManifestTest {
};
TEST_F(ContentSecurityPolicyManifestTest, InsecureContentSecurityPolicy) {
Testcase testcases[] = {
Testcase("insecure_contentsecuritypolicy_1.json",
errors::kInsecureContentSecurityPolicy),
Testcase("insecure_contentsecuritypolicy_2.json",
errors::kInsecureContentSecurityPolicy),
Testcase("insecure_contentsecuritypolicy_3.json",
errors::kInsecureContentSecurityPolicy),
};
RunTestcases(testcases, arraysize(testcases), EXPECT_TYPE_ERROR);
}