Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
cb1d5db1
Commit
cb1d5db1
authored
Oct 10, 2019
by
Gennadiy Civil
Browse files
Merge pull request #2448 from kuzkry:bad-googletest-export
PiperOrigin-RevId: 273585026
parents
cd17fa2a
3339b97c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
8 deletions
+4
-8
googlemock/include/gmock/gmock-matchers.h
googlemock/include/gmock/gmock-matchers.h
+2
-2
googlemock/include/gmock/internal/gmock-internal-utils.h
googlemock/include/gmock/internal/gmock-internal-utils.h
+0
-2
googlemock/test/gmock-internal-utils_test.cc
googlemock/test/gmock-internal-utils_test.cc
+0
-1
googletest/docs/advanced.md
googletest/docs/advanced.md
+1
-1
googletest/include/gtest/gtest.h
googletest/include/gtest/gtest.h
+1
-2
No files found.
googlemock/include/gmock/gmock-matchers.h
View file @
cb1d5db1
...
@@ -1607,8 +1607,8 @@ class PointeeMatcher {
...
@@ -1607,8 +1607,8 @@ class PointeeMatcher {
template
<
typename
Pointer
>
template
<
typename
Pointer
>
class
Impl
:
public
MatcherInterface
<
Pointer
>
{
class
Impl
:
public
MatcherInterface
<
Pointer
>
{
public:
public:
typedef
typename
PointeeOf
<
typename
std
::
remove_const
<
typedef
typename
PointeeOf
<
GTEST_REMOVE_REFERENCE_AND_CONST_
(
Pointer
)
>::
type
typename
std
::
remove_reference
<
Pointer
>::
type
>::
type
>::
type
Pointee
;
Pointee
;
explicit
Impl
(
const
InnerMatcher
&
matcher
)
explicit
Impl
(
const
InnerMatcher
&
matcher
)
:
matcher_
(
MatcherCast
<
const
Pointee
&>
(
matcher
))
{}
:
matcher_
(
MatcherCast
<
const
Pointee
&>
(
matcher
))
{}
...
...
googlemock/include/gmock/internal/gmock-internal-utils.h
View file @
cb1d5db1
...
@@ -334,8 +334,6 @@ class WithoutMatchers {
...
@@ -334,8 +334,6 @@ class WithoutMatchers {
// Internal use only: access the singleton instance of WithoutMatchers.
// Internal use only: access the singleton instance of WithoutMatchers.
GTEST_API_
WithoutMatchers
GetWithoutMatchers
();
GTEST_API_
WithoutMatchers
GetWithoutMatchers
();
// Type traits.
// Disable MSVC warnings for infinite recursion, since in this case the
// Disable MSVC warnings for infinite recursion, since in this case the
// the recursion is unreachable.
// the recursion is unreachable.
#ifdef _MSC_VER
#ifdef _MSC_VER
...
...
googlemock/test/gmock-internal-utils_test.cc
View file @
cb1d5db1
...
@@ -40,7 +40,6 @@
...
@@ -40,7 +40,6 @@
#include <memory>
#include <memory>
#include <sstream>
#include <sstream>
#include <string>
#include <string>
#include <type_traits>
#include <vector>
#include <vector>
#include "gmock/gmock.h"
#include "gmock/gmock.h"
...
...
googletest/docs/advanced.md
View file @
cb1d5db1
...
@@ -465,7 +465,7 @@ You can call the function
...
@@ -465,7 +465,7 @@ You can call the function
to assert that types
`T1`
and
`T2`
are the same. The function does nothing if
to assert that types
`T1`
and
`T2`
are the same. The function does nothing if
the assertion is satisfied. If the types are different, the function call will
the assertion is satisfied. If the types are different, the function call will
fail to compile, the compiler error message will say that
fail to compile, the compiler error message will say that
`
type
1 and
type
2 are not the same type`
and most likely (depending on the compiler)
`
T
1 and
T
2 are not the same type`
and most likely (depending on the compiler)
show you the actual values of
`T1`
and
`T2`
. This is mainly useful inside
show you the actual values of
`T1`
and
`T2`
. This is mainly useful inside
template code.
template code.
...
...
googletest/include/gtest/gtest.h
View file @
cb1d5db1
...
@@ -2298,8 +2298,7 @@ class GTEST_API_ ScopedTrace {
...
@@ -2298,8 +2298,7 @@ class GTEST_API_ ScopedTrace {
// to cause a compiler error.
// to cause a compiler error.
template
<
typename
T1
,
typename
T2
>
template
<
typename
T1
,
typename
T2
>
constexpr
bool
StaticAssertTypeEq
()
noexcept
{
constexpr
bool
StaticAssertTypeEq
()
noexcept
{
static_assert
(
std
::
is_same
<
T1
,
T2
>::
value
,
static_assert
(
std
::
is_same
<
T1
,
T2
>::
value
,
"T1 and T2 are not the same type"
);
"type1 and type2 are not the same type"
);
return
true
;
return
true
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment