Chromium Code Reviews| Index: test/cctest/wasm/wasm-run-utils.h |
| diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h |
| index 2d071a60eb5e72e0a0516cd6ba32c17b2263a628..a92c9ff50a760618dfabaea6cbe1f3152774edeb 100644 |
| --- a/test/cctest/wasm/wasm-run-utils.h |
| +++ b/test/cctest/wasm/wasm-run-utils.h |
| @@ -658,6 +658,15 @@ class WasmRunner { |
| } |
| }; |
| +// A macro to define tests that run in different engine configurations. |
| +// Currently only supports compiled tests, but a future |
| +// RunWasmInterpreted_##name version will allow each test to also run in the |
| +// interpreter. |
| +#define WASM_EXEC_TEST(name) \ |
| + void RunWasm_##name(); \ |
| + TEST(RunWasmCompiled_##name) { RunWasm_##name(); } \ |
|
ahaas
2016/05/18 15:43:26
Could we use shorter test names here? Maybe RunWas
|
| + void RunWasm_##name() |
| + |
| } // namespace |
| #endif |