blob: d6204bef0654e0431e0dc21dce5362d81ca6aa88 [file] [log] [blame]
// Copyright (c) 2020, 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:test/test.dart';
import '../out/protos/google/protobuf/unittest.pb.dart';
String constant() => 'SHOULD_BE_PRESENT';
Future<void> main() async {
test('message name available depending on environment', () {
const bool.fromEnvironment('protobuf.omit_message_names')
? ''
: 'protobuf_unittest.TestAllTypes.NestedMessage');
expect(constant(), 'SHOULD_BE_PRESENT');