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

Unified Diff: third_party/mojo/src/mojo/edk/js/tests/sample_service_tests.js

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 10 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: third_party/mojo/src/mojo/edk/js/tests/sample_service_tests.js
diff --git a/third_party/mojo/src/mojo/edk/js/tests/sample_service_tests.js b/third_party/mojo/src/mojo/edk/js/tests/sample_service_tests.js
index 2afdf3e709fa50cd4c18c9add31d9ec44f73dbf5..ac8ce2ead0b07d21f25804c1e32ef13827085281 100644
--- a/third_party/mojo/src/mojo/edk/js/tests/sample_service_tests.js
+++ b/third_party/mojo/src/mojo/edk/js/tests/sample_service_tests.js
@@ -146,14 +146,14 @@ define([
function SimpleMessageReceiver() {
}
- SimpleMessageReceiver.prototype.accept = function(message) {
+ SimpleMessageReceiver.prototype.acceptAndExpectResponse = function(message) {
if (dumpMessageAsHex) {
var uint8Array = new Uint8Array(message.buffer.arrayBuffer);
console.log(hexdump.dumpArray(uint8Array));
}
// Imagine some IPC happened here.
var serviceImpl = new ServiceImpl();
- serviceImpl.accept(message);
+ return serviceImpl.acceptWithResponder(message, { accept: function() {} });
};
var serviceProxy = new sample.Service.proxyClass;
« no previous file with comments | « third_party/mojo/src/mojo/edk/js/tests/connection_tests.js ('k') | third_party/mojo/src/mojo/edk/system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698