OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_ | 5 #ifndef MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_ |
6 #define MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_ | 6 #define MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_ |
7 | 7 |
8 // Note: This header should be compilable as C. | 8 // Note: This header should be compilable as C. |
9 | 9 |
10 #include "mojo/public/tests/test_support_export.h" | 10 #include "mojo/public/tests/test_support_export.h" |
11 | 11 |
12 #ifdef __cplusplus | 12 #ifdef __cplusplus |
13 extern "C" { | 13 extern "C" { |
14 #endif | 14 #endif |
15 | 15 |
16 MOJO_TEST_SUPPORT_EXPORT void MojoTestSupportLogPerfResult( | 16 MOJO_TEST_SUPPORT_EXPORT void MojoTestSupportLogPerfResult( |
17 const char* test_name, | 17 const char* test_name, |
18 double value, | 18 double value, |
19 const char* units); | 19 const char* units); |
20 | 20 |
21 #ifdef __cplusplus | 21 #ifdef __cplusplus |
22 } // extern "C" | 22 } // extern "C" |
23 #endif | 23 #endif |
24 | 24 |
| 25 #ifdef __cplusplus |
| 26 namespace mojo { |
| 27 namespace test { |
| 28 |
| 29 inline void LogPerfResult(const char* test_name, |
| 30 double value, |
| 31 const char* units) { |
| 32 MojoTestSupportLogPerfResult(test_name, value, units); |
| 33 } |
| 34 |
| 35 } // namespace test |
| 36 } // namespace mojo |
| 37 #endif // __cplusplus |
| 38 |
25 #endif // MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_ | 39 #endif // MOJO_PUBLIC_TESTS_TEST_SUPPORT_H_ |
OLD | NEW |