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
6de39826
Unverified
Commit
6de39826
authored
Aug 22, 2018
by
Jacob Schloss
Committed by
GitHub
Aug 22, 2018
Browse files
Merge branch 'master' into issue_1735
parents
6e798016
1d9a1912
Changes
182
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
120 additions
and
85 deletions
+120
-85
googletest/include/gtest/gtest-death-test.h
googletest/include/gtest/gtest-death-test.h
+2
-3
googletest/include/gtest/gtest-message.h
googletest/include/gtest/gtest-message.h
+6
-2
googletest/include/gtest/gtest-param-test.h
googletest/include/gtest/gtest-param-test.h
+0
-2
googletest/include/gtest/gtest-param-test.h.pump
googletest/include/gtest/gtest-param-test.h.pump
+0
-2
googletest/include/gtest/gtest-printers.h
googletest/include/gtest/gtest-printers.h
+7
-7
googletest/include/gtest/gtest-spi.h
googletest/include/gtest/gtest-spi.h
+6
-2
googletest/include/gtest/gtest-test-part.h
googletest/include/gtest/gtest-test-part.h
+6
-4
googletest/include/gtest/gtest-typed-test.h
googletest/include/gtest/gtest-typed-test.h
+1
-2
googletest/include/gtest/gtest.h
googletest/include/gtest/gtest.h
+8
-4
googletest/include/gtest/gtest_prod.h
googletest/include/gtest/gtest_prod.h
+1
-2
googletest/include/gtest/internal/custom/README.md
googletest/include/gtest/internal/custom/README.md
+56
-0
googletest/include/gtest/internal/custom/gtest-port.h
googletest/include/gtest/internal/custom/gtest-port.h
+1
-34
googletest/include/gtest/internal/custom/gtest-printers.h
googletest/include/gtest/internal/custom/gtest-printers.h
+2
-2
googletest/include/gtest/internal/custom/gtest.h
googletest/include/gtest/internal/custom/gtest.h
+1
-9
googletest/include/gtest/internal/gtest-death-test-internal.h
...letest/include/gtest/internal/gtest-death-test-internal.h
+5
-1
googletest/include/gtest/internal/gtest-filepath.h
googletest/include/gtest/internal/gtest-filepath.h
+5
-1
googletest/include/gtest/internal/gtest-internal.h
googletest/include/gtest/internal/gtest-internal.h
+10
-1
googletest/include/gtest/internal/gtest-linked_ptr.h
googletest/include/gtest/internal/gtest-linked_ptr.h
+1
-3
googletest/include/gtest/internal/gtest-param-util-generated.h
...etest/include/gtest/internal/gtest-param-util-generated.h
+1
-2
googletest/include/gtest/internal/gtest-param-util-generated.h.pump
.../include/gtest/internal/gtest-param-util-generated.h.pump
+1
-2
No files found.
googletest/include/gtest/gtest-death-test.h
View file @
6de39826
...
...
@@ -26,8 +26,7 @@
// 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.
//
// Author: wan@google.com (Zhanyong Wan)
//
// The Google C++ Testing and Mocking Framework (Google Test)
//
...
...
@@ -162,7 +161,7 @@ GTEST_API_ bool InDeathTestChild();
// is rarely a problem as people usually don't put the test binary
// directory in PATH.
//
//
TODO(wan@google.com)
: make thread-safe death tests search the PATH.
//
FIXME
: make thread-safe death tests search the PATH.
// Asserts that a given statement causes the program to exit, with an
// integer exit status that satisfies predicate, and emitting error output
...
...
googletest/include/gtest/gtest-message.h
View file @
6de39826
...
...
@@ -26,8 +26,7 @@
// 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.
//
// Author: wan@google.com (Zhanyong Wan)
//
// The Google C++ Testing and Mocking Framework (Google Test)
//
...
...
@@ -52,6 +51,9 @@
#include "gtest/internal/gtest-port.h"
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4251
\
/* class A needs to have dll-interface to be used by clients of class B */
)
// Ensures that there is at least one operator<< in the global namespace.
// See Message& operator<<(...) below for why.
void
operator
<<
(
const
testing
::
internal
::
Secret
&
,
int
);
...
...
@@ -248,4 +250,6 @@ std::string StreamableToString(const T& streamable) {
}
// namespace internal
}
// namespace testing
GTEST_DISABLE_MSC_WARNINGS_POP_
()
// 4251
#endif // GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_
googletest/include/gtest/gtest-param-test.h
View file @
6de39826
...
...
@@ -31,8 +31,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Authors: vladl@google.com (Vlad Losev)
//
// Macros and functions for implementing parameterized tests
// in Google C++ Testing and Mocking Framework (Google Test)
//
...
...
googletest/include/gtest/gtest-param-test.h.pump
View file @
6de39826
...
...
@@ -30,8 +30,6 @@ $var maxtuple = 10 $$ Maximum number of Combine arguments we want to support.
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Authors: vladl@google.com (Vlad Losev)
//
// Macros and functions for implementing parameterized tests
// in Google C++ Testing and Mocking Framework (Google Test)
//
...
...
googletest/include/gtest/gtest-printers.h
View file @
6de39826
...
...
@@ -26,8 +26,7 @@
// 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.
//
// Author: wan@google.com (Zhanyong Wan)
// Google Test - The Google C++ Testing and Mocking Framework
//
...
...
@@ -827,7 +826,7 @@ void UniversalPrintArray(const T* begin, size_t len, ::std::ostream* os) {
// If the array has more than kThreshold elements, we'll have to
// omit some details by printing only the first and the last
// kChunkSize elements.
//
TODO(wan@google.com)
: let the user control the threshold using a flag.
//
FIXME
: let the user control the threshold using a flag.
if
(
len
<=
kThreshold
)
{
PrintRawArrayTo
(
begin
,
len
,
os
);
}
else
{
...
...
@@ -979,12 +978,13 @@ struct TuplePolicy {
static
const
size_t
tuple_size
=
::
std
::
tr1
::
tuple_size
<
Tuple
>::
value
;
template
<
size_t
I
>
struct
tuple_element
:
::
std
::
tr1
::
tuple_element
<
I
,
Tuple
>
{};
struct
tuple_element
:
::
std
::
tr1
::
tuple_element
<
static_cast
<
int
>
(
I
),
Tuple
>
{
};
template
<
size_t
I
>
static
typename
AddReference
<
const
typename
::
std
::
tr1
::
tuple_element
<
I
,
Tuple
>::
type
>::
type
get
(
const
Tuple
&
tuple
)
{
static
typename
AddReference
<
const
typename
::
std
::
tr1
::
tuple_element
<
static_cast
<
int
>
(
I
)
,
Tuple
>::
type
>::
type
get
(
const
Tuple
&
tuple
)
{
return
::
std
::
tr1
::
get
<
I
>
(
tuple
);
}
};
...
...
googletest/include/gtest/gtest-spi.h
View file @
6de39826
...
...
@@ -26,8 +26,7 @@
// 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.
//
// Author: wan@google.com (Zhanyong Wan)
//
// Utilities for testing Google Test itself and code that uses Google Test
// (e.g. frameworks built on top of Google Test).
...
...
@@ -39,6 +38,9 @@
#include "gtest/gtest.h"
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4251
\
/* class A needs to have dll-interface to be used by clients of class B */
)
namespace
testing
{
// This helper class can be used to mock out Google Test failure reporting
...
...
@@ -113,6 +115,8 @@ class GTEST_API_ SingleFailureChecker {
}
// namespace testing
GTEST_DISABLE_MSC_WARNINGS_POP_
()
// 4251
// A set of macros for testing Google Test assertions or code that's expected
// to generate Google Test fatal failures. It verifies that the given
// statement will cause exactly one fatal Google Test failure with 'substr'
...
...
googletest/include/gtest/gtest-test-part.h
View file @
6de39826
...
...
@@ -27,9 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Author: mheule@google.com (Markus Heule)
//
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
...
...
@@ -40,6 +37,9 @@
#include "gtest/internal/gtest-internal.h"
#include "gtest/internal/gtest-string.h"
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4251
\
/* class A needs to have dll-interface to be used by clients of class B */
)
namespace
testing
{
// A copyable object representing the result of a test part (i.e. an
...
...
@@ -145,7 +145,7 @@ class GTEST_API_ TestPartResultArray {
};
// This interface knows how to report a test part result.
class
TestPartResultReporterInterface
{
class
GTEST_API_
TestPartResultReporterInterface
{
public:
virtual
~
TestPartResultReporterInterface
()
{}
...
...
@@ -178,4 +178,6 @@ class GTEST_API_ HasNewFatalFailureHelper
}
// namespace testing
GTEST_DISABLE_MSC_WARNINGS_POP_
()
// 4251
#endif // GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
googletest/include/gtest/gtest-typed-test.h
View file @
6de39826
...
...
@@ -26,8 +26,7 @@
// 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.
//
// Author: wan@google.com (Zhanyong Wan)
// GOOGLETEST_CM0001 DO NOT DELETE
...
...
googletest/include/gtest/gtest.h
View file @
6de39826
...
...
@@ -26,8 +26,7 @@
// 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.
//
// Author: wan@google.com (Zhanyong Wan)
//
// The Google C++ Testing and Mocking Framework (Google Test)
//
...
...
@@ -67,6 +66,9 @@
#include "gtest/gtest-test-part.h"
#include "gtest/gtest-typed-test.h"
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4251
\
/* class A needs to have dll-interface to be used by clients of class B */
)
// Depending on the platform, different string classes are available.
// On Linux, in addition to ::std::string, Google also makes use of
// class ::string, which has the same interface as ::std::string, but
...
...
@@ -316,7 +318,7 @@ class GTEST_API_ AssertionResult {
const
char
*
message
()
const
{
return
message_
.
get
()
!=
NULL
?
message_
->
c_str
()
:
""
;
}
//
TODO(vladl@google.com)
: Remove this after making sure no clients use it.
//
FIXME
: Remove this after making sure no clients use it.
// Deprecated; please use message() instead.
const
char
*
failure_message
()
const
{
return
message
();
}
...
...
@@ -622,7 +624,7 @@ class GTEST_API_ TestResult {
// Adds a failure if the key is a reserved attribute of Google Test
// testcase tags. Returns true if the property is valid.
//
TODO(russr)
: Validate attribute names are legal and human readable.
//
FIXME
: Validate attribute names are legal and human readable.
static
bool
ValidateTestProperty
(
const
std
::
string
&
xml_element
,
const
TestProperty
&
test_property
);
...
...
@@ -2331,4 +2333,6 @@ inline int RUN_ALL_TESTS() {
return
::
testing
::
UnitTest
::
GetInstance
()
->
Run
();
}
GTEST_DISABLE_MSC_WARNINGS_POP_
()
// 4251
#endif // GTEST_INCLUDE_GTEST_GTEST_H_
googletest/include/gtest/gtest_prod.h
View file @
6de39826
...
...
@@ -26,8 +26,7 @@
// 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.
//
// Author: wan@google.com (Zhanyong Wan)
//
// Google C++ Testing and Mocking Framework definitions useful in production code.
// GOOGLETEST_CM0003 DO NOT DELETE
...
...
googletest/include/gtest/internal/custom/README.md
0 → 100644
View file @
6de39826
# Customization Points
The custom directory is an injection point for custom user configurations.
## Header `gtest.h`
### The following macros can be defined:
*
`GTEST_OS_STACK_TRACE_GETTER_`
- The name of an implementation of
`OsStackTraceGetterInterface`
.
*
`GTEST_CUSTOM_TEMPDIR_FUNCTION_`
- An override for
`testing::TempDir()`
. See
`testing::TempDir`
for semantics and signature.
## Header `gtest-port.h`
The following macros can be defined:
### Flag related macros:
*
`GTEST_FLAG(flag_name)`
*
`GTEST_USE_OWN_FLAGFILE_FLAG_`
- Define to 0 when the system provides its
own flagfile flag parsing.
*
`GTEST_DECLARE_bool_(name)`
*
`GTEST_DECLARE_int32_(name)`
*
`GTEST_DECLARE_string_(name)`
*
`GTEST_DEFINE_bool_(name, default_val, doc)`
*
`GTEST_DEFINE_int32_(name, default_val, doc)`
*
`GTEST_DEFINE_string_(name, default_val, doc)`
### Logging:
*
`GTEST_LOG_(severity)`
*
`GTEST_CHECK_(condition)`
*
Functions
`LogToStderr()`
and
`FlushInfoLog()`
have to be provided too.
### Threading:
*
`GTEST_HAS_NOTIFICATION_`
- Enabled if Notification is already provided.
*
`GTEST_HAS_MUTEX_AND_THREAD_LOCAL_`
- Enabled if
`Mutex`
and
`ThreadLocal`
are already provided. Must also provide
`GTEST_DECLARE_STATIC_MUTEX_(mutex)`
and
`GTEST_DEFINE_STATIC_MUTEX_(mutex)`
*
`GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)`
*
`GTEST_LOCK_EXCLUDED_(locks)`
### Underlying library support features
*
`GTEST_HAS_CXXABI_H_`
### Exporting API symbols:
*
`GTEST_API_`
- Specifier for exported symbols.
## Header `gtest-printers.h`
*
See documentation at
`gtest/gtest-printers.h`
for details on how to define a
custom printer.
googletest/include/gtest/internal/custom/gtest-port.h
View file @
6de39826
...
...
@@ -27,40 +27,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Injection point for custom user configurations.
// The following macros can be defined:
//
// Flag related macros:
// GTEST_FLAG(flag_name)
// GTEST_USE_OWN_FLAGFILE_FLAG_ - Define to 0 when the system provides its
// own flagfile flag parsing.
// GTEST_DECLARE_bool_(name)
// GTEST_DECLARE_int32_(name)
// GTEST_DECLARE_string_(name)
// GTEST_DEFINE_bool_(name, default_val, doc)
// GTEST_DEFINE_int32_(name, default_val, doc)
// GTEST_DEFINE_string_(name, default_val, doc)
//
// Logging:
// GTEST_LOG_(severity)
// GTEST_CHECK_(condition)
// Functions LogToStderr() and FlushInfoLog() have to be provided too.
//
// Threading:
// GTEST_HAS_NOTIFICATION_ - Enabled if Notification is already provided.
// GTEST_HAS_MUTEX_AND_THREAD_LOCAL_ - Enabled if Mutex and ThreadLocal are
// already provided.
// Must also provide GTEST_DECLARE_STATIC_MUTEX_(mutex) and
// GTEST_DEFINE_STATIC_MUTEX_(mutex)
//
// GTEST_EXCLUSIVE_LOCK_REQUIRED_(locks)
// GTEST_LOCK_EXCLUDED_(locks)
//
// Underlying library support features:
// GTEST_HAS_CXXABI_H_
//
// Exporting API symbols:
// GTEST_API_ - Specifier for exported symbols.
// Injection point for custom user configurations. See README for details
//
// ** Custom implementation starts here **
...
...
googletest/include/gtest/internal/custom/gtest-printers.h
View file @
6de39826
...
...
@@ -31,8 +31,8 @@
// installation of gTest.
// It will be included from gtest-printers.h and the overrides in this file
// will be visible to everyone.
//
See documentation at gtest/gtest-printers.h for details on how to define a
//
custom printer.
//
//
Injection point for custom user configurations. See README for details
//
// ** Custom implementation starts here **
...
...
googletest/include/gtest/internal/custom/gtest.h
View file @
6de39826
...
...
@@ -27,15 +27,7 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Injection point for custom user configurations.
// The following macros can be defined:
//
// GTEST_OS_STACK_TRACE_GETTER_ - The name of an implementation of
// OsStackTraceGetterInterface.
//
// GTEST_CUSTOM_TEMPDIR_FUNCTION_ - An override for testing::TempDir().
// See testing::TempDir for semantics and
// signature.
// Injection point for custom user configurations. See README for details
//
// ** Custom implementation starts here **
...
...
googletest/include/gtest/internal/gtest-death-test-internal.h
View file @
6de39826
...
...
@@ -27,7 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
//
// The Google C++ Testing and Mocking Framework (Google Test)
//
// This header file defines internal utilities needed for implementing
...
...
@@ -53,6 +52,9 @@ const char kInternalRunDeathTestFlag[] = "internal_run_death_test";
#if GTEST_HAS_DEATH_TEST
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4251
\
/* class A needs to have dll-interface to be used by clients of class B */
)
// DeathTest is a class that hides much of the complexity of the
// GTEST_DEATH_TEST_ macro. It is abstract; its static Create method
// returns a concrete class that depends on the prevailing death test
...
...
@@ -136,6 +138,8 @@ class GTEST_API_ DeathTest {
GTEST_DISALLOW_COPY_AND_ASSIGN_
(
DeathTest
);
};
GTEST_DISABLE_MSC_WARNINGS_POP_
()
// 4251
// Factory interface for death tests. May be mocked out for testing.
class
DeathTestFactory
{
public:
...
...
googletest/include/gtest/internal/gtest-filepath.h
View file @
6de39826
...
...
@@ -27,7 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
//
// Google Test filepath utilities
//
// This header file declares classes and functions used internally by
...
...
@@ -43,6 +42,9 @@
#include "gtest/internal/gtest-string.h"
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4251
\
/* class A needs to have dll-interface to be used by clients of class B */
)
namespace
testing
{
namespace
internal
{
...
...
@@ -204,4 +206,6 @@ class GTEST_API_ FilePath {
}
// namespace internal
}
// namespace testing
GTEST_DISABLE_MSC_WARNINGS_POP_
()
// 4251
#endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
googletest/include/gtest/internal/gtest-internal.h
View file @
6de39826
...
...
@@ -27,7 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
//
// The Google C++ Testing and Mocking Framework (Google Test)
//
// This header file declares functions and macros used internally by
...
...
@@ -142,6 +141,9 @@ GTEST_API_ std::string AppendUserMessage(
#if GTEST_HAS_EXCEPTIONS
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4275
\
/* an exported class was derived from a class that was not exported */
)
// This exception is thrown by (and only by) a failed Google Test
// assertion when GTEST_FLAG(throw_on_failure) is true (if exceptions
// are enabled). We derive it from std::runtime_error, which is for
...
...
@@ -153,6 +155,8 @@ class GTEST_API_ GoogleTestFailureException : public ::std::runtime_error {
explicit
GoogleTestFailureException
(
const
TestPartResult
&
failure
);
};
GTEST_DISABLE_MSC_WARNINGS_POP_
()
// 4275
#endif // GTEST_HAS_EXCEPTIONS
namespace
edit_distance
{
...
...
@@ -529,6 +533,9 @@ GTEST_API_ bool SkipPrefix(const char* prefix, const char** pstr);
#if GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P
GTEST_DISABLE_MSC_WARNINGS_PUSH_
(
4251
\
/* class A needs to have dll-interface to be used by clients of class B */
)
// State of the definition of a type-parameterized test case.
class
GTEST_API_
TypedTestCasePState
{
public:
...
...
@@ -574,6 +581,8 @@ class GTEST_API_ TypedTestCasePState {
RegisteredTestsMap
registered_tests_
;
};
GTEST_DISABLE_MSC_WARNINGS_POP_
()
// 4251
// Skips to the first non-space char after the first comma in 'str';
// returns NULL if no comma is found in 'str'.
inline
const
char
*
SkipComma
(
const
char
*
str
)
{
...
...
googletest/include/gtest/internal/gtest-linked_ptr.h
View file @
6de39826
...
...
@@ -27,8 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Authors: Dan Egnor (egnor@google.com)
//
// A "smart" pointer type with reference tracking. Every pointer to a
// particular object is kept on a circular linked list. When the last pointer
// to an object is destroyed or reassigned, the object is deleted.
...
...
@@ -62,7 +60,7 @@
// raw pointer (e.g. via get()) concurrently, and
// - it's safe to write to two linked_ptrs that point to the same
// shared object concurrently.
//
TODO(wan@google.com)
: rename this to safe_linked_ptr to avoid
//
FIXME
: rename this to safe_linked_ptr to avoid
// confusion with normal linked_ptr.
// GOOGLETEST_CM0001 DO NOT DELETE
...
...
googletest/include/gtest/internal/gtest-param-util-generated.h
View file @
6de39826
...
...
@@ -30,8 +30,7 @@
// 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.
//
// Author: vladl@google.com (Vlad Losev)
// Type and function utilities for implementing parameterized tests.
// This file is generated by a SCRIPT. DO NOT EDIT BY HAND!
...
...
googletest/include/gtest/internal/gtest-param-util-generated.h.pump
View file @
6de39826
...
...
@@ -29,8 +29,7 @@ $var maxtuple = 10 $$ Maximum number of Combine arguments we want to support.
// 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.
//
// Author: vladl@google.com (Vlad Losev)
// Type and function utilities for implementing parameterized tests.
// This file is generated by a SCRIPT. DO NOT EDIT BY HAND!
...
...
Prev
1
2
3
4
5
6
7
8
…
10
Next
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