Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4949)

Unified Diff: chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js

Issue 263683002: Set file tokens for NaCl main nexe if available to enable validation caching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clear tokens too Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js
diff --git a/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js b/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js
new file mode 100644
index 0000000000000000000000000000000000000000..4f430872306f028b5bc122ad7a07c999b65e8118
--- /dev/null
+++ b/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js
@@ -0,0 +1,20 @@
+function create(manifest_url) {
teravest 2014/05/21 16:49:42 Do you need a copyright statement for this file?
jvoung (off chromium) 2014/05/21 21:10:56 Done.
+ var embed = load_util.embed(manifest_url);
+
+ embed.addEventListener("load", function(evt) {
+ load_util.shutdown("1 test passed.", true);
+ }, true);
+
+ embed.addEventListener("error", function(evt) {
+ load_util.log("Load error: " + embed.lastError);
+ load_util.shutdown("1 test failed.", false);
+ }, true);
+
+ document.body.appendChild(embed);
+}
+
+function documentLoaded() {
+ create('extension_validation_cache.nmf');
+}
+
+document.addEventListener('DOMContentLoaded', documentLoaded);

Powered by Google App Engine
This is Rietveld 408576698