summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/js_only_v8_extensions.cc
diff options
context:
space:
mode:
authorerikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 17:15:47 +0000
committererikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 17:15:47 +0000
commit5c1cea3f04d6913960bc25b233d79410406bd3ee (patch)
treed4f20d40a5b41ac3b8288d10251fd2a3ccca0109 /chrome/renderer/extensions/js_only_v8_extensions.cc
parentba6e39cbfcbc4b91edf95a6d82216ee22d2ad3d5 (diff)
downloadchromium_src-5c1cea3f04d6913960bc25b233d79410406bd3ee.zip
chromium_src-5c1cea3f04d6913960bc25b233d79410406bd3ee.tar.gz
chromium_src-5c1cea3f04d6913960bc25b233d79410406bd3ee.tar.bz2
share extension API test framework
BUG=18442 TEST=ExtensionApiTest.* Review URL: http://codereview.chromium.org/173622 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/js_only_v8_extensions.cc')
-rw-r--r--chrome/renderer/extensions/js_only_v8_extensions.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/renderer/extensions/js_only_v8_extensions.cc b/chrome/renderer/extensions/js_only_v8_extensions.cc
index 986e656..94b12be 100644
--- a/chrome/renderer/extensions/js_only_v8_extensions.cc
+++ b/chrome/renderer/extensions/js_only_v8_extensions.cc
@@ -27,3 +27,12 @@ v8::Extension* JsonSchemaJsV8Extension::Get() {
kName, GetStringResource<IDR_JSON_SCHEMA_JS>(), 0, NULL);
return extension;
}
+
+// ExtensionApiTestV8Extension
+const char* ExtensionApiTestV8Extension::kName = "chrome/extensionapitest";
+v8::Extension* ExtensionApiTestV8Extension::Get() {
+ static v8::Extension* extension =
+ new bindings_utils::ExtensionBase(
+ kName, GetStringResource<IDR_EXTENSION_APITEST_JS>(), 0, NULL);
+ return extension;
+}