forked from google/boringssl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update googletest and include googlemock
Some tests in the Chromium verifier use gmock. Since upstream googletest considers them a single project now, just import both of them. Update-Note: As part of this, I've made gtest_main.cc now initializes gmock alongside gtest. This means BoringSSL's test targets now depend on both. Downstream builds where googletest and googlemock are separate build targets may need to add a dependency. (Though every downstream test I looked at treats them as one target, so this is most likely a no-op.) Bug: chromium:1322914 Change-Id: Ief38c675bc13a4639dee061d058580967ab99d41 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/62945 Commit-Queue: Bob Beck <bbe@google.com> Reviewed-by: Bob Beck <bbe@google.com>
- Loading branch information
Showing
246 changed files
with
51,333 additions
and
847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Run manually to reformat a file: | ||
# clang-format -i --style=file <file> | ||
Language: Cpp | ||
BasedOnStyle: Google |
53 changes: 53 additions & 0 deletions
53
third_party/googletest/.github/ISSUE_TEMPLATE/00-bug_report.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Bug Report | ||
description: Let us know that something does not work as expected. | ||
title: "[Bug]: Please title this bug report" | ||
body: | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: Describe the issue | ||
description: What happened, and what did you expect to happen? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: Steps to reproduce the problem | ||
description: It is important that we are able to reproduce the problem that you are experiencing. Please provide all code and relevant steps to reproduce the problem, including your `BUILD`/`CMakeLists.txt` file and build commands. Links to a GitHub branch or [godbolt.org](https://godbolt.org/) that demonstrate the problem are also helpful. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: version | ||
attributes: | ||
label: What version of GoogleTest are you using? | ||
description: Please include the output of `git rev-parse HEAD` or the GoogleTest release version number that you are using. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: os | ||
attributes: | ||
label: What operating system and version are you using? | ||
description: If you are using a Linux distribution please include the name and version of the distribution as well. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: compiler | ||
attributes: | ||
label: What compiler and version are you using? | ||
description: Please include the output of `gcc -v` or `clang -v`, or the equivalent for your compiler. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: buildsystem | ||
attributes: | ||
label: What build system are you using? | ||
description: Please include the output of `bazel --version` or `cmake --version`, or the equivalent for your build system. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: additional | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. | ||
validations: | ||
required: false |
33 changes: 33 additions & 0 deletions
33
third_party/googletest/.github/ISSUE_TEMPLATE/10-feature_request.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Feature request | ||
description: Propose a new feature. | ||
title: "[FR]: Please title this feature request" | ||
labels: "enhancement" | ||
body: | ||
- type: textarea | ||
id: version | ||
attributes: | ||
label: Does the feature exist in the most recent commit? | ||
description: We recommend using the latest commit from GitHub in your projects. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: why | ||
attributes: | ||
label: Why do we need this feature? | ||
description: Ideally, explain why a combination of existing features cannot be used instead. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: proposal | ||
attributes: | ||
label: Describe the proposal. | ||
description: Include a detailed description of the feature, with usage examples. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: platform | ||
attributes: | ||
label: Is the feature specific to an operating system, compiler, or build system version? | ||
description: If it is, please specify which versions. | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Get Help | ||
url: https://github.com/google/googletest/discussions | ||
about: Please ask and answer questions here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
env: | ||
BAZEL_CXXOPTS: -std=c++14 | ||
|
||
jobs: | ||
Linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Tests | ||
run: bazel test --cxxopt=-std=c++14 --features=external_include_paths --test_output=errors ... | ||
|
||
macOS: | ||
runs-on: macos-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Tests | ||
run: bazel test --cxxopt=-std=c++14 --features=external_include_paths --test_output=errors ... | ||
|
||
|
||
Windows: | ||
runs-on: windows-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Tests | ||
run: bazel test --cxxopt=/std:c++14 --features=external_include_paths --test_output=errors ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Ignore CI build directory | ||
build/ | ||
xcuserdata | ||
cmake-build-debug/ | ||
.idea/ | ||
bazel-bin | ||
bazel-genfiles | ||
bazel-googletest | ||
bazel-out | ||
bazel-testlogs | ||
# python | ||
*.pyc | ||
|
||
# Visual Studio files | ||
.vs | ||
*.sdf | ||
*.opensdf | ||
*.VC.opendb | ||
*.suo | ||
*.user | ||
_ReSharper.Caches/ | ||
Win32-Debug/ | ||
Win32-Release/ | ||
x64-Debug/ | ||
x64-Release/ | ||
|
||
# VSCode files | ||
.cache/ | ||
cmake-variants.yaml | ||
|
||
# Ignore autoconf / automake files | ||
Makefile.in | ||
aclocal.m4 | ||
configure | ||
build-aux/ | ||
autom4te.cache/ | ||
googletest/m4/libtool.m4 | ||
googletest/m4/ltoptions.m4 | ||
googletest/m4/ltsugar.m4 | ||
googletest/m4/ltversion.m4 | ||
googletest/m4/lt~obsolete.m4 | ||
googlemock/m4 | ||
|
||
# Ignore generated directories. | ||
googlemock/fused-src/ | ||
googletest/fused-src/ | ||
|
||
# macOS files | ||
.DS_Store | ||
googletest/.DS_Store | ||
googletest/xcode/.DS_Store | ||
|
||
# Ignore cmake generated directories and files. | ||
CMakeFiles | ||
CTestTestfile.cmake | ||
Makefile | ||
cmake_install.cmake | ||
googlemock/CMakeFiles | ||
googlemock/CTestTestfile.cmake | ||
googlemock/Makefile | ||
googlemock/cmake_install.cmake | ||
googlemock/gtest | ||
/bin | ||
/googlemock/gmock.dir | ||
/googlemock/gmock_main.dir | ||
/googlemock/RUN_TESTS.vcxproj.filters | ||
/googlemock/RUN_TESTS.vcxproj | ||
/googlemock/INSTALL.vcxproj.filters | ||
/googlemock/INSTALL.vcxproj | ||
/googlemock/gmock_main.vcxproj.filters | ||
/googlemock/gmock_main.vcxproj | ||
/googlemock/gmock.vcxproj.filters | ||
/googlemock/gmock.vcxproj | ||
/googlemock/gmock.sln | ||
/googlemock/ALL_BUILD.vcxproj.filters | ||
/googlemock/ALL_BUILD.vcxproj | ||
/lib | ||
/Win32 | ||
/ZERO_CHECK.vcxproj.filters | ||
/ZERO_CHECK.vcxproj | ||
/RUN_TESTS.vcxproj.filters | ||
/RUN_TESTS.vcxproj | ||
/INSTALL.vcxproj.filters | ||
/INSTALL.vcxproj | ||
/googletest-distribution.sln | ||
/CMakeCache.txt | ||
/ALL_BUILD.vcxproj.filters | ||
/ALL_BUILD.vcxproj |
Oops, something went wrong.