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

Unified Diff: mojo/dart/test/core_test.dart

Issue 851173002: Dart: Encode/Decode handle and interface types. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix Interface encode parameters Created 5 years, 11 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 | « mojo/dart/embedder/test/run_dart_tests.cc ('k') | mojo/dart/test/sample_service_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/test/core_test.dart
diff --git a/mojo/dart/test/core_test.dart b/mojo/dart/test/core_test.dart
index 337785ab02dafd7d0bddd99cc7dba22a80f6e8b6..c62a26787d93217ee68f71f17c33d2a4fe5bdfc7 100644
--- a/mojo/dart/test/core_test.dart
+++ b/mojo/dart/test/core_test.dart
@@ -60,13 +60,13 @@ invalidHandleTest() {
Expect.isTrue(dataPipe.consumer.status.isInvalidArgument);
// Shared buffer.
- MojoSharedBuffer sharedBuffer = new MojoSharedBuffer(10);
+ MojoSharedBuffer sharedBuffer = new MojoSharedBuffer.create(10);
Expect.isNotNull(sharedBuffer);
sharedBuffer.close();
MojoSharedBuffer duplicate = new MojoSharedBuffer.duplicate(sharedBuffer);
Expect.isNull(duplicate);
- sharedBuffer = new MojoSharedBuffer(10);
+ sharedBuffer = new MojoSharedBuffer.create(10);
Expect.isNotNull(sharedBuffer);
sharedBuffer.close();
result = sharedBuffer.map(0, 10);
@@ -239,7 +239,7 @@ basicDataPipeTest() {
basicSharedBufferTest() {
- MojoSharedBuffer mojoBuffer = new MojoSharedBuffer(
+ MojoSharedBuffer mojoBuffer = new MojoSharedBuffer.create(
100, MojoSharedBuffer.CREATE_FLAG_NONE);
Expect.isNotNull(mojoBuffer);
Expect.isNotNull(mojoBuffer.status);
« no previous file with comments | « mojo/dart/embedder/test/run_dart_tests.cc ('k') | mojo/dart/test/sample_service_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698