Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
3299a238
Commit
3299a238
authored
Feb 23, 2018
by
Gennadiy Civil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merging unittests - 2
parent
c0563458
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
gtest_unittest.cc
googletest/test/gtest_unittest.cc
+3
-11
No files found.
googletest/test/gtest_unittest.cc
View file @
3299a238
...
@@ -2088,7 +2088,7 @@ class UnitTestRecordPropertyTestEnvironment : public Environment {
...
@@ -2088,7 +2088,7 @@ class UnitTestRecordPropertyTestEnvironment : public Environment {
};
};
// This will test property recording outside of any test or test case.
// This will test property recording outside of any test or test case.
Environment
*
record_property_env
GTEST_ATTRIBUTE_UNUSED_
=
static
Environment
*
record_property_env
=
AddGlobalTestEnvironment
(
new
UnitTestRecordPropertyTestEnvironment
);
AddGlobalTestEnvironment
(
new
UnitTestRecordPropertyTestEnvironment
);
// This group of tests is for predicate assertions (ASSERT_PRED*, etc)
// This group of tests is for predicate assertions (ASSERT_PRED*, etc)
...
@@ -3361,7 +3361,7 @@ class NoFatalFailureTest : public Test {
...
@@ -3361,7 +3361,7 @@ class NoFatalFailureTest : public Test {
void
DoAssertNoFatalFailureOnFails
()
{
void
DoAssertNoFatalFailureOnFails
()
{
ASSERT_NO_FATAL_FAILURE
(
Fails
());
ASSERT_NO_FATAL_FAILURE
(
Fails
());
ADD_FAILURE
()
<<
"shold not reach here."
;
ADD_FAILURE
()
<<
"sho
u
ld not reach here."
;
}
}
void
DoExpectNoFatalFailureOnFails
()
{
void
DoExpectNoFatalFailureOnFails
()
{
...
@@ -6893,14 +6893,6 @@ TEST(StaticAssertTypeEqTest, CompilesForEqualTypes) {
...
@@ -6893,14 +6893,6 @@ TEST(StaticAssertTypeEqTest, CompilesForEqualTypes) {
StaticAssertTypeEq
<
int
*
,
IntAlias
*>
();
StaticAssertTypeEq
<
int
*
,
IntAlias
*>
();
}
}
TEST
(
GetCurrentOsStackTraceExceptTopTest
,
ReturnsTheStackTrace
)
{
testing
::
UnitTest
*
const
unit_test
=
testing
::
UnitTest
::
GetInstance
();
// We don't have a stack walker in Google Test yet.
EXPECT_STREQ
(
""
,
GetCurrentOsStackTraceExceptTop
(
unit_test
,
0
).
c_str
());
EXPECT_STREQ
(
""
,
GetCurrentOsStackTraceExceptTop
(
unit_test
,
1
).
c_str
());
}
TEST
(
HasNonfatalFailureTest
,
ReturnsFalseWhenThereIsNoFailure
)
{
TEST
(
HasNonfatalFailureTest
,
ReturnsFalseWhenThereIsNoFailure
)
{
EXPECT_FALSE
(
HasNonfatalFailure
());
EXPECT_FALSE
(
HasNonfatalFailure
());
}
}
...
@@ -7660,7 +7652,7 @@ TEST(NativeArrayTest, MethodsWork) {
...
@@ -7660,7 +7652,7 @@ TEST(NativeArrayTest, MethodsWork) {
EXPECT_EQ
(
0
,
*
it
);
EXPECT_EQ
(
0
,
*
it
);
++
it
;
++
it
;
EXPECT_EQ
(
1
,
*
it
);
EXPECT_EQ
(
1
,
*
it
);
++
it
;
it
++
;
EXPECT_EQ
(
2
,
*
it
);
EXPECT_EQ
(
2
,
*
it
);
++
it
;
++
it
;
EXPECT_EQ
(
na
.
end
(),
it
);
EXPECT_EQ
(
na
.
end
(),
it
);
...
...
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