Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
773877cd
Commit
773877cd
authored
Mar 15, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ts: apply CV_OVERRIDE/CV_FINAL
- disable "-Wsuggest-override" in tests
parent
6bd80ba7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
11 deletions
+20
-11
ts.hpp
modules/ts/include/opencv2/ts.hpp
+12
-5
ts_ext.hpp
modules/ts/include/opencv2/ts/ts_ext.hpp
+3
-3
ts_perf.hpp
modules/ts/include/opencv2/ts/ts_perf.hpp
+2
-3
ts_gtest.cpp
modules/ts/src/ts_gtest.cpp
+3
-0
No files found.
modules/ts/include/opencv2/ts.hpp
View file @
773877cd
...
...
@@ -63,7 +63,14 @@
# endif
#endif
#if defined(__OPENCV_BUILD) && defined(__GNUC__) && __GNUC__ >= 5
//#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-override"
#endif
#include "opencv2/ts/ts_gtest.h"
#if defined(__OPENCV_BUILD) && defined(__GNUC__) && __GNUC__ >= 5
//#pragma GCC diagnostic pop
#endif
#include "opencv2/ts/ts_ext.hpp"
#ifndef GTEST_USES_SIMPLE_RE
...
...
@@ -519,13 +526,13 @@ public:
ArrayTest
();
virtual
~
ArrayTest
();
virtual
void
clear
();
virtual
void
clear
()
CV_OVERRIDE
;
protected
:
virtual
int
read_params
(
CvFileStorage
*
fs
);
virtual
int
prepare_test_case
(
int
test_case_idx
);
virtual
int
validate_test_results
(
int
test_case_idx
);
virtual
int
read_params
(
CvFileStorage
*
fs
)
CV_OVERRIDE
;
virtual
int
prepare_test_case
(
int
test_case_idx
)
CV_OVERRIDE
;
virtual
int
validate_test_results
(
int
test_case_idx
)
CV_OVERRIDE
;
virtual
void
prepare_to_validation
(
int
test_case_idx
);
virtual
void
get_test_array_types_and_sizes
(
int
test_case_idx
,
vector
<
vector
<
Size
>
>&
sizes
,
vector
<
vector
<
int
>
>&
types
);
...
...
@@ -558,7 +565,7 @@ public:
protected
:
virtual
int
run_test_case
(
int
expected_code
,
const
string
&
descr
);
virtual
void
run_func
(
void
)
=
0
;
virtual
void
run_func
(
void
)
CV_OVERRIDE
=
0
;
int
test_case_idx
;
template
<
class
F
>
...
...
modules/ts/include/opencv2/ts/ts_ext.hpp
View file @
773877cd
...
...
@@ -48,7 +48,7 @@ extern int testThreads;
public:\
GTEST_TEST_CLASS_NAME_(test_case_name, test_name)() {}\
private:\
virtual void TestBody();\
virtual void TestBody()
CV_OVERRIDE
;\
virtual void Body();\
static ::testing::TestInfo* const test_info_ GTEST_ATTRIBUTE_UNUSED_;\
GTEST_DISALLOW_COPY_AND_ASSIGN_(\
...
...
@@ -74,7 +74,7 @@ extern int testThreads;
public:\
GTEST_TEST_CLASS_NAME_(test_fixture, test_name)() {}\
private:\
virtual void TestBody();\
virtual void TestBody()
CV_OVERRIDE
;\
virtual void Body(); \
static ::testing::TestInfo* const test_info_ GTEST_ATTRIBUTE_UNUSED_;\
GTEST_DISALLOW_COPY_AND_ASSIGN_(\
...
...
@@ -102,7 +102,7 @@ extern int testThreads;
GTEST_TEST_CLASS_NAME_(test_case_name, test_name)() {} \
private: \
virtual void bodyMethodName(); \
virtual void TestBody(); \
virtual void TestBody()
CV_OVERRIDE
; \
static int AddToRegistry() { \
::testing::UnitTest::GetInstance()->parameterized_test_registry(). \
GetTestCasePatternHolder<test_case_name>(\
...
...
modules/ts/include/opencv2/ts/ts_perf.hpp
View file @
773877cd
...
...
@@ -3,7 +3,6 @@
#include "opencv2/ts.hpp"
#include "ts_gtest.h"
#include "ts_ext.hpp"
#include <functional>
...
...
@@ -397,8 +396,8 @@ public:
protected
:
virtual
void
PerfTestBody
()
=
0
;
virtual
void
SetUp
();
virtual
void
TearDown
();
virtual
void
SetUp
()
CV_OVERRIDE
;
virtual
void
TearDown
()
CV_OVERRIDE
;
bool
startTimer
();
// bool is dummy for conditional loop
void
stopTimer
();
...
...
modules/ts/src/ts_gtest.cpp
View file @
773877cd
...
...
@@ -41,6 +41,9 @@
#ifdef __GNUC__
# pragma GCC diagnostic ignored "-Wmissing-declarations"
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
# if __GNUC__ >= 5
# pragma GCC diagnostic ignored "-Wsuggest-override"
# endif
#endif
// The following lines pull in the real gtest *.cc files.
...
...
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