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

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

Issue 1529423002: Dart: Fix conversion of identifiers to lowerCamelCase. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Comments Created 5 years 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: mojo/dart/test/bindings_generation_test.dart
diff --git a/mojo/dart/test/bindings_generation_test.dart b/mojo/dart/test/bindings_generation_test.dart
index b1a0998aaf50a9182c09be02e0152c5bb6b42f4e..037cdf60ce5284c695be323ccdd1f46b21135d4c 100644
--- a/mojo/dart/test/bindings_generation_test.dart
+++ b/mojo/dart/test/bindings_generation_test.dart
@@ -7,17 +7,20 @@ import 'dart:isolate';
import 'dart:typed_data';
import 'dart:convert';
-import 'package:_mojo_for_test_only/expect.dart';
import 'package:mojo/bindings.dart' as bindings;
import 'package:mojo/core.dart' as core;
-import 'package:_mojo_for_test_only/sample/sample_interfaces.mojom.dart' as sample;
-import 'package:_mojo_for_test_only/mojo/test/test_structs.mojom.dart' as structs;
-import 'package:_mojo_for_test_only/mojo/test/test_unions.mojom.dart' as unions;
+import 'package:_mojo_for_test_only/expect.dart';
import 'package:_mojo_for_test_only/mojo/test/rect.mojom.dart' as rect;
import 'package:_mojo_for_test_only/mojo/test/serialization_test_structs.mojom.dart'
as serialization;
+import 'package:_mojo_for_test_only/mojo/test/test_structs.mojom.dart'
+ as structs;
+import 'package:_mojo_for_test_only/mojo/test/test_unions.mojom.dart'
+ as unions;
import 'package:_mojo_for_test_only/regression_tests/regression_tests.mojom.dart'
as regression;
+import 'package:_mojo_for_test_only/sample/sample_interfaces.mojom.dart'
+ as sample;
class ProviderImpl implements sample.Provider {
sample.ProviderStub _stub;
@@ -371,6 +374,22 @@ Future<bool> testServiceName() {
return c.future;
}
+
+testCamelCase() {
+ var e = CamelCaseTestEnum.boolThing;
+ e = CamelCaseTestEnum.doubleThing;
+ e = CamelCaseTestEnum.floatThing;
+ e = CamelCaseTestEnum.int8Thing;
+ e = CamelCaseTestEnum.int16Thing;
+ e = CamelCaseTestEnum.int32Th1Ng;
+ e = CamelCaseTestEnum.int64Th1ng;
+ e = CamelCaseTestEnum.uint8TH1ng;
+ e = CamelCaseTestEnum.uint16tH1Ng;
+ e = CamelCaseTestEnum.uint32Th1ng;
+ e = CamelCaseTestEnum.uint64Th1Ng;
+}
+
+
main() async {
testSerializeStructs();
testUnions();
@@ -380,4 +399,5 @@ main() async {
await runOnClosedTest();
await testRegression551();
await testServiceName();
+ testCamelCase();
}

Powered by Google App Engine
This is Rietveld 408576698