Commit caa27336 authored by Alexey Spizhevoy's avatar Alexey Spizhevoy

minor changes in gpu performance sample

parent 3f2daa1d
...@@ -6,19 +6,6 @@ ...@@ -6,19 +6,6 @@
using namespace std; using namespace std;
using namespace cv; using namespace cv;
void TestSystem::setWorkingDir(const string& val)
{
working_dir_ = val;
}
void TestSystem::setTestFilter(const string& val)
{
test_filter_ = val;
}
void TestSystem::run() void TestSystem::run()
{ {
// Run test initializers // Run test initializers
......
...@@ -12,8 +12,11 @@ ...@@ -12,8 +12,11 @@
class Runnable class Runnable
{ {
public: public:
explicit Runnable(const std::string& name): name_(name) {} explicit Runnable(const std::string& name): name_(name) {}
const std::string& name() const { return name_; } virtual ~Runnable() {}
const std::string& name() const { return name_; }
virtual void run() = 0; virtual void run() = 0;
private: private:
...@@ -30,10 +33,10 @@ public: ...@@ -30,10 +33,10 @@ public:
return me; return me;
} }
void setWorkingDir(const std::string& val); void setWorkingDir(const std::string& val) { working_dir_ = val; }
const std::string& workingDir() const { return working_dir_; } const std::string& workingDir() const { return working_dir_; }
void setTestFilter(const std::string& val); void setTestFilter(const std::string& val) { test_filter_ = val; }
const std::string& testFilter() const { return test_filter_; } const std::string& testFilter() const { return test_filter_; }
void addInit(Runnable* init) { inits_.push_back(init); } void addInit(Runnable* init) { inits_.push_back(init); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment