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

Unified Diff: third_party/WebKit/LayoutTests/harness-tests/mojo-helpers.html

Issue 2405093003: [WIP] Mojo native bindings interface.
Patch Set: fixes webui tests Created 3 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/WebKit/LayoutTests/harness-tests/mojo-helpers.html
diff --git a/third_party/WebKit/LayoutTests/harness-tests/mojo-helpers.html b/third_party/WebKit/LayoutTests/harness-tests/mojo-helpers.html
index cb27dcea2750580380961beedb7c92ce069c0757..b269836c0ddbaffa0fc2f32597cc9409f9e19291 100644
--- a/third_party/WebKit/LayoutTests/harness-tests/mojo-helpers.html
+++ b/third_party/WebKit/LayoutTests/harness-tests/mojo-helpers.html
@@ -9,7 +9,6 @@
// are available.
mojo_test(mojo => {
assert_true(mojo instanceof Object);
- assert_true(mojo.core instanceof Object);
assert_true(mojo.router instanceof Object);
assert_true(mojo.frameInterfaces instanceof Object);
assert_true(mojo.interfaces instanceof Object);
@@ -62,8 +61,7 @@ mojo_test(mojo => {
});
let pipe = mojo.interfaces.getInterface('Frobinator');
- assert_equals(mojo.core.writeMessage(pipe, TEST_REQUEST, [], 0),
- mojo.core.RESULT_OK);
+ assert_equals(pipe.writeMessage(TEST_REQUEST, []), Mojo.RESULT_OK);
});
}, 'Mock interfaces can receive messages from test code.');
@@ -77,14 +75,12 @@ mojo_test(mojo => {
.then(message => {
let response = new Uint8Array(message.buffer);
response.reverse();
- assert_equals(mojo.core.writeMessage(pipe, response, [], 0),
- mojo.core.RESULT_OK);
+ assert_equals(pipe.writeMessage(response, []), Mojo.RESULT_OK);
});
});
let pipe = mojo.interfaces.getInterface('Reversinator');
- assert_equals(mojo.core.writeMessage(pipe, TEST_REQUEST, [], 0),
- mojo.core.RESULT_OK);
+ assert_equals(pipe.writeMessage(TEST_REQUEST, []), Mojo.RESULT_OK);
return mojo_wait_for_incoming_message(mojo, pipe)
.then(response => {

Powered by Google App Engine
This is Rietveld 408576698