File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
modules/core/performance/tests Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 5
5
#include < filesystem>
6
6
#include < fstream>
7
7
#include < memory>
8
+ #include < ostream>
8
9
#include < stdexcept>
9
10
#include < string_view>
10
11
#include < vector>
@@ -96,12 +97,11 @@ TEST(perf_tests, check_perf_task_float) {
96
97
struct ParamTestCase {
97
98
ppc::core::PerfResults::TypeOfRunning input;
98
99
std::string expected_output;
100
+ friend inline void PrintTo (const ParamTestCase& param, std::ostream* os) {
101
+ *os << " { input = " << static_cast <int >(param.input ) << " , expected = " << param.expected_output << " }" ;
102
+ }
99
103
};
100
104
101
- inline void PrintTo (const ParamTestCase& param, std::ostream* os) {
102
- *os << " { input = " << static_cast <int >(param.input ) << " , expected = " << param.expected_output << " }" ;
103
- }
104
-
105
105
class GetStringParamNameParamTest : public ::testing::TestWithParam<ParamTestCase> {};
106
106
107
107
TEST_P (GetStringParamNameParamTest, ReturnsExpectedString) {
@@ -120,13 +120,12 @@ struct TaskTypeTestCase {
120
120
ppc::core::TypeOfTask type;
121
121
std::string expected;
122
122
std::string label;
123
+ friend inline void PrintTo (const TaskTypeTestCase& param, std::ostream* os) {
124
+ *os << " { type = " << static_cast <int >(param.type ) << " , expected = " << param.expected
125
+ << " , label = " << param.label << " }" ;
126
+ }
123
127
};
124
128
125
- inline void PrintTo (const TaskTypeTestCase& param, std::ostream* os) {
126
- *os << " { type = " << static_cast <int >(param.type ) << " , expected = " << param.expected << " , label = " << param.label
127
- << " }" ;
128
- }
129
-
130
129
class GetStringTaskTypeTest : public ::testing::TestWithParam<TaskTypeTestCase> {
131
130
protected:
132
131
std::string temp_path;
You can’t perform that action at this time.
0 commit comments