Pavel Samolysov
c868da1988
Enable building as a shared library (dll) on Windows with Bazel
...
While the google test library is being built as a shared library using Bazel,
so that there is a rule like
cc_test(
name = "iterator_traits_test",
linkstatic = 0,
deps = ["@gtest//:gtest_main"],
...
)
in a BUILD file, the following error appears on Windows:
INFO: Found 1 test target...
ERROR: C:/../external/gtest/BUILD.bazel:55:1: output 'external/gtest/gtest.if.lib' was not created
ERROR: C:/../external/gtest/BUILD.bazel:55:1: not all outputs were created or valid
Target //test:iterator_traits_test failed to build
The reason is a missing "win_def_file" attribute of the "gtest" and
"gtest_main" rules in the BUILD.bazel inside the google test library
package.
The "windows_export_all_symbols" feature is added to the rules, this
feature forces Bazel to export all symbols from the google test library
to linker. I believe exporting all symbols from a testing library makes
no problem for the application from a point of view on encapsulation.
Signed-off-by: Pavel Samolysov <samolisov@gmail.com>
2019-01-14 16:20:56 +03:00
misterg
0599a7b841
Googletest export
...
Change tests to use new Test Suite API
PiperOrigin-RevId: 228908894
2019-01-11 13:59:22 -05:00
Gennadiy Civil
2edadcedf3
Workaround homebrew issue
2019-01-10 18:20:44 -05:00
Gennadiy Civil
6693e85b04
Merge branch 'master' of github.com:google/googletest
2019-01-10 16:33:42 -05:00
Abseil Team
bc1023b413
Googletest export
...
Fix warning about deprecation of implicit operations such as copy constructors or assignment operators.
Specifically:
MatcherBase's default copy constructor, assignment operator, move operator, and move assignment operator are now declared explicitly rather than depending on the compiler implicit generation (which is disallowed/warned against due to MatcherBase's declaration of the destructor).
PiperOrigin-RevId: 228573333
2019-01-10 16:32:37 -05:00
Abseil Team
7a7e2bba1d
Googletest export
...
...text exposed to GitHub repo https://www.github.com/google/googletest
PiperOrigin-RevId: 228573333
2019-01-10 16:18:48 -05:00
gennadiycivil
50f1a77955
Merge pull request #2051 from enptfb55:master
...
PiperOrigin-RevId: 228337465
2019-01-08 11:51:17 -05:00
misterg
f31bf1d362
Googletest export
...
Replace testing::internal::ImplicitlyConvertible with std::is_convertible
Fixes #2054
PiperOrigin-RevId: 228334305
2019-01-08 11:51:05 -05:00
Abseil Team
216c37f057
Googletest export
...
Drop generated file gmock-generated-internal-utils.h.
PiperOrigin-RevId: 228232195
2019-01-08 11:50:56 -05:00
gennadiycivil
644319b9f0
Merge pull request #2048 from ciband:chore/clang_tidy
...
PiperOrigin-RevId: 228173023
2019-01-07 12:09:34 -05:00
Abseil Team
b6cd405286
Googletest export
...
Fix GTEST_IS_NULL_LITERAL_ for types that have magic implicit conversions.
PiperOrigin-RevId: 227879345
2019-01-07 12:09:25 -05:00
Sal Amato
8369b5bbd0
fixing build errors for unused parameter
2019-01-06 06:24:26 -05:00
Chris
ade8baa7d2
clang-tidy: modernize-deprecated-headers
2019-01-05 11:21:56 -06:00
Gennadiy Civil
3880b13e4c
Merge pull request #2042 from gennadiycivil/master
...
Update Docs TestCase->TestSuite
2019-01-03 21:36:19 -05:00
Gennadiy Civil
58e62f7a98
Merge branch 'master' of https://github.com/google/googletest
2019-01-03 17:18:32 -05:00
Gennadiy Civil
5d3a2cd9c8
Update docs, TestCase->TestSuite
2019-01-03 17:18:03 -05:00
misterg
827515f8a0
Googletest export
...
Fixes #1261
PiperOrigin-RevId: 227740670
2019-01-03 16:40:27 -05:00
misterg
3a460a26b7
Googletest export
...
TestCase->TestSuite refactoring
PiperOrigin-RevId: 227702164
2019-01-03 16:40:20 -05:00
Gennadiy Civil
ac8c102dae
Update README.md
2019-01-03 11:41:41 -05:00
Gennadiy Civil
6e410a3ae9
Update README.md
2019-01-03 11:41:17 -05:00
Gennadiy Civil
8a27d164cb
Update README.md
2019-01-03 11:40:37 -05:00
Gennadiy Civil
bfcc47fc2f
Merge pull request #2026 from justin6case/example_makefile_improvements
...
Example/sample makefile improvements
2019-01-03 11:38:47 -05:00
Gennadiy Civil
1bcbd5871e
Merge pull request #2037 from ciband:chore/fix_library_json
...
PiperOrigin-RevId: 227615222
2019-01-02 21:39:36 -05:00
misterg
14c2fba734
Googletest export
...
Internal Change
PiperOrigin-RevId: 227575279
2019-01-02 16:51:40 -05:00
Abseil Team
f8b1c1af17
Googletest export
...
Remove the #ifs for old, unsupported and buggy compilers:
* old versions of GCC & MSVC
* Symbian
PiperOrigin-RevId: 227116941
2019-01-02 16:51:33 -05:00
Gennadiy Civil
933e5df283
Merge pull request #2039 from gennadiycivil/master
...
Remove outdated scripts
2019-01-02 16:23:06 -05:00
Gennadiy Civil
8ed34e0f6b
Remove outdated scripts
2019-01-02 16:03:50 -05:00
Gennadiy Civil
2ace910a35
Revert "test, please ignore"
...
This reverts commit 4665eee10a
.
2019-01-02 16:02:34 -05:00
Gennadiy Civil
25905b9f9a
Merge branch 'master' of https://github.com/google/googletest
2019-01-02 15:49:22 -05:00
Chris
de99386b67
Merge branch 'chore/fix_library_json' of https://github.com/ciband/googletest into chore/fix_library_json
2018-12-29 12:57:33 -06:00
Chris
6d5ce40d4c
fix: Add additional source and include directories.
...
This is still a work in progress.
2018-12-29 12:57:04 -06:00
Gennadiy Civil
3bedb5a9fc
Merge pull request #2035 from syohex/update-xcode-project-file
...
Update Xcode project file
2018-12-28 11:21:32 -05:00
Syohei YOSHIDA
0cf2130c0b
Update Xcode project file
...
Remove files which no longer exist.
2018-12-28 13:23:44 +09:00
Ryohei Machida
6729a13611
Merge #2002
...
PiperOrigin-RevId: 227030722
2018-12-27 15:31:14 -05:00
Gennadiy Civil
77004096e8
Update README.md
2018-12-27 12:04:11 -05:00
Gennadiy Civil
16269ae2f8
Merge pull request #2027 from ciband:chore/fix_library_json
...
PiperOrigin-RevId: 227028806
2018-12-27 11:52:54 -05:00
Chris Johnson
c0ef2cbe42
fix: Correct GitHub paths
2018-12-21 12:44:54 -06:00
Gennadiy Civil
1506131665
Update README.md
2018-12-21 13:24:39 -05:00
Gennadiy Civil
4160336cb4
Merge pull request #2013 from ciband:chore/fix_library_json
...
PiperOrigin-RevId: 226493373
2018-12-21 11:30:27 -05:00
Abseil Team
34a99e547a
Googletest export
...
Get rid of code generation for NiceMock / StrictMock.
They got small enough that it doesn't make sense to generate them.
PiperOrigin-RevId: 226455689
2018-12-21 11:30:20 -05:00
Case, Matt
b93a13ec4d
Improvements have been made to the example/sample makefiles for both googlemock
...
and googletest.
Library files are now created and named like versions produced
by Cmake.
2018-12-20 20:58:56 -06:00
Abseil Team
a83cc11abe
Googletest export
...
Add public entry point testing::RegisterTest.
PiperOrigin-RevId: 226350937
2018-12-20 14:09:52 -05:00
Abseil Team
9494c45e75
Googletest export
...
Use std::function to implement type erasure in Action, wrapping the legacy
ActionInterface if necessary.
This makes functors / std::function the primary way to implement Action; the
existing ActionInterface implementations are handled through ActionAdaptor.
The existing actions are not (yet) migrated though; they'll pay the cost of one
additional indirection - but that should be negligible.
PiperOrigin-RevId: 226126137
2018-12-20 14:09:39 -05:00
Abseil Team
e26a3fa13c
Googletest export
...
Unifdef c++11-related macros from googletest now that it requires C++11.
PiperOrigin-RevId: 225905601
2018-12-20 14:09:31 -05:00
misterg
9ab640ce5e
Googletest export
...
Suppress C4503 for MCVS , again
PiperOrigin-RevId: 225895719
2018-12-17 17:57:39 -05:00
misterg
7515e39943
Googletest export
...
Suppress C4503 for MCVS
PiperOrigin-RevId: 225871050
2018-12-17 15:37:31 -05:00
Gennadiy Civil
85c4172ed6
Update README.md
...
Update build badge to point to the correct location
2018-12-17 14:03:51 -05:00
misterg
ed3f9bb229
Googletest export
...
Internal Change
PiperOrigin-RevId: 225849972
2018-12-17 13:53:46 -05:00
Abseil Team
b7dd66519f
Googletest export
...
Remove GTEST_REFERENCE_TO_CONST_ usage from GMock. In C++11, it's redundant.
PiperOrigin-RevId: 225719210
2018-12-17 13:53:39 -05:00
Abseil Team
1ec20f87e3
Googletest export
...
Allow container matchers to accept move-only containers.
PiperOrigin-RevId: 225667441
2018-12-17 13:53:33 -05:00