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

Unified Diff: test/generated_message_test.dart

Issue 128003003: Fix issue with importing packages where the package name included a dot (Closed) Base URL: https://github.com/dart-lang/dart-protoc-plugin.git@master
Patch Set: Update pubspec version Created 6 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 | « pubspec.yaml ('k') | test/protos/duplicate_names_import.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/generated_message_test.dart
diff --git a/test/generated_message_test.dart b/test/generated_message_test.dart
index 50ee33f133000155f0289c67508fffee46a13a36..d88d72a5ccb16bbc8575125241998892f9550345 100755
--- a/test/generated_message_test.dart
+++ b/test/generated_message_test.dart
@@ -15,6 +15,10 @@ import '../out/protos/multiple_files_test.pb.dart';
import '../out/protos/nested_extension.pb.dart';
import '../out/protos/non_nested_extension.pb.dart';
import '../out/protos/reserved_names.pb.dart';
+import '../out/protos/duplicate_names_import.pb.dart';
+import '../out/protos/package1.pb.dart' as p1;
+import '../out/protos/package2.pb.dart' as p2;
+import '../out/protos/package3.pb.dart' as p3;
import 'test_util.dart';
@@ -585,4 +589,14 @@ void main() {
message.hasX51 = 1;
message.clearX53 = 1;
});
+
+ test('testImportDuplicatenames', () {
+ M message = new M();
+ message.m1 = new p1.M();
+ message.m1M = new p1.M_M();
+ message.m2 = new p2.M();
+ message.m2M = new p2.M_M();
+ message.m3 = new p3.M();
+ message.m3M = new p3.M_M();
+ });
}
« no previous file with comments | « pubspec.yaml ('k') | test/protos/duplicate_names_import.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698