1 : /*
2 : * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 : * Use of this source code is governed by a BSD-style license that can be
4 : * found in the LICENSE file.
5 : */
6 :
7 : #ifndef NATIVE_CLIENT_TESTS_PERFORMANCE_PERF_TEST_RUNNER_H_
8 : #define NATIVE_CLIENT_TESTS_PERFORMANCE_PERF_TEST_RUNNER_H_
9 :
10 10 : class PerfTest {
11 : public:
12 10 : virtual ~PerfTest() {}
13 : virtual void run() = 0;
14 : };
15 :
16 : #define PERF_TEST_DECLARE(class_name) \
17 : PerfTest *Make##class_name() { return new class_name(); }
18 :
19 : #endif
|