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
71d5df6c
Commit
71d5df6c
authored
Apr 16, 2020
by
Mark Barolak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2802 from e-i-n-s:fix_clang_warning
PiperOrigin-RevId: 306460942
parents
4c8e6a9f
644f3a99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gtest-unittest-api_test.cc
googletest/test/gtest-unittest-api_test.cc
+4
-4
No files found.
googletest/test/gtest-unittest-api_test.cc
View file @
71d5df6c
...
@@ -55,8 +55,8 @@ class UnitTestHelper {
...
@@ -55,8 +55,8 @@ class UnitTestHelper {
// name. The caller is responsible for deleting the array.
// name. The caller is responsible for deleting the array.
static
TestSuite
const
**
GetSortedTestSuites
()
{
static
TestSuite
const
**
GetSortedTestSuites
()
{
UnitTest
&
unit_test
=
*
UnitTest
::
GetInstance
();
UnitTest
&
unit_test
=
*
UnitTest
::
GetInstance
();
auto
const
**
const
test_suites
=
auto
const
**
const
test_suites
=
new
const
TestSuite
*
[
static_cast
<
size_t
>
(
new
const
TestSuite
*
[
unit_test
.
total_test_suite_count
(
)];
unit_test
.
total_test_suite_count
()
)];
for
(
int
i
=
0
;
i
<
unit_test
.
total_test_suite_count
();
++
i
)
for
(
int
i
=
0
;
i
<
unit_test
.
total_test_suite_count
();
++
i
)
test_suites
[
i
]
=
unit_test
.
GetTestSuite
(
i
);
test_suites
[
i
]
=
unit_test
.
GetTestSuite
(
i
);
...
@@ -83,8 +83,8 @@ class UnitTestHelper {
...
@@ -83,8 +83,8 @@ class UnitTestHelper {
// sorted by the test name. The caller is responsible for deleting the
// sorted by the test name. The caller is responsible for deleting the
// array.
// array.
static
TestInfo
const
**
GetSortedTests
(
const
TestSuite
*
test_suite
)
{
static
TestInfo
const
**
GetSortedTests
(
const
TestSuite
*
test_suite
)
{
TestInfo
const
**
const
tests
=
TestInfo
const
**
const
tests
=
new
const
TestInfo
*
[
static_cast
<
size_t
>
(
new
const
TestInfo
*
[
test_suite
->
total_test_count
(
)];
test_suite
->
total_test_count
()
)];
for
(
int
i
=
0
;
i
<
test_suite
->
total_test_count
();
++
i
)
for
(
int
i
=
0
;
i
<
test_suite
->
total_test_count
();
++
i
)
tests
[
i
]
=
test_suite
->
GetTestInfo
(
i
);
tests
[
i
]
=
test_suite
->
GetTestInfo
(
i
);
...
...
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