Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
644f3a99
Commit
644f3a99
authored
Apr 06, 2020
by
Marco Studerus
Committed by
Marco Studerus
Apr 06, 2020
Browse files
gtest-unittest-api_test - fix warning in clang build
parent
e3f0319d
Changes
1
Show 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 @
644f3a99
...
...
@@ -55,8 +55,8 @@ class UnitTestHelper {
// name. The caller is responsible for deleting the array.
static
TestSuite
const
**
GetSortedTestSuites
()
{
UnitTest
&
unit_test
=
*
UnitTest
::
GetInstance
();
auto
const
**
const
test_suites
=
new
const
TestSuite
*
[
unit_test
.
total_test_suite_count
()];
auto
const
**
const
test_suites
=
new
const
TestSuite
*
[
static_cast
<
size_t
>
(
unit_test
.
total_test_suite_count
()
)
];
for
(
int
i
=
0
;
i
<
unit_test
.
total_test_suite_count
();
++
i
)
test_suites
[
i
]
=
unit_test
.
GetTestSuite
(
i
);
...
...
@@ -83,8 +83,8 @@ class UnitTestHelper {
// sorted by the test name. The caller is responsible for deleting the
// array.
static
TestInfo
const
**
GetSortedTests
(
const
TestSuite
*
test_suite
)
{
TestInfo
const
**
const
tests
=
new
const
TestInfo
*
[
test_suite
->
total_test_count
()];
TestInfo
const
**
const
tests
=
new
const
TestInfo
*
[
static_cast
<
size_t
>
(
test_suite
->
total_test_count
()
)
];
for
(
int
i
=
0
;
i
<
test_suite
->
total_test_count
();
++
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