1// Copyright 2020 The Bazel Authors. All rights reserved. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package wkt_wrapper_test 16 17import ( 18 "testing" 19 20 descriptorpb1 "github.com/golang/protobuf/protoc-gen-go/descriptor" 21 pluginpb1 "github.com/golang/protobuf/protoc-gen-go/plugin" 22 anypb1 "github.com/golang/protobuf/ptypes/any" 23 durationpb1 "github.com/golang/protobuf/ptypes/duration" 24 emptypb1 "github.com/golang/protobuf/ptypes/empty" 25 structpb1 "github.com/golang/protobuf/ptypes/struct" 26 timestamppb1 "github.com/golang/protobuf/ptypes/timestamp" 27 wrapperspb1 "github.com/golang/protobuf/ptypes/wrappers" 28 field_mask1 "google.golang.org/genproto/protobuf/field_mask" 29 type1 "google.golang.org/genproto/protobuf/ptype" 30 source_context1 "google.golang.org/genproto/protobuf/source_context" 31 descriptorpb2 "google.golang.org/protobuf/types/descriptorpb" 32 anypb2 "google.golang.org/protobuf/types/known/anypb" 33 durationpb2 "google.golang.org/protobuf/types/known/durationpb" 34 emptypb2 "google.golang.org/protobuf/types/known/emptypb" 35 field_mask2 "google.golang.org/protobuf/types/known/fieldmaskpb" 36 source_context2 "google.golang.org/protobuf/types/known/sourcecontextpb" 37 structpb2 "google.golang.org/protobuf/types/known/structpb" 38 timestamppb2 "google.golang.org/protobuf/types/known/timestamppb" 39 type2 "google.golang.org/protobuf/types/known/typepb" 40 wrapperspb2 "google.golang.org/protobuf/types/known/wrapperspb" 41 pluginpb2 "google.golang.org/protobuf/types/pluginpb" 42) 43 44func Test(t *testing.T) { 45 var _ *anypb2.Any = (*anypb1.Any)(nil) 46 var _ *anypb1.Any = (*anypb2.Any)(nil) 47 var _ *pluginpb2.Version = (*pluginpb1.Version)(nil) 48 var _ *pluginpb1.Version = (*pluginpb2.Version)(nil) 49 var _ *descriptorpb2.DescriptorProto = (*descriptorpb1.DescriptorProto)(nil) 50 var _ *descriptorpb1.DescriptorProto = (*descriptorpb2.DescriptorProto)(nil) 51 var _ *durationpb2.Duration = (*durationpb1.Duration)(nil) 52 var _ *durationpb1.Duration = (*durationpb2.Duration)(nil) 53 var _ *emptypb2.Empty = (*emptypb1.Empty)(nil) 54 var _ *emptypb1.Empty = (*emptypb2.Empty)(nil) 55 var _ *field_mask1.FieldMask = (*field_mask2.FieldMask)(nil) 56 var _ *field_mask2.FieldMask = (*field_mask1.FieldMask)(nil) 57 var _ *source_context1.SourceContext = (*source_context2.SourceContext)(nil) 58 var _ *source_context2.SourceContext = (*source_context1.SourceContext)(nil) 59 var _ *structpb2.Struct = (*structpb1.Struct)(nil) 60 var _ *structpb1.Struct = (*structpb2.Struct)(nil) 61 var _ *timestamppb2.Timestamp = (*timestamppb1.Timestamp)(nil) 62 var _ *timestamppb1.Timestamp = (*timestamppb2.Timestamp)(nil) 63 var _ *type1.Type = (*type2.Type)(nil) 64 var _ *type2.Type = (*type1.Type)(nil) 65 var _ *wrapperspb2.BoolValue = (*wrapperspb1.BoolValue)(nil) 66 var _ *wrapperspb1.BoolValue = (*wrapperspb2.BoolValue)(nil) 67} 68