summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 20:45:45 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-12 20:45:45 +0000
commitfbcc4030655802213aab5b731f1180062d232f2d (patch)
tree41da9d881467d61d9ecde52306f5aacebdcf9d33 /chrome/test
parentcdb4266b62202b44eb1fb36877398c2cb5504917 (diff)
downloadchromium_src-fbcc4030655802213aab5b731f1180062d232f2d.zip
chromium_src-fbcc4030655802213aab5b731f1180062d232f2d.tar.gz
chromium_src-fbcc4030655802213aab5b731f1180062d232f2d.tar.bz2
Verify signed .crx extension installations
This is second try of: http://codereview.chromium.org/115682 that was comitted in in 18189 and reverted. BUG=12114 R=erikkay,wtc,aa Review URL: http://codereview.chromium.org/126014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18316 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/data/extensions/bad/missing_content_script/1/manifest.json3
-rw-r--r--chrome/test/data/extensions/bad_hash.crxbin885 -> 0 bytes
-rw-r--r--chrome/test/data/extensions/bad_json.crxbin901 -> 0 bytes
-rwxr-xr-x[-rw-r--r--]chrome/test/data/extensions/bad_magic.crxbin946 -> 828 bytes
-rwxr-xr-xchrome/test/data/extensions/bad_signature.crxbin0 -> 828 bytes
-rw-r--r--chrome/test/data/extensions/content_script_inject/manifest.json1
-rw-r--r--chrome/test/data/extensions/good.crxbin1302 -> 828 bytes
-rwxr-xr-xchrome/test/data/extensions/good.pem16
-rw-r--r--chrome/test/data/extensions/good/extension1/1/manifest.json3
-rw-r--r--chrome/test/data/extensions/good/extension2/2/manifest.json3
-rw-r--r--chrome/test/data/extensions/good/extension3/1.0/manifest.json3
-rwxr-xr-xchrome/test/data/extensions/good2.crxbin1302 -> 829 bytes
-rw-r--r--chrome/test/data/extensions/page_action.crxbin7144 -> 6515 bytes
-rw-r--r--chrome/test/data/extensions/samples/buildbot/manifest.json3
-rw-r--r--chrome/test/data/extensions/samples/subscribe/manifest.json3
-rw-r--r--chrome/test/data/extensions/theme.crxbin93159 -> 92591 bytes
-rw-r--r--chrome/test/data/extensions/theme2.crxbin109339 -> 108750 bytes
-rw-r--r--chrome/test/data/extensions/theme_with_extension.crxbin83279 -> 81865 bytes
-rwxr-xr-xchrome/test/data/extensions/theme_with_missing_image.crxbin0 -> 67152 bytes
-rw-r--r--chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension1.json2
-rw-r--r--chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension2.json2
-rw-r--r--chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension3.json2
-rw-r--r--chrome/test/data/extensions/uitest/roundtrip_api_call/manifest.json2
-rw-r--r--chrome/test/data/extensions/uitest/simple_api_call/manifest.json2
24 files changed, 31 insertions, 14 deletions
diff --git a/chrome/test/data/extensions/bad/missing_content_script/1/manifest.json b/chrome/test/data/extensions/bad/missing_content_script/1/manifest.json
index 9799306..b3b3858 100644
--- a/chrome/test/data/extensions/bad/missing_content_script/1/manifest.json
+++ b/chrome/test/data/extensions/bad/missing_content_script/1/manifest.json
@@ -1,5 +1,6 @@
{
- "id": "00123456789ABCDEF0123456789ABCDEF0123456",
+ "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsaVmPYFjlYABY7y8sEVB5i3/stDIXU8i3bBeQYeaXOg+Jr1vEhaSgKTy3zMY4m3+cnKI7Z/bMpYohS4pQTcwIXS1kEB6taCUUWgm2315zxSH+gUFRyfzBDlS8LZ9tRirFGj8o0R2YQobHgSPyf04Phq4AeMmGSygEJkfGO+Wt8wIDAQAB",
+ "signature":"kCUJQeO+FZ0hENaTT9bFW90HwiIppJEj/j88gOyXIL3z00ZOn/eck+M8O+HU7ad+U7BG5GK7xnuIvqzjAYK4ihfEYbExnbx3R79GWUWpHegELbp0PvhU9a+xIwTh48kzpKNgunzZGY0oONGvVeoNQXeTTO8z2i6RZfWD3/YdyBk=",
"version": "1.0.0.0",
"name": "My extension 1",
"description": "The first extension that I made.",
diff --git a/chrome/test/data/extensions/bad_hash.crx b/chrome/test/data/extensions/bad_hash.crx
deleted file mode 100644
index 8add85c..0000000
--- a/chrome/test/data/extensions/bad_hash.crx
+++ /dev/null
Binary files differ
diff --git a/chrome/test/data/extensions/bad_json.crx b/chrome/test/data/extensions/bad_json.crx
deleted file mode 100644
index f249711..0000000
--- a/chrome/test/data/extensions/bad_json.crx
+++ /dev/null
Binary files differ
diff --git a/chrome/test/data/extensions/bad_magic.crx b/chrome/test/data/extensions/bad_magic.crx
index da66e12..4323013 100644..100755
--- a/chrome/test/data/extensions/bad_magic.crx
+++ b/chrome/test/data/extensions/bad_magic.crx
Binary files differ
diff --git a/chrome/test/data/extensions/bad_signature.crx b/chrome/test/data/extensions/bad_signature.crx
new file mode 100755
index 0000000..d5a6033
--- /dev/null
+++ b/chrome/test/data/extensions/bad_signature.crx
Binary files differ
diff --git a/chrome/test/data/extensions/content_script_inject/manifest.json b/chrome/test/data/extensions/content_script_inject/manifest.json
index 8214fb6..48e4496 100644
--- a/chrome/test/data/extensions/content_script_inject/manifest.json
+++ b/chrome/test/data/extensions/content_script_inject/manifest.json
@@ -1,5 +1,4 @@
{
- "id": "00123456789ABCDEF0123456789ABCDEF0123456",
"version": "1.0.0.0",
"name": "User script inject",
"content_scripts": [
diff --git a/chrome/test/data/extensions/good.crx b/chrome/test/data/extensions/good.crx
index d479794..1da98b0 100644
--- a/chrome/test/data/extensions/good.crx
+++ b/chrome/test/data/extensions/good.crx
Binary files differ
diff --git a/chrome/test/data/extensions/good.pem b/chrome/test/data/extensions/good.pem
new file mode 100755
index 0000000..eb40bdaa
--- /dev/null
+++ b/chrome/test/data/extensions/good.pem
@@ -0,0 +1,16 @@
+-----BEGIN PRIVATE KEY-----
+MIICeQICAAAwDQYJKoZIhvcNAQEBBQAEggJiMIICXgICAAACgYC8c4fBSPZ6utYoZ
+8NiWF/DSaimBhihjwgOsskyleFGaurhi3TDClTVSGPxNkgCzrz0wACML7M4aNjpd0
+5qupdbR2d294jkDuI7caxEGUucpP7GJRRHnm8Sx+y0ury28n8jbN0PnInKKWcxpIX
+XmNQyC19HBuO3QIeUq9Dqc+7YFQIFAAABAAECgYEAIMTmIlIRqh27B6OjcgJ0BH1W
+eigtOEqq2AN2wPkXByuoVDfvwcqWHdBMsLEDrJlOejC456eTvodc0JwSYrS3hLduh
+efVnvyA+rnMyeUNXH3y1k8F7T8hjNOZSZQe5BwDfVTIpPl220GTmccQ5fqDr1zUQW
+oQNrAQRsp5pZHziTECQNyRihwhjbaPcFbR/l6RJMJIntWe1ihrUWwg21/sIWQl7h0
+2TUi6nXdRfJHZ88Jg1zR5BTlXYUrXPBWg+ntbaNMCQNq5OyiZxeYG+N568SIrYfno
+05zRzyg58IHZCAxcICOEwhwHlZ8cy0grjo371qRdB0MBQNoua1bYt5e0eV63qncCQ
+LlbqYfYfsIzqsGbebu5F/4ZjzmQYQLYpTVMK29h/fGumnt8HdiH0zrphNkBI4NvZI
+sZRNWaZA3D8R9wB+/QsrcCQQA2vJ5adck53MrRWrEX3QWC9kpm93bBWWagCEFkXnX
+IjcPKIffGvvz8jbH6RGkd7w4PLbQeJfnE3S1s8MRi+NHXAkEAWYOtIWr0ZbYAIKGL
+Hxk6eiJ7hKlARhYXzoTlf9LUFFRpvMuGo3S5BcB+WmtiPFXdUOyEHrS4IovqyzVod
+auibQ==
+-----END PRIVATE KEY-----
diff --git a/chrome/test/data/extensions/good/extension1/1/manifest.json b/chrome/test/data/extensions/good/extension1/1/manifest.json
index f8888c5..e520422 100644
--- a/chrome/test/data/extensions/good/extension1/1/manifest.json
+++ b/chrome/test/data/extensions/good/extension1/1/manifest.json
@@ -1,5 +1,6 @@
{
- "id": "00123456789ABCDEF0123456789ABCDEF0123456",
+ "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsaVmPYFjlYABY7y8sEVB5i3/stDIXU8i3bBeQYeaXOg+Jr1vEhaSgKTy3zMY4m3+cnKI7Z/bMpYohS4pQTcwIXS1kEB6taCUUWgm2315zxSH+gUFRyfzBDlS8LZ9tRirFGj8o0R2YQobHgSPyf04Phq4AeMmGSygEJkfGO+Wt8wIDAQAB",
+ "signature":"kCUJQeO+FZ0hENaTT9bFW90HwiIppJEj/j88gOyXIL3z00ZOn/eck+M8O+HU7ad+U7BG5GK7xnuIvqzjAYK4ihfEYbExnbx3R79GWUWpHegELbp0PvhU9a+xIwTh48kzpKNgunzZGY0oONGvVeoNQXeTTO8z2i6RZfWD3/YdyBk=",
"version": "1.0.0.0",
"name": "My extension 1",
"description": "The first extension that I made.",
diff --git a/chrome/test/data/extensions/good/extension2/2/manifest.json b/chrome/test/data/extensions/good/extension2/2/manifest.json
index 35f01c0..62eea65 100644
--- a/chrome/test/data/extensions/good/extension2/2/manifest.json
+++ b/chrome/test/data/extensions/good/extension2/2/manifest.json
@@ -1,5 +1,6 @@
{
- "id": "10123456789ABCDEF0123456789ABCDEF0123456",
+ "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4RIIi/YbLZ6dRpdQnWfrQuo2vunkuPJpD9HNvZQ3J5aylSw7Y8ghzom793CbTJK1ZI254yZtkaWZJWOBhPKCaaRac+qfpRN1spl42vpyMn1OrGQm1pwZT6rDpCyIVIx/k2o4puMsQHNUIqxXPu3Oj+KSVdCIGOmabMhz765UjhwIDAQAB",
+ "signature":"kCUJQeO+FZ0hENaTT9bFW90HwiIppJEj/j88gOyXIL3z00ZOn/eck+M8O+HU7ad+U7BG5GK7xnuIvqzjAYK4ihfEYbExnbx3R79GWUWpHegELbp0PvhU9a+xIwTh48kzpKNgunzZGY0oONGvVeoNQXeTTO8z2i6RZfWD3/YdyBk=",
"version": "1.0.0.0",
"name": "My extension 2",
"plugins": [
diff --git a/chrome/test/data/extensions/good/extension3/1.0/manifest.json b/chrome/test/data/extensions/good/extension3/1.0/manifest.json
index 7927104..f162173 100644
--- a/chrome/test/data/extensions/good/extension3/1.0/manifest.json
+++ b/chrome/test/data/extensions/good/extension3/1.0/manifest.json
@@ -1,5 +1,6 @@
{
- "id": "20123456789ABCDEF0123456789ABCDEF0123456",
+ "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDl3hT1ZDijpPbk8wo8TxRGlQSU1zWvQFnY8XewiRMrEjTndGIGUGxXVg7KlBJOQ0DqK+yS8jeK1xsDRre7IzqoA491AnGRydsHXWwGCNHzwtzFjfVGChoqvXdsAoikBzeEv0+ZL1sHid++gLqICDlapcko0/TzrWe+F6bTA7n5oQIDAQAB",
+ "signature":"kCUJQeO+FZ0hENaTT9bFW90HwiIppJEj/j88gOyXIL3z00ZOn/eck+M8O+HU7ad+U7BG5GK7xnuIvqzjAYK4ihfEYbExnbx3R79GWUWpHegELbp0PvhU9a+xIwTh48kzpKNgunzZGY0oONGvVeoNQXeTTO8z2i6RZfWD3/YdyBk=",
"version": "1.0",
"name": "My extension 3"
}
diff --git a/chrome/test/data/extensions/good2.crx b/chrome/test/data/extensions/good2.crx
index d475b5e..26a1dfa 100755
--- a/chrome/test/data/extensions/good2.crx
+++ b/chrome/test/data/extensions/good2.crx
Binary files differ
diff --git a/chrome/test/data/extensions/page_action.crx b/chrome/test/data/extensions/page_action.crx
index 8b4ec7c..2a397c8 100644
--- a/chrome/test/data/extensions/page_action.crx
+++ b/chrome/test/data/extensions/page_action.crx
Binary files differ
diff --git a/chrome/test/data/extensions/samples/buildbot/manifest.json b/chrome/test/data/extensions/samples/buildbot/manifest.json
index c584f8d..71e2326 100644
--- a/chrome/test/data/extensions/samples/buildbot/manifest.json
+++ b/chrome/test/data/extensions/samples/buildbot/manifest.json
@@ -1,6 +1,5 @@
{
- "description": "Buildbot waterfall monitor",
- "id": "7868865ECC233B0400ABE5D38D88355C03C4BB1A",
+ "description": "Buildbot waterfall monitor",
"name": "buildbot",
"toolstrips": [
"buildbot.html"
diff --git a/chrome/test/data/extensions/samples/subscribe/manifest.json b/chrome/test/data/extensions/samples/subscribe/manifest.json
index fa98e31..3ec3cd8 100644
--- a/chrome/test/data/extensions/samples/subscribe/manifest.json
+++ b/chrome/test/data/extensions/samples/subscribe/manifest.json
@@ -9,8 +9,7 @@
]
}
],
- "description": "Adds one-click subscription with Google Reader to your toolbar",
- "id": "8962A8B1A1063945CEDE08181EA28D2D65124E86",
+ "description": "Adds one-click subscription with Google Reader to your toolbar",
"name": "Subscribe in Reader",
"permissions": [
"http://www.google.com/*"
diff --git a/chrome/test/data/extensions/theme.crx b/chrome/test/data/extensions/theme.crx
index bed2237..e80391d 100644
--- a/chrome/test/data/extensions/theme.crx
+++ b/chrome/test/data/extensions/theme.crx
Binary files differ
diff --git a/chrome/test/data/extensions/theme2.crx b/chrome/test/data/extensions/theme2.crx
index 66fd919..313fc8d 100644
--- a/chrome/test/data/extensions/theme2.crx
+++ b/chrome/test/data/extensions/theme2.crx
Binary files differ
diff --git a/chrome/test/data/extensions/theme_with_extension.crx b/chrome/test/data/extensions/theme_with_extension.crx
index beb12be..bd0d312 100644
--- a/chrome/test/data/extensions/theme_with_extension.crx
+++ b/chrome/test/data/extensions/theme_with_extension.crx
Binary files differ
diff --git a/chrome/test/data/extensions/theme_with_missing_image.crx b/chrome/test/data/extensions/theme_with_missing_image.crx
new file mode 100755
index 0000000..8f9b355
--- /dev/null
+++ b/chrome/test/data/extensions/theme_with_missing_image.crx
Binary files differ
diff --git a/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension1.json b/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension1.json
index 1cf00e7..33dba7f 100644
--- a/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension1.json
+++ b/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension1.json
@@ -1,5 +1,5 @@
{
- "id": "00123456789abcdef0123456789abcdef0123456",
+ "id": "fc6f6ba6693faf6773c13701019f2e7a12f0febe",
"version": "1.0.0.0",
"name": "My extension 1",
"description": "The first extension that I made.",
diff --git a/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension2.json b/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension2.json
index 73d98ff..c6300a3 100644
--- a/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension2.json
+++ b/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension2.json
@@ -1,5 +1,5 @@
{
- "id": "10123456789abcdef0123456789abcdef0123456",
+ "id": "e5ead92b2c6795c1d2b92df9c5cb37de5582471a",
"version": "1.0.0.0",
"name": "My extension 2",
"description": "",
diff --git a/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension3.json b/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension3.json
index 3fd8a09..1125f48 100644
--- a/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension3.json
+++ b/chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension3.json
@@ -1,5 +1,5 @@
{
- "id": "20123456789abcdef0123456789abcdef0123456",
+ "id": "a37fed892f622823f4daaec4426a32fc7f6147dc",
"version": "1.0",
"name": "My extension 3",
"description": "",
diff --git a/chrome/test/data/extensions/uitest/roundtrip_api_call/manifest.json b/chrome/test/data/extensions/uitest/roundtrip_api_call/manifest.json
index b071780..5acde49 100644
--- a/chrome/test/data/extensions/uitest/roundtrip_api_call/manifest.json
+++ b/chrome/test/data/extensions/uitest/roundtrip_api_call/manifest.json
@@ -1,5 +1,5 @@
{
- "id": "66664444789ABCDEF0123456789ABCDEF0123456",
+ "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4RIIi/YbLZ6dRpdQnWfrQuo2vunkuPJpD9HNvZQ3J5aylSw7Y8ghzom793CbTJK1ZI254yZtkaWZJWOBhPKCaaRac+qfpRN1spl42vpyMn1OrGQm1pwZT6rDpCyIVIx/k2o4puMsQHNUIqxXPu3Oj+KSVdCIGOmabMhz765UjhwIDAQAB",
"version": "1.0.0.0",
"name": "Roundtrip ApiCall Test Extension",
"description": "An extension for an extension UITest."
diff --git a/chrome/test/data/extensions/uitest/simple_api_call/manifest.json b/chrome/test/data/extensions/uitest/simple_api_call/manifest.json
index b883fdf..b302c0e 100644
--- a/chrome/test/data/extensions/uitest/simple_api_call/manifest.json
+++ b/chrome/test/data/extensions/uitest/simple_api_call/manifest.json
@@ -1,5 +1,5 @@
{
- "id": "77774444789ABCDEF0123456789ABCDEF0123456",
+ "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCsaVmPYFjlYABY7y8sEVB5i3/stDIXU8i3bBeQYeaXOg+Jr1vEhaSgKTy3zMY4m3+cnKI7Z/bMpYohS4pQTcwIXS1kEB6taCUUWgm2315zxSH+gUFRyfzBDlS8LZ9tRirFGj8o0R2YQobHgSPyf04Phq4AeMmGSygEJkfGO+Wt8wIDAQAB",
"version": "1.0.0.0",
"name": "ApiCall Test Extension",
"description": "An extension for an extension UITest."