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

Unified Diff: mojo/apps/js/test/js_to_cpp_unittest.js

Issue 411553003: Validate incoming JS Message Headers: test message parser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed WebUIMojoTest.EndToEndPing Created 6 years, 5 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
« no previous file with comments | « content/content_resources.grd ('k') | mojo/apps/js/test/run_apps_js_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/test/js_to_cpp_unittest.js
diff --git a/mojo/apps/js/test/js_to_cpp_unittest.js b/mojo/apps/js/test/js_to_cpp_unittest.js
index 63b5f8be936a64b0467806af37076ee2bdc9b160..b1073c80136c92577715e0ce8f0602e9e61d524c 100644
--- a/mojo/apps/js/test/js_to_cpp_unittest.js
+++ b/mojo/apps/js/test/js_to_cpp_unittest.js
@@ -98,8 +98,8 @@ define('mojo/apps/js/test/js_to_cpp_unittest', [
var value;
if (offset < message.buffer.arrayBuffer.byteLength) {
mask = 1 << (iteration % 8);
- value = message.buffer.dataView.getUint8(offset) ^ mask;
- message.buffer.dataView.setUint8(offset, value);
+ value = message.buffer.getUint8(offset) ^ mask;
+ message.buffer.setUint8(offset, value);
return this.realAccept(message);
}
stopSignalled = true;
« no previous file with comments | « content/content_resources.grd ('k') | mojo/apps/js/test/run_apps_js_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698