commit | a817113fb2c595a8da2df46b5043a0353e14ec8b | [log] [tgz] |
---|---|---|
author | Lingfeng Yang <lfy@google.com> | Tue Feb 11 02:54:06 2020 +0000 |
committer | Lingfeng Yang <lfy@google.com> | Tue Feb 11 02:54:58 2020 +0000 |
tree | 6fbb95e902d9d5da457ad9a0d26b35ca9a96ddab | |
parent | 3bfe1208647b9ff43b0401eb9a912f0922a52196 [diff] |
Revert "Upgrade googletest to 41b5f149ab306e96b5b2faf523505d75acffd98a" This reverts commit 3bfe1208647b9ff43b0401eb9a912f0922a52196. Reason for revert: go/ab/emu-master-dev windows build still broken https://android-build.googleplex.com/builds/submitted/6197151/sdk_tools_windows/latest/view/logs/build.log 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\google-breakpad\src\processor\cfi_frame_info_unittest.cc(311,28): error: field type 'MockCFIRuleParserHandler' is an abstract class 01:26:37(02:24.0 ) rel | MockCFIRuleParserHandler mock_handler; 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\qemu\..\google-breakpad\src\processor/cfi_frame_info.h(151,18): note: unimplemented pure virtual method 'CFARule' in 'MockCFIRuleParserHandler' 01:26:37(02:24.0 ) rel | virtual void CFARule(const string &expression) = 0; 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\qemu\..\google-breakpad\src\processor/cfi_frame_info.h(152,18): note: unimplemented pure virtual method 'RARule' in 'MockCFIRuleParserHandler' 01:26:37(02:24.0 ) rel | virtual void RARule(const string &expression) = 0; 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\qemu\..\google-breakpad\src\processor/cfi_frame_info.h(155,18): note: unimplemented pure virtual method 'RegisterRule' in 'MockCFIRuleParserHandler' 01:26:37(02:24.0 ) rel | virtual void RegisterRule(const string &name, const string &expression) = 0; 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | In file included from C:\buildbot\src\android\emu-master-dev\external\google-breakpad\src\processor\cfi_frame_info_unittest.cc:37: 01:26:37(02:24.0 ) rel | In file included from C:\buildbot\src\android\emu-master-dev\external\qemu\..\google-breakpad\src\breakpad_googletest_includes.h:33: 01:26:37(02:24.0 ) rel | In file included from C:\buildbot\src\android\emu-master-dev\external\googletest\googletest\include\gtest/gtest.h:62: 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\googletest\googletest\include\gtest/internal/gtest-internal.h(470,40): error: cannot initialize return object of type 'testing::Test *' with an rvalue of type 'Parser_Empty_Test *' 01:26:37(02:24.0 ) rel | Test* CreateTest() override { return new TestClass; } 01:26:37(02:24.0 ) rel | ^~~ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\google-breakpad\src\processor\cfi_frame_info_unittest.cc(317,1): note: in instantiation of member function 'testing::internal::TestFactoryImpl<Parser_Empty_Test>::CreateTest' requested here 01:26:37(02:24.0 ) rel | TEST_F(Parser, Empty) { 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\googletest\googletest\include\gtest/gtest.h(2373,3): note: expanded from macro 'TEST_F' 01:26:37(02:24.0 ) rel | GTEST_TEST_(test_fixture, test_name, test_fixture, \ 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\googletest\googletest\include\gtest/internal/gtest-internal.h(1428,15): note: expanded from macro 'GTEST_TEST_' 01:26:37(02:24.0 ) rel | new ::testing::internal::TestFactoryImpl<GTEST_TEST_CLASS_NAME_( \ 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\googletest\googletest\include\gtest/internal/gtest-internal.h(470,40): error: cannot initialize return object of type 'testing::Test *' with an rvalue of type 'Parser_LoneColon_Test *' 01:26:37(02:24.0 ) rel | Test* CreateTest() override { return new TestClass; } 01:26:37(02:24.0 ) rel | ^~~ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\google-breakpad\src\processor\cfi_frame_info_unittest.cc(321,1): note: in instantiation of member function 'testing::internal::TestFactoryImpl<Parser_LoneColon_Test>::CreateTest' requested here 01:26:37(02:24.0 ) rel | TEST_F(Parser, LoneColon) { 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\googletest\googletest\include\gtest/gtest.h(2373,3): note: expanded from macro 'TEST_F' 01:26:37(02:24.0 ) rel | GTEST_TEST_(test_fixture, test_name, test_fixture, \ 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\googletest\googletest\include\gtest/internal/gtest-internal.h(1428,15): note: expanded from macro 'GTEST_TEST_' 01:26:37(02:24.0 ) rel | new ::testing::internal::TestFactoryImpl<GTEST_TEST_CLASS_NAME_( \ 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\googletest\googletest\include\gtest/internal/gtest-internal.h(470,40): error: cannot initialize return object of type 'testing::Test *' with an rvalue of type 'Parser_CFANoExpr_Test *' 01:26:37(02:24.0 ) rel | Test* CreateTest() override { return new TestClass; } 01:26:37(02:24.0 ) rel | ^~~ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\google-breakpad\src\processor\cfi_frame_info_unittest.cc(325,1): note: in instantiation of member function 'testing::internal::TestFactoryImpl<Parser_CFANoExpr_Test>::CreateTest' requested here 01:26:37(02:24.0 ) rel | TEST_F(Parser, CFANoExpr) { 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\googletest\googletest\include\gtest/gtest.h(2373,3): note: expanded from macro 'TEST_F' 01:26:37(02:24.0 ) rel | GTEST_TEST_(test_fixture, test_name, test_fixture, \ 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\googletest\googletest\include\gtest/internal/gtest-internal.h(1428,15): note: expanded from macro 'GTEST_TEST_' 01:26:37(02:24.0 ) rel | new ::testing::internal::TestFactoryImpl<GTEST_TEST_CLASS_NAME_( \ 01:26:37(02:24.0 ) rel | ^ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\googletest\googletest\include\gtest/internal/gtest-internal.h(470,40): error: cannot initialize return object of type 'testing::Test *' with an rvalue of type 'Parser_CFANoColonNoExpr_Test *' 01:26:37(02:24.0 ) rel | Test* CreateTest() override { return new TestClass; } 01:26:37(02:24.0 ) rel | ^~~ 01:26:37(02:24.0 ) rel | C:\buildbot\src\android\emu-master-dev\external\google-breakpad\src\processor\cfi_frame_info_unittest.cc(329,1): note: in instantiation of member function 'testing::internal::TestFactoryImpl<Parser_CFANoColonNoExpr_Test>::CreateTest' requested here 01:26:37(02:24.0 ) rel | TEST_F(Parser, CFANoColonNoExpr) { 01:26:37(02:24.0 ) rel | ^ Change-Id: I15d70584259d243419ab9ef0d8c66b1710e3f9f9
Release 1.10.x is now available.
This repository is a merger of the formerly separate GoogleTest and GoogleMock projects. These were so closely related that it makes sense to maintain and release them together.
Please subscribe to the mailing list at googletestframework@googlegroups.com for questions, discussions, and development.
The information for Google Test is available in the Google Test Primer documentation.
Google Mock is an extension to Google Test for writing and using C++ mock classes. See the separate Google Mock documentation.
More detailed documentation for googletest is in its interior googletest/README.md file.
Google test has been used on a variety of platforms:
In addition to many internal projects at Google, Google Test is also used by the following notable projects:
GTest Runner is a Qt5 based automated test-runner and Graphical User Interface with powerful features for Windows and Linux platforms.
Google Test UI is test runner that runs your test binary, allows you to track its progress via a progress bar, and displays a list of test failures. Clicking on one shows failure text. Google Test UI is written in C#.
GTest TAP Listener is an event listener for Google Test that implements the TAP protocol for test result output. If your test runner understands TAP, you may find it useful.
gtest-parallel is a test runner that runs tests from your binary in parallel to provide significant speed-up.
GoogleTest Adapter is a VS Code extension allowing to view Google Tests in a tree view, and run/debug your tests.
Catch2 and Google Test Explorer is a VS Code extension allowing to view Google Tests in a tree view, and run/debug your tests.
Cornichon is a small Gherkin DSL parser that generates stub code for Google Test.
Google Test is designed to have fairly minimal requirements to build and use with your projects, but there are some. If you notice any problems on your platform, please notify googletestframework@googlegroups.com. Patches for fixing them are welcome!
These are the base requirements to build and use Google Test from a source package:
Bazel or CMake. NOTE: Bazel is the build system that googletest is using internally and tests against. CMake is community-supported.
a C++11-standard-compliant compiler
Please read the CONTRIBUTING.md
for details on how to contribute to this project.
Happy testing!