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

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

Issue 800523004: Dart: Simplifies the handle watcher. Various cleanups and bugfixes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: cleanup 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/test/bindings_generation_test.dart ('k') | mojo/dart/test/core_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/test/codec_test.dart
diff --git a/mojo/dart/test/codec_test.dart b/mojo/dart/test/codec_test.dart
index 0277bc880e9b20b0c582716b541eb988121ead03..7c7ccf4700d0843af2d57feae4455e13c21b202d 100644
--- a/mojo/dart/test/codec_test.dart
+++ b/mojo/dart/test/codec_test.dart
@@ -103,13 +103,13 @@ class TestFoo {
bool a = true;
bool b = false;
bool c = false;
- core.RawMojoHandle source = null;
+ core.MojoHandle source = null;
TestBar bar = null;
List<int> data = null;
List<TestBar> extra_bars = null;
String name = kFooby;
- List<core.RawMojoHandle> input_streams = null;
- List<core.RawMojoHandle> output_streams = null;
+ List<core.MojoHandle> input_streams = null;
+ List<core.MojoHandle> output_streams = null;
List<List<bool>> array_of_array_of_bools = null;
List<List<List<String>>> multi_array_of_strings = null;
List<bool> array_of_bools = null;
@@ -202,7 +202,7 @@ void testFoo() {
}
foo.name = "I am a banana";
// This is supposed to be a handle, but we fake it with an integer.
- foo.source = new core.RawMojoHandle(23423782);
+ foo.source = new core.MojoHandle(23423782);
foo.array_of_array_of_bools = [
[true], [false, true]
];
@@ -232,8 +232,8 @@ void testFoo() {
var actualMemory = allActualMemory.sublist(0, expectedMemory.length);
Expect.listEquals(expectedMemory, actualMemory);
- var expectedHandles = <core.RawMojoHandle>[
- new core.RawMojoHandle(23423782),
+ var expectedHandles = <core.MojoHandle>[
+ new core.MojoHandle(23423782),
];
Expect.listEquals(expectedHandles, message.handles);
« no previous file with comments | « mojo/dart/test/bindings_generation_test.dart ('k') | mojo/dart/test/core_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698