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
71d5df6c
Commit
71d5df6c
authored
Apr 16, 2020
by
Mark Barolak
Browse files
Merge pull request #2802 from e-i-n-s:fix_clang_warning
PiperOrigin-RevId: 306460942
parents
4c8e6a9f
644f3a99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
googletest/test/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