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

Unified Diff: mojo/public/bindings/js/codec_unittests.js

Issue 63033010: Mojo's C++ and JavaScript bindings should produce identical messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | « mojo/public/bindings/js/codec.js ('k') | mojo/public/bindings/js/test/hexdump.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/js/codec_unittests.js
diff --git a/mojo/public/bindings/js/codec_unittests.js b/mojo/public/bindings/js/codec_unittests.js
index f22791de97babee08eda4a441b2dd08d841818cc..8311f2c83b30c9b5878416a72bdb1ce0a727da57 100644
--- a/mojo/public/bindings/js/codec_unittests.js
+++ b/mojo/public/bindings/js/codec_unittests.js
@@ -102,7 +102,7 @@ define([
];
var messageName = 31;
- var payloadSize = sample.Foo.encodedSize;
+ var payloadSize = 232;
var builder = new codec.MessageBuilder(messageName, payloadSize);
builder.encodeStruct(sample.Foo, foo);
@@ -110,11 +110,11 @@ define([
var message = builder.finish();
var expectedMemory = [
- /* 0: */ 80, 0, 0, 0, 31, 0, 0, 0,
- /* 8: */ 72, 0, 0, 0, 10, 0, 0, 0,
+ /* 0: */ 240, 0, 0, 0, 31, 0, 0, 0,
+ /* 8: */ 64, 0, 0, 0, 10, 0, 0, 0,
/* 16: */ 0xD5, 0xB4, 0x12, 0x02, 0x93, 0x6E, 0x01, 0,
/* 24: */ 5, 0, 0, 0, 0, 0, 0, 0,
- /* 32: */ 48, 0, 0, 0, 0, 0, 0, 0,
+ /* 32: */ 40, 0, 0, 0, 0, 0, 0, 0,
// TODO(abarth): Test more of the message's raw memory.
];
« no previous file with comments | « mojo/public/bindings/js/codec.js ('k') | mojo/public/bindings/js/test/hexdump.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698