• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Protocol Buffers - Google's data interchange format
2// Copyright 2008 Google Inc.  All rights reserved.
3//
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file or at
6// https://developers.google.com/open-source/licenses/bsd
7
8syntax = "proto2";
9
10package objc.protobuf.tests.options;
11
12option objc_class_prefix = "GPBTEST";
13
14// Verify that enum types and values get the prefix.
15message TestObjcProtoPrefixMessage {
16}
17
18// Verify that messages that don't already have the prefix get a prefix.
19enum TestObjcProtoPrefixEnum {
20  value = 1;
21}
22
23// Verify that messages that already have a prefix aren't prefixed twice.
24message GPBTESTTestHasAPrefixMessage {
25}
26
27// Verify that enums that already have a prefix aren't prefixed twice.
28enum GPBTESTTestHasAPrefixEnum {
29  valueB = 1;
30}
31
32// Verify that classes that have the prefix followed by a lowercase
33// letter DO get the prefix.
34message GPBTESTshouldGetAPrefixMessage {
35}
36
37// Verify that classes named the same as prefixes are prefixed.
38message GPBTEST {
39}
40
41// Tests that lookup deals with prefix.
42message PrefixedParentMessage {
43  message Child {
44  }
45}
46