Googletest export

Internal Change

PiperOrigin-RevId: 277336786
This commit is contained in:
misterg 2019-10-29 15:13:11 -04:00 committed by vslashg
parent fff8dabbf6
commit ba33a8876c
7 changed files with 75 additions and 175 deletions

View File

@ -1,33 +1,19 @@
#!/usr/bin/env python #!/usr/bin/env python
# #
# Copyright 2008, Google Inc. # Copyright 2007 Neal Norwitz
# All rights reserved. # Portions Copyright 2007 Google Inc.
# #
# Redistribution and use in source and binary forms, with or without # Licensed under the Apache License, Version 2.0 (the "License");
# modification, are permitted provided that the following conditions are # you may not use this file except in compliance with the License.
# met: # You may obtain a copy of the License at
# #
# * Redistributions of source code must retain the above copyright # http://www.apache.org/licenses/LICENSE-2.0
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
# #
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # Unless required by applicable law or agreed to in writing, software
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # distributed under the License is distributed on an "AS IS" BASIS,
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # See the License for the specific language governing permissions and
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # limitations under the License.
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Generate an Abstract Syntax Tree (AST) for C++.""" """Generate an Abstract Syntax Tree (AST) for C++."""

View File

@ -1,33 +1,18 @@
#!/usr/bin/env python #!/usr/bin/env python
# #
# Copyright 2008, Google Inc. # Copyright 2008 Google Inc. All Rights Reserved.
# All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Licensed under the Apache License, Version 2.0 (the "License");
# modification, are permitted provided that the following conditions are # you may not use this file except in compliance with the License.
# met: # You may obtain a copy of the License at
# #
# * Redistributions of source code must retain the above copyright # http://www.apache.org/licenses/LICENSE-2.0
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
# #
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # Unless required by applicable law or agreed to in writing, software
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # distributed under the License is distributed on an "AS IS" BASIS,
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # See the License for the specific language governing permissions and
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # limitations under the License.
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Generate Google Mock classes from base classes. """Generate Google Mock classes from base classes.

View File

@ -1,33 +1,19 @@
#!/usr/bin/env python #!/usr/bin/env python
# #
# Copyright 2009, Google Inc. # Copyright 2009 Neal Norwitz All Rights Reserved.
# All rights reserved. # Portions Copyright 2009 Google Inc. All Rights Reserved.
# #
# Redistribution and use in source and binary forms, with or without # Licensed under the Apache License, Version 2.0 (the "License");
# modification, are permitted provided that the following conditions are # you may not use this file except in compliance with the License.
# met: # You may obtain a copy of the License at
# #
# * Redistributions of source code must retain the above copyright # http://www.apache.org/licenses/LICENSE-2.0
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
# #
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # Unless required by applicable law or agreed to in writing, software
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # distributed under the License is distributed on an "AS IS" BASIS,
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # See the License for the specific language governing permissions and
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # limitations under the License.
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Tests for gmock.scripts.generator.cpp.gmock_class.""" """Tests for gmock.scripts.generator.cpp.gmock_class."""

View File

@ -1,33 +1,19 @@
#!/usr/bin/env python #!/usr/bin/env python
# #
# Copyright 2007, Google Inc. # Copyright 2007 Neal Norwitz
# All rights reserved. # Portions Copyright 2007 Google Inc.
# #
# Redistribution and use in source and binary forms, with or without # Licensed under the Apache License, Version 2.0 (the "License");
# modification, are permitted provided that the following conditions are # you may not use this file except in compliance with the License.
# met: # You may obtain a copy of the License at
# #
# * Redistributions of source code must retain the above copyright # http://www.apache.org/licenses/LICENSE-2.0
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
# #
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # Unless required by applicable law or agreed to in writing, software
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # distributed under the License is distributed on an "AS IS" BASIS,
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # See the License for the specific language governing permissions and
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # limitations under the License.
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""C++ keywords and helper utilities for determining keywords.""" """C++ keywords and helper utilities for determining keywords."""

View File

@ -1,33 +1,19 @@
#!/usr/bin/env python #!/usr/bin/env python
# #
# Copyright 2007, Google Inc. # Copyright 2007 Neal Norwitz
# All rights reserved. # Portions Copyright 2007 Google Inc.
# #
# Redistribution and use in source and binary forms, with or without # Licensed under the Apache License, Version 2.0 (the "License");
# modification, are permitted provided that the following conditions are # you may not use this file except in compliance with the License.
# met: # You may obtain a copy of the License at
# #
# * Redistributions of source code must retain the above copyright # http://www.apache.org/licenses/LICENSE-2.0
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
# #
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # Unless required by applicable law or agreed to in writing, software
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # distributed under the License is distributed on an "AS IS" BASIS,
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # See the License for the specific language governing permissions and
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # limitations under the License.
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Tokenize C++ source code.""" """Tokenize C++ source code."""

View File

@ -1,33 +1,19 @@
#!/usr/bin/env python #!/usr/bin/env python
# #
# Copyright 2007, Google Inc. # Copyright 2007 Neal Norwitz
# All rights reserved. # Portions Copyright 2007 Google Inc.
# #
# Redistribution and use in source and binary forms, with or without # Licensed under the Apache License, Version 2.0 (the "License");
# modification, are permitted provided that the following conditions are # you may not use this file except in compliance with the License.
# met: # You may obtain a copy of the License at
# #
# * Redistributions of source code must retain the above copyright # http://www.apache.org/licenses/LICENSE-2.0
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
# #
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # Unless required by applicable law or agreed to in writing, software
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # distributed under the License is distributed on an "AS IS" BASIS,
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # See the License for the specific language governing permissions and
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # limitations under the License.
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Generic utilities for C++ parsing.""" """Generic utilities for C++ parsing."""

View File

@ -1,33 +1,18 @@
#!/usr/bin/env python #!/usr/bin/env python
# #
# Copyright 2008, Google Inc. # Copyright 2008 Google Inc. All Rights Reserved.
# All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Licensed under the Apache License, Version 2.0 (the "License");
# modification, are permitted provided that the following conditions are # you may not use this file except in compliance with the License.
# met: # You may obtain a copy of the License at
# #
# * Redistributions of source code must retain the above copyright # http://www.apache.org/licenses/LICENSE-2.0
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
# #
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # Unless required by applicable law or agreed to in writing, software
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # distributed under the License is distributed on an "AS IS" BASIS,
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # See the License for the specific language governing permissions and
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # limitations under the License.
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Driver for starting up Google Mock class generator.""" """Driver for starting up Google Mock class generator."""