forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync changes from internal repo. (flutter#133)
Namely, the last major external change (support for Any proto) caused a large breakage internally because of the new behavior of BuilderInfo.messageName. This getter has been reverted back to its original behavior, and a new BuilderInfo.qualifiedMessageName has been introduced.
- Loading branch information
Showing
10 changed files
with
53 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: protobuf | ||
version: 0.10.3 | ||
version: 0.10.4 | ||
author: Dart Team <[email protected]> | ||
description: > | ||
Runtime library for protocol buffers support. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:protobuf/protobuf.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
main() { | ||
group('className', () { | ||
final qualifiedmessageName = 'proto.test.TestMessage'; | ||
final expectedMessageName = 'TestMessage'; | ||
test('truncates qualifiedMessageName containing dots', () { | ||
final info = new BuilderInfo(qualifiedmessageName); | ||
expect(info.messageName, expectedMessageName); | ||
}); | ||
|
||
test('uses qualifiedMessageName if it contains no dots', () { | ||
final info = new BuilderInfo(expectedMessageName); | ||
expect(info.messageName, expectedMessageName); | ||
}); | ||
}); | ||
} |