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 => { |